Step 1: 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 interfacestype-fpc/pic/portunitlogical-unit-number- Configure the IP address:
[editinterfacestype-fpc/pic/portunitnumber]user@host#set family inet addressaddress- Verify the configuration:
user@host#showuser@host#commitSample Output
user@R1>editEntering 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#showfamily inet{address 10.1.13.1/30;}[edit interfaces so-0/0/2 unit 0]user@R1#commitcommit completeWhat It Means
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
inetfamily. Thefamilystatement identifies which protocol packets are accepted into the interfaces. For example, valid IP packets are dropped if the interface is not configured with thefamily inetstatement.For more information on interface addressing, see the JUNOS Network Interfaces Configuration Guide.