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


Configure the Interface Address

You assign an address to an interface by specifying the address when configuring the protocol family. For the inet family, you configure the interface's IP address. For the iso family, you 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 {
    destination address;
    eui-64;
    broadcast address;
    preferred;
    primary;
}

You can configure 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.

Configure 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 configure 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]