Router Configurations for the INET Load-Balanced Network
Purpose
The configurations in this section are for the six routers in the example network illustrated in Figure 12.
Action
To display a router configuration, use the following JUNOS CLI operational mode command:
user@host>show configuration | no-moreSample Output 1
The following sample output is for edge router
R6:user@R6>show configuration | no-moreinterfaces {fe-0/1/2{ #Interface connected to R1unit 0 {family inet {address 10.0.16.14/30;}family mpls; ##MPLS enabled on relevant interfaces}}fe-1/3/0 {unit 0 {family inet {address 10.10.12.1/24;}}}fxp0 {unit 0 {family inet {address 192.168.70.148/21;}}}lo0 {unit 0 {family inet {address 192.168.6.1/32;}}}}routing-options {static {[...Output truncated...]}router-id 192.168.6.1;#Manually configured RIDautonomous-system 65432;#Full mesh IBGP}protocols {rsvp {interface fe-0/1/2.0;interface fxp0.0 {disable;}}mpls {interface fe-0/1/2.0;interface fxp0.0 {disable;}}bgp {group internal {type internal;local-address 192.168.6.1;neighbor 192.168.1.1;neighbor 192.168.2.1;neighbor 192.168.4.1;neighbor 192.168.9.1;neighbor 192.168.0.1;}}ospf{ #IGP enabledtraffic-engineering;area 0.0.0.0 {interface fe-0/1/2.0;interface fe-1/3/0.0;interfacelo0.0{passive;#Ensures protocols do not run over this interface}}}}Sample Output 2
The following sample output is for ingress router R1:
user@R1>show configuration | no-moreinterfaces {fe-0/1/0{ #Connected to R2unit 0 {family inet {address 10.0.12.13/30;}family mpls;#MPLS enabled on relevant interfaces}}fe-0/1/2{ #Connected to R6unit 0 {family inet {address 10.0.16.13/30;}family mpls;}}fxp0 {unit 0 {family inet {address 192.168.70.143/21;}}}lo0 {unit 0 {family inet {address 192.168.1.1/32;}}}}forwarding-options {hash-key {family inet{ INET/port datalayer-3;layer-4;}}}routing-options {static {[...Output truncated...}route 100.100.1.0/24 reject;#Static route for send-statics policy}router-id 192.168.1.1;#Manually configured RIDautonomous-system 65432;#Full mesh IBGPforwarding-table{exportlbpp;#Routes exported to forwarding table}}protocols {rsvp {interface fe-0/1/0.0;interface fe-0/1/2.0;interface fxp0.0 {disable;}}mpls {label-switched-path lsp1{#First LSPto 192.168.0.1; # Destination of the LSPinstall 10.0.90.14/32 active; # The prefix is installed in theprimary via-r4; # inet.0 routing table}label-switched-path lsp2 {to 192.168.0.1;install 10.0.90.14/32 active;primary via-r2;}label-switched-path lsp3 {to 192.168.0.1;install 10.0.90.14/32 active;primary via-r2;}label-switched-path lsp4 {to 192.168.0.1;install 10.0.90.14/32 active;primary via-r4;}path via-r2{ #Primary path to spread traffic across interfaces10.0.29.2 loose;}path via-r4{10.0.24.2 loose;}interface fe-0/1/0.0;interface fe-0/1/2.0;interface fxp0.0 {disable;}}bgp {export send-statics;#Allows advertising of a new routegroup internal {type internal;local-address 192.168.1.1;neighbor 192.168.2.1;neighbor 192.168.4.1;neighbor 192.168.9.1;neighbor 192.168.6.1;neighbor 192.168.0.1;}}ospf{ #IGP enabledtraffic-engineering;area 0.0.0.0 {interface fe-0/1/0.0;interface fe-0/1/2.0;interface lo0.0 {passive;}}}}policy-options {policy-statement lbpp{#Load balancing policythen{load-balance per-packet;}}policy-statement send-statics{ #Static route policyterm statics {from {route-filter 100.100.1.0/24 exact;}then accept;}}}Sample Output 3
The following sample output is for transit router R2:
user@R2>show configuration | no-moreinterfaces {so-0/0/1{ #Connected to R4unit 0 {bandwidth 100m; #Bandwidth to ensure equal-cost pathsfamily inet {address 10.0.24.1/30;}family mpls;#MPLS enabled on relevant interfaces}}so-0/0/2{ #Connected to R9unit 0 {bandwidth 50m; #Bandwidth to ensure equal-cost pathsfamily inet {address 10.0.29.1/30;}family mpls;}}fe-0/1/0{ Connected to R1unit 0 {family inet {address 10.0.12.14/30;}family mpls;}}fxp0 {unit 0 {family inet {address 192.168.70.144/21;}}}lo0 {unit 0 {family inet {address 192.168.2.1/32;}}}}forwarding-options {hash-key {family mpls{ #MPLS labels configurationlabel-1;label-2;payload {ip;}}}}routing-options {static {[...Output truncated...]}router-id 192.168.2.1;autonomous-system 65432;forwarding-table{export lbpp; #Routes exported into forwarding table}}protocols {rsvp {interface so-0/0/1.0;interface fe-0/1/0.0;interface so-0/0/2.0;interface fxp0.0 {disable;}}mpls {interface fe-0/1/0.0;interface so-0/0/1.0;interface so-0/0/2.0;interface fxp0.0 {disable;}}bgp {group internal {type internal;local-address 192.168.2.1;neighbor 192.168.1.1;neighbor 192.168.4.1;neighbor 192.168.9.1;neighbor 192.168.6.1;neighbor 192.168.0.1;}}ospf {traffic-engineering;area 0.0.0.0 {interface fe-0/1/0.0;interface so-0/0/1.0;interface so-0/0/2.0;interface lo0.0 {passive;}}}}policy-options {policy-statementlbpp{ #Load balancing policy exported in forwarding tablethen {load-balance per-packet;}}}Sample Output 4
The following sample output is for transit router R4:
user@R4>show configuration | no-moreinterfaces {so-0/0/1 {unit 0 {family inet {address 10.0.24.2/30;}family mpls;}}so-0/0/3 {unit 0 {family inet {address 10.0.49.1/30;}family mpls;}}fxp0 {unit 0 {family inet {address 192.168.70.146/21;}}}lo0 {unit 0 {family inet {address 192.168.4.1/32;}}}}routing-options {static {[...Output truncated...]}router-id 192.168.4.1;autonomous-system 65432;}protocols {rsvp {interface so-0/0/1.0;interface so-0/0/3.0;interface fxp0.0 {disable;}}mpls {interface so-0/0/1.0;interface so-0/0/3.0;interface fxp0.0 {disable;}}bgp {group internal {type internal;local-address 192.168.4.1;neighbor 192.168.1.1;neighbor 192.168.2.1;neighbor 192.168.9.1;neighbor 192.168.6.1;neighbor 192.168.0.1;}}ospf {traffic-engineering;area 0.0.0.0 {interface so-0/0/1.0;interface so-0/0/3.0;interface lo0.0 {passive;}}}}Sample Output 5
The following sample output is for transit router R9:
user@R9>show configuration | no-moreinterfaces {so-0/0/2 {unit 0 {family inet {address 10.0.29.2/30;}family mpls;}}so-0/0/3 {unit 0 {family inet {address 10.0.49.2/30;}family mpls;}}fe-0/1/0 {unit 0 {family inet {address 10.0.90.13/30;}family mpls;}}fxp0 {unit 0 {family inet {address 192.168.69.206/21;}}}lo0 {unit 0 {family inet {address 192.168.9.1/32;}}}}routing-options {static {[...Output truncated...]}router-id 192.168.9.1;autonomous-system 65432;}protocols {rsvp {interface so-0/0/2.0;interface so-0/0/3.0;interface fe-0/1/0.0;interface fxp0.0 {disable;}}mpls {interface so-0/0/2.0;interface so-0/0/3.0;interface fe-0/1/0.0;interface fxp0.0 {disable;}}bgp {group internal {type internal;local-address 192.168.9.1;neighbor 192.168.1.1;neighbor 192.168.2.1;neighbor 192.168.4.1;neighbor 192.168.0.1;neighbor 192.168.6.1;}}ospf {traffic-engineering;area 0.0.0.0 {interface so-0/0/2.0;interface so-0/0/3.0;interface fe-0/1/0.0;interface lo0.0 {passive;}}}}Sample Output 6
The following sample output is for egress router
R0:user@R0>show configuration | no-moreinterfaces {so-0/0/2 {unit 0 {family inet {address 10.0.29.2/30;}family mpls;}}so-0/0/3 {unit 0 {family inet {address 10.0.49.2/30;}family mpls;}}fe-0/1/0 {unit 0 {family inet {address 10.0.90.13/30;}family mpls;}}fxp0 {unit 0 {family inet {address 192.168.69.206/21;}}}lo0 {unit 0 {family inet {address 192.168.9.1/32;}}}}routing-options {static {[...Output truncated...]}router-id 192.168.9.1;autonomous-system 65432;}protocols {rsvp {interface so-0/0/2.0;interface so-0/0/3.0;interface fe-0/1/0.0;interface fxp0.0 {disable;}}mpls {interface so-0/0/2.0;interface so-0/0/3.0;interface fe-0/1/0.0;interface fxp0.0 {disable;}}bgp {group internal {type internal;local-address 192.168.9.1;neighbor 192.168.1.1;neighbor 192.168.2.1;neighbor 192.168.4.1;neighbor 192.168.0.1;neighbor 192.168.6.1;}}ospf {traffic-engineering;area 0.0.0.0 {interface so-0/0/2.0;interface so-0/0/3.0;interface fe-0/1/0.0;interface lo0.0 {passive;}}}}