HP 12500 Series Configuration Manual page 101

Mpls, routing switch series
Table of Contents

Advertisement

[SwitchB-ospf-1] import-route bgp
[SwitchB-ospf-1] area 0
[SwitchB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
[SwitchB-ospf-1-area-0.0.0.0] quit
[SwitchB-ospf-1] quit
# Configure OSPF on Switch C.
<SwitchC> system-view
[SwitchC] ospf
[SwitchC-ospf-1] import-route direct
[SwitchC-ospf-1] import-route bgp
[SwitchC-ospf-1] area 0
[SwitchC-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0
[SwitchC-ospf-1-area-0.0.0.0] quit
[SwitchC-ospf-1] quit
# Configure OSPF on Switch D.
<SwitchD> system-view
[SwitchD] ospf
[SwitchD-ospf-1] area 0
[SwitchD-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255
[SwitchD-ospf-1-area-0.0.0.0] network 4.4.4.9 0.0.0.0
[SwitchD-ospf-1-area-0.0.0.0] quit
[SwitchD-ospf-1] quit
After the configurations, execute the display ip routing-table command on each device. The output
shows that the switch in an AS has learned the route to the LSR ID of the other device in the AS.
Take Switch A as an example:
[SwitchA] display ip routing-table
Routing Tables: Public
Destinations : 6
Destination/Mask
1.1.1.9/32
2.2.2.9/32
10.1.1.0/24
10.1.1.1/32
127.0.0.0/8
127.0.0.1/32
Configure BGP on Switch B and Switch C, ensuring the ASs can communicate with each other.
3.
# Configure Switch B.
[SwitchB] bgp 100
[SwitchB-bgp] peer 20.1.1.2 as-number 200
[SwitchB-bgp] import-route ospf
[SwitchB-bgp] import-route direct
[SwitchB-bgp] quit
# Configure Switch C.
Routes : 6
Proto
Pre
Cost
Direct 0
0
OSPF
10
1
Direct 0
0
Direct 0
0
Direct 0
0
Direct 0
0
93
NextHop
Interface
127.0.0.1
InLoop0
10.1.1.2
Vlan1
10.1.1.1
Vlan1
127.0.0.1
InLoop0
127.0.0.1
InLoop0
127.0.0.1
InLoop0

Advertisement

Table of Contents
loading

Table of Contents