[Contents] [Prev] [Next] [Index] [Report an Error]


Configuring the Interface Address

You assign an address to an interface by specifying the address when configuring the protocol family. For the inet family, configure the interface's IP address. For the iso family, configure one or more addresses for the loopback interface. For the ccc, tcc, mpls, tnp, and vpls families, you never configure an address.

To assign an address to an interface, include the address statement:

address address {
    broadcast address;
    destination address;
    destination-profile name;
    eui-64;
    preferred;
    primary;
}

You can include these statements at the following hierarchy levels:

In the address statement, specify the network address of the interface.

For each address, you can optionally configure one or more of the following:

By default, the preferred address is the lowest numbered address on the subnet. To override the default and explicitly configure the preferred address, include the preferred statement when configuring the address.

By default, the primary address on an interface is the lowest numbered non-127 preferred address on the interface. To override the default and explicitly configure the preferred address, include the primary statement when configuring the address.

Configuring the IPv6 Address on an Interface

You represent IPv6 addresses in hexadecimal notation using a colon-separated list of 16-bit values.

You assign a 128-bit IPv6 address to an interface by including the address statement:

address aaaa:bbbb:...:zzzz/nn; 

You can include this statement at the following hierarchy levels:

The double colon (::) represents all bits set to 0, as shown in the following example:

interfaces fe-0/0/1 {
    unit 0 {
        family inet6 {
            address fec0:1:1:1::2/64; 
        }
    }
}

[Contents] [Prev] [Next] [Index] [Report an Error]