Example Configurations for an MPLS Topology
Purpose
The configurations in this section are for the six routers in the example network illustrated in Figure 1.
Action
To display the configuration of a router, use the following JUNOS CLI operational mode command:
user@host>show configuration | no-moreSample Output 1
user@R1>show configuration | no-moresystem {host-name R1;[...Output truncated...]interfaces {so-0/0/0 {unit 0 {family inet {address 10.1.12.1/30;}family iso;family mpls;}}so-0/0/1 {unit 0 {family inet {address 10.1.15.1/30;}family iso;family mpls;}}so-0/0/2 {unit 0 {family inet {address 10.1.13.1/30;}family iso;family mpls;}}fxp0 {unit 0 {family inet {address 192.168.70.143/21;}}}lo0 {unit 0 {family inet {address 10.0.0.1/32;}family iso {address 49.0004.1000.0000.0001.00;} #family mpls is not} #configured because the} #loopback (lo0) interface is} #not a transit interfacerouting-options {static {[...Output truncated...]route 100.100.1.0/24 reject;}router-id 10.0.0.1;autonomous-system 65432;}protocols {rsvp {inactive: traceoptions {file rsvp.log;flag packets;}interface all;interface fxp0.0 {disable;}}mpls {label-switched-path R1-to-R6 {to 10.0.0.6;}interface all;interface fxp0.0 {disable;}}bgp {export send-statics;group internal {type internal;local-address 10.0.0.1;neighbor 10.0.0.2;neighbor 10.0.0.3;neighbor 10.0.0.5;neighbor 10.0.0.4;neighbor 10.0.0.6;}}isis {level 1 disable;interface all {level 2 metric 10;}interface fxp0.0 {disable;}interface lo0.0;passive}}policy-options {policy-statement send-statics {term statics {from {route-filter 100.100.1.0/24 exact;}then accept;}}}Sample Output 2
user@R2>show configuration | no-moresystem {host-name R2;[...Output truncated...}interfaces {so-0/0/0 {unit 0 {family inet {address 10.1.12.2/30;}family iso;family mpls;}}so-0/0/1 {unit 0 {family inet {address 10.1.23.1/30;}family iso;family mpls;}}so-0/0/2 {unit 0 {family inet {address 10.1.26.1/30;}family iso;family mpls;}}so-0/0/3 {unit 0 {family inet {address 10.1.24.1/30;}family iso;family mpls;}}fxp0 {unit 0 {family inet {address 192.168.70.144/21;}}}lo0 {unit 0 {family inet {address 10.0.0.2/32;}family iso {address 49.0004.1000.0000.0002.00;} #family mpls is not} #configured because the} #loopback (lo0) interface is} #not a transit interfacerouting-options {[...Output truncated...]router-id 10.0.0.2;autonomous-system 65432;}protocols {rsvp {interface all;interface fxp0.0 {disable;}}mpls {interface all;interface fxp0.0 {disable;}}bgp {group internal {type internal;local-address 10.0.0.2;neighbor 10.0.0.1;neighbor 10.0.0.3;neighbor 10.0.0.4;neighbor 10.0.0.6;}}isis {level 1 disable;interface all {level 2 metric 10;}interface fxp0.0 {disable;}interface lo0.0;passive}}Sample Output 3
user@R3>show configuration | no-moresystem {host-name R3;[...Output truncated...]interfaces {so-0/0/0 {unit 0 {family inet {address 10.1.34.1/30;}family iso;family mpls;}}so-0/0/1 {unit 0 {family inet {address 10.1.23.2/30;}family iso;family mpls;}}so-0/0/2 {unit 0 {family inet {address 10.1.13.2/30;}family iso;family mpls;}}so-0/0/3 {unit 0 {family inet {address 10.1.36.1/30;}family iso;family mpls;}}fxp0 {unit 0 {family inet {address 192.168.70.145/21;}}}lo0 {unit 0 {family inet {address 10.0.0.3/32;}family iso {address 49.0004.1000.0000.0003.00;} #family mpls is not} #configured because the} #loopback (lo0) interface is} #not a transit interfacerouting-options {static {[...Output truncated...]router-id 10.0.0.3;autonomous-system 65432;}protocols {rsvp {interface all;interface fxp0.0 {disable;}}mpls {interface all;interface fxp0.0 {disable;}}bgp {group internal {type internal;local-address 10.0.0.3;neighbor 10.0.0.1;neighbor 10.0.0.2;neighbor 10.0.0.4;neighbor 10.0.0.6;}}isis {level 1 disable;interface all {level 2 metric 10;}interface fxp0.0 {disable;}interface lo0.0;passive}}Sample Output 4
user@R4>show configuration | no-moresystem {host-name R4;[...Output truncated...]interfaces {so-0/0/0 {unit 0 {family inet {address 10.1.34.2/30;}family iso;family mpls;}}so-0/0/1 {unit 0 {family inet {address 10.1.46.1/30;}family iso;family mpls;}}so-0/0/2 {unit 0 {family inet {address 10.1.45.1/30;}family iso;family mpls;}}so-0/0/3 {unit 0 {family inet {address 10.1.24.2/30;}family iso;family mpls;}}fxp0 {unit 0 {family inet {address 192.168.70.146/21;}}}lo0 {unit 0 {family inet {address 10.0.0.4/32;}family iso {address 49.0004.1000.0000.0004.00;} #family mpls is not} #configured because the} #loopback (lo0) interface is} #not a transit interfacerouting-options {static {[...Output truncated...]router-id 10.0.0.4;autonomous-system 65432;}protocols {rsvp {interface all;interface fxp0.0 {disable;}}mpls {interface all;interface fxp0.0 {disable;}}bgp {group internal {type internal;local-address 10.0.0.4;neighbor 10.0.0.2;neighbor 10.0.0.3;neighbor 10.0.0.5;neighbor 10.0.0.6;}}isis {level 1 disable;interface all {level 2 metric 10;}interface fxp0.0 {disable;}interface lo0.0;passive}}Sample Output 5
user@R5>show configuration | no-moresystem {host-name R5;[...Output truncated...]interfaces {so-0/0/0 {unit 0 {family inet {address 10.1.56.1/30;}family iso;family mpls;}}so-0/0/1 {unit 0 {family inet {address 10.1.15.2/30;}family iso;family mpls;}}so-0/0/2 {unit 0 {family inet {address 10.1.45.2/30;}family iso;family mpls;}}fxp0 {unit 0 {family inet {address 192.168.70.147/21;}}}lo0 {unit 0 {family inet {address 10.0.0.5/32;}family iso {address 49.0004.1000.0000.0005.00;} #family mpls is not} #configured because the} #loopback (lo0) interface is} #not a transit interfacerouting-options {static {[...Output truncated...]router-id 10.0.0.5;autonomous-system 65432;}protocols {rsvp {interface all;interface fxp0.0 {disable;}}mpls {interface all;interface fxp0.0 {disable;}}bgp {group internal {type internal;local-address 10.0.0.5;neighbor 10.0.0.1;neighbor 10.0.0.4;neighbor 10.0.0.6;}}isis {level 1 disable;interface all {level 2 metric 10;}interface fxp0.0 {disable;}interface lo0.0;passive}}Sample Output 6
user@R6>show configuration | no-moresystem {host-name R6;[...Output truncated...]interfaces {so-0/0/0 {unit 0 {family inet {address 10.1.56.2/30;}family iso;family mpls;}}so-0/0/1 {unit 0 {family inet {address 10.1.46.2/30;}family iso;family mpls;}}so-0/0/2 {unit 0 {family inet {address 10.1.26.2/30;}family iso;family mpls;}}so-0/0/3 {unit 0 {family inet {address 10.1.36.2/30;}family iso;family mpls;}}fxp0 {unit 0 {family inet {address 192.168.70.148/21;}}}lo0 {unit 0 {family inet {address 10.0.0.6/32;}family iso {address 49.0004.1000.0000.0006.00;} #family mpls is not} #configured because the} #loopback (lo0) interface is} #not a transit interfacerouting-options {static {[...Output truncated...]route 100.100.6.0/24 reject;}router-id 10.0.0.6;autonomous-system 65432;}protocols {rsvp {interface all;interface fxp0.0 {disable;}}mpls {label-switched-path R6-to-R1 {to 10.0.0.1;}interface all;interface fxp0.0 {disable;}}bgp {group internal {type internal;local-address 10.0.0.6;export send-statics;neighbor 10.0.0.2;neighbor 10.0.0.3;neighbor 10.0.0.4;neighbor 10.0.0.5;neighbor 10.0.0.1;}}isis {level 1 disable;interface all {level 2 metric 10;}interface fxp0.0 {disable;}interface lo0.0;passive}}policy-options {policy-statement send-statics {term statics {from {route-filter 100.100.6.0/24 exact;}then accept;}}}What It Means
Sample Outputs 1 through 6 show the configurations of all six routers in the example network illustrated in Figure 1. LSPs
R1-to-R6andR6-to-R1are configured onR1andR6, respectively.Two static routes,
100.100.1/24onR1and100.100.6/24onR6,are configured at the [edit routing-options static route] hierarchy level. Both prefixes are included in the send-statics policy at the [edit policy-options send statics] hierarchy level so the routes can become BGP routes.In addition, the RID is configured manually at the [
edit routing-options] hierarchy level to avoid duplicate RID problems, and thepassivestatement is included at the [edit protocols isis interface lo0] hierarchy level to ensure that protocols are not run over the loopback (lo0) interface and the loopback (lo0) interface is advertised correctly throughout the network.