[an error occurred while processing this directive][an error occurred while processing this directive]

Configure IP Addresses on Router Interfaces

Purpose

Before you can run MPLS on your network, you must have an IP address configured on all interfaces. Repeat this procedure as appropriate on other router interfaces in your network until all interfaces have an IP address.

Action

To configure an IP address, follow these steps:

  1. In configuration mode, go to the following hierarchy level:
    [edit]user@host# edit interfaces type-fpc/pic/port unit logical-unit-number
  2. Configure the IP address:
    [edit interfaces type-fpc/pic/port unit number]user@host# set family inet address address
  3. Verify the configuration:
    user@host# show
    user@host# commit

Sample Output

user@R1> edit
Entering configuration mode

[edit]
user@R1# edit interfaces so-0/0/2 unit 0

[edit interfaces so-0/0/2 unit 0]
user@R1# set family inet address 10.1.13.1/30

[edit interfaces so-0/0/2 unit 0]
user@R1# show 
family inet  {
     address 10.1.13.1/30 ;
}

[edit interfaces so-0/0/2 unit 0]
user@R1# commit 
commit complete

Meaning

The sample output shows an interface configured with an IP address. The IP address is assigned when you configure the protocol family. In this instance, the IP address is included in the inet family. The family statement identifies which protocol packets are accepted into the interfaces. For example, valid IP packets are dropped if the interface is not configured with the family inet statement.



Published: 2010-01-25

[an error occurred while processing this directive]