Huawei S6700 Series Configuration Manual page 187

Ip routing
Hide thumbs Also See for S6700 Series:
Table of Contents

Advertisement

S6700 Series Ethernet Switches
Configuration Guide - IP Routing
[SwitchE] bgp 20
[SwitchE-bgp] peer 10.2.1.1 as-number 10
[SwitchE-bgp] ipv4-family unicast
[SwitchE-bgp-af-ipv4] network 10.3.1.0 30
[SwitchE-bgp-af-ipv4] quit
Step 6 Set the cost of OSPF on Switch C.
[SwitchC] interface vlanif 30
[SwitchC-Vlanif30] ospf cost 2
[SwitchC-Vlanif30] quit
[SwitchC] interface vlanif 20
[SwitchC-Vlanif20] ospf cost 2
[SwitchC-Vlanif20] quit
# View the routing table of Switch A. As shown in the routing table, the route to the network
segment 10.3.1.0 can be learned through BGP, and the outgoing interface is Vlanif10.
[SwitchA] display ip routing-table
Route Flags: R - relied, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destination/Mask
# View the routing table of Switch B.
[SwitchB] display ip routing-table
Route Flags: R - relied, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destination/Mask
Issue 01 (2012-03-15)
NOTE
After the cost of OSPF on Switch C is set to 2, Switch A chooses only Switch B as the intermediate router
to the network segment 10.2.1.0. Switch C becomes the backup router of Switch B.
Destinations : 16
Proto
1.1.1.1/32
Direct 0
2.2.2.2/32
OSPF
4.4.4.0/24
BGP
4.4.4.4/32
OSPF
5.5.5.0/24
BGP
10.1.1.0/30
Direct 0
10.1.1.1/32
Direct 0
10.1.1.2/32
Direct 0
10.1.2.0/30
Direct 0
10.1.2.1/32
Direct 0
10.1.2.2/32
Direct 0
10.1.3.0/30
OSPF
10.1.3.1/32
BGP
10.1.4.0/30
OSPF
OSPF
10.1.4.1/32
BGP
10.2.1.0/30
BGP
10.2.1.2/32
BGP
10.3.1.0/30
BGP
Destinations : 15
Proto
2.2.2.2/32
Direct 0
1.1.1.1/32
OSPF
4.4.4.0/24
BGP
4.4.4.4/32
OSPF
5.5.5.0/24
BGP
10.1.1.0/30
Direct 0
10.1.1.1/32
Direct 0
10.1.1.2/32
Direct 0
10.1.2.0/30
OSPF
10.1.3.0/30
Direct 0
10.1.3.1/32
Direct 0
10.1.3.2/32
Direct 0
10.1.4.0/30
OSPF
10.1.4.1/32
BGP
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Routes : 17
Pre
Cost
Flags NextHop
0
D
127.0.0.1
10
3
D
10.1.1.2
255
0
RD
4.4.4.4
10
3
D
10.1.1.2
255
0
RD
10.2.1.2
0
D
10.1.1.1
0
D
127.0.0.1
0
D
10.1.1.2
0
D
10.1.2.1
0
D
127.0.0.1
0
D
10.1.2.2
10
2
D
10.1.1.2
255
0
RD
4.4.4.4
10
3
D
10.1.1.2
10
3
D
10.1.2.2
255
0
RD
4.4.4.4
255
0
RD
4.4.4.4
255
0
RD
4.4.4.4
255
0
RD
4.4.4.4
Routes : 15
Pre
Cost
Flags NextHop
0
D
127.0.0.1
10
2
D
10.1.1.1
255
0
RD
10
2
D
10.1.3.2
255
0
RD
0
D
10.1.1.2
0
D
10.1.1.1
0
D
127.0.0.1
10
2
D
10.1.1.1
0
D
10.1.3.1
0
D
127.0.0.1
0
D
10.1.3.2
10
2
D
10.1.3.2
255
0
RD
4 OSPF Configuration
Interface
InLoopBack0
Vlanif10
Vlanif10
Vlanif10
Vlanif10
Vlanif10
InLoopBack0
Vlanif10
Vlanif20
InLoopBack0
Vlanif20
Vlanif10
Vlanif10
Vlanif10
Vlanif20
Vlanif10
Vlanif10
Vlanif10
Vlanif10
Interface
InLoopBack0
Vlanif10
10.1.3.2
Vlanif40
Vlanif40
10.2.1.2
Vlanif40
Vlanif10
Vlanif10
InLoopBack0
Vlanif10
Vlanif40
InLoopBack0
Vlanif40
Vlanif40
10.1.3.2
Vlanif40
168

Advertisement

Table of Contents
loading

Table of Contents