H3C S5800 Series Configuration Manual page 133

Layer 3 - ip routing
Hide thumbs Also See for S5800 Series:
Table of Contents

Advertisement

<SwitchD> system-view
[SwitchD] ospf
[SwitchD-ospf-1] area 0
[SwitchD-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
[SwitchD-ospf-1-area-0.0.0.0] network 10.3.1.0 0.0.0.255
[SwitchD-ospf-1-area-0.0.0.0] quit
# Configure Switch E.
<SwitchE> system-view
[SwitchE] ospf
[SwitchE-ospf-1] area 0
[SwitchE-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255
[SwitchE-ospf-1-area-0.0.0.0] network 10.4.1.0 0.0.0.255
[SwitchE-ospf-1-area-0.0.0.0] quit
[SwitchE-ospf-1] quit
3)
Configure BGP to redistribute OSPF routes and direct routes.
# Configure Switch B.
<SwitchB> system-view
[SwitchB] bgp 200
[SwitchB-bgp] peer 11.1.1.2 as 100
[SwitchB-bgp] import-route ospf
[SwitchB-bgp] import-route direct
[SwitchB-bgp] quit
# Configure Switch C.
<SwitchC> system-view
[SwitchC] bgp 100
[SwitchC-bgp] peer 11.1.1.1 as 200
[SwitchC-bgp] import-route ospf
[SwitchC-bgp] import-route direct
[SwitchC-bgp] quit
4)
Configure Switch B and Switch C to redistribute BGP routes into OSPF.
# Configure OSPF to redistribute routes from BGP on Switch B.
[SwitchB] ospf
[SwitchB-ospf-1] import-route bgp
# Display the OSPF routing table of Switch A.
[SwitchA] display ip routing-table
Routing Tables: Public
Destinations : 8
Destination/Mask
10.1.1.0/24
O_ASE 150 1
10.2.1.0/24
O_ASE 150 1
10.3.1.0/24
O_ASE 150 1
10.4.1.0/24
O_ASE 150 1
11.2.1.0/24
Direct 0
11.2.1.2/32
Direct 0
127.0.0.0/8
Direct 0
127.0.0.1/32
Direct 0
# Configure summary route 10.0.0.0/8 on Switch B and advertise it.
Routes : 8
Proto Pre Cost
0
0
0
0
NextHop
Interface
11.2.1.1
Vlan100
11.2.1.1
Vlan100
11.2.1.1
Vlan100
11.2.1.1
Vlan100
11.2.1.2
Vlan100
127.0.0.1
InLoop0
127.0.0.1
InLoop0
127.0.0.1
InLoop0
4-58

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820x series

Table of Contents