R0106-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V7)

316
Table 13 Interface and IP address assignment
Device Interface IP address
Device
Interface IP address
Router A GE2/1/1 1.0.0.1/8 Router D GE2/1/1 195.1.1.1/24
GE2/1/2 192.1.1.1/24 GE2/1/2 194.1.1.1/24
GE2/1/3 193.1.1.1/24 Router C GE2/1/1 193.1.1.2/24
Router B GE2/1/1 192.1.1.2/24 GE2/1/2 195.1.1.2/24
GE2/1/2 194.1.1.2/24
Configuration procedure
1. Configure IP addresses for interfaces. (Details not shown.)
2. Configure OSPF on Router B, Router C, and Router D:
# Configure Router B.
<RouterB> system-view
[RouterB] ospf
[RouterB-ospf] area 0
[RouterB-ospf-1-area-0.0.0.0] network 192.1.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] network 194.1.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] quit
# Configure Router C.
<RouterC> system-view
[RouterC] ospf
[RouterC-ospf] area 0
[RouterC-ospf-1-area-0.0.0.0] network 193.1.1.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.0] network 195.1.1.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.0] quit
[RouterC-ospf-1] quit
# Configure Router D.
<RouterD> system-view
[RouterD] ospf
[RouterD-ospf] area 0
[RouterD-ospf-1-area-0.0.0.0] network 194.1.1.0 0.0.0.255
[RouterD-ospf-1-area-0.0.0.0] network 195.1.1.0 0.0.0.255
[RouterD-ospf-1-area-0.0.0.0] quit
[RouterD-ospf-1] quit
3. Configure BGP connections:
# Configure Router A.
<RouterA> system-view
[RouterA] bgp 100
[RouterA-bgp] peer 192.1.1.2 as-number 200
[RouterA-bgp] peer 193.1.1.2 as-number 200
[RouterA-bgp] address-family ipv4 unicast
[RouterA-bgp-ipv4] peer 192.1.1.2 enable
[RouterA-bgp-ipv4] peer 193.1.1.2 enable