28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

To remove an extra IP address, use the delete command:<br />

[edit interfaces fe-0/0/0]<br />

aviva@router1# delete unit 0 family inet address 192.168.220.1/24<br />

If you have many interfaces to configure and need to conserve IP addresses, you do<br />

not have to assign an address to the logical interface:<br />

[edit interfaces]<br />

aviva@router1# set fe-1/0/0 unit 0 family inet<br />

This command creates what is called an unnumbered interface. When packets are<br />

sent out this interface, their source address contains the router’s default address,<br />

which is the address you set on the loopback (lo0) interface. If you have not set an<br />

address on lo0, make sure that you have configured an address on another interface<br />

on the router.<br />

See Also<br />

Recipes 7.3, 7.4, and 7.12<br />

7.6 Configuring an IPv6 Address on an Interface<br />

Problem<br />

You want to configure an interface to work on an IPv6 network.<br />

Solution<br />

The IPv6 address configuration is very similar to that for IPv4:<br />

[edit]<br />

aviva@router1# set interfaces fe-0/0/3 unit 0 family inet6 address fec0:1:1:1::2/64<br />

<strong>Discussion</strong><br />

For an interface to operate on an IPv6 network, it needs an IPv6 address in the inet6<br />

address family. To see that the IPv6 address has been set, look at the logical interface:<br />

aviva@router1> show interfaces fe-0/0/3.0 brief<br />

Logical interface fe-0/0/3.0<br />

Flags: SNMP-Traps Encapsulation: ENET2<br />

inet6 fe80::205:85ff:fe02:a403/64<br />

fec0:1:1:1::2/64<br />

See Also<br />

Recipe 7.12<br />

Configuring an IPv6 Address on an Interface | 207<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!