Related Documentation
- For more information on interface addressing, see the Junos Network Interfaces Configuration Guide.
- Checklist for Configuring and Verifying an MPLS Network
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:
- In configuration mode, go to the following hierarchy level:[edit]user@host# edit interfaces type-fpc/pic/port unit logical-unit-number
- Configure the IP address:[edit interfaces type-fpc/pic/port unit number]user@host# set family inet address address
- Verify the configuration:user@host# showuser@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.
Related Documentation
- For more information on interface addressing, see the Junos Network Interfaces Configuration Guide.
- Checklist for Configuring and Verifying an MPLS Network

