10.1.1.0/30 Direct 0 0 D 10.1.1.2 Vlanif10
10.1.1.1/32 Direct 0 0 D 10.1.1.1 Vlanif10
10.1.1.2/32 Direct 0 0 D 127.0.0.1 InLoopBack0
10.1.2.0/30 OSPF 10 65536 D 10.1.1.1 Vlanif40
10.1.3.0/30 Direct 0 0 D 10.1.3.1 Vlanif40
10.1.3.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
10.1.3.2/32 Direct 0 0 D 10.1.3.2 Vlanif40
10.1.4.0/30 OSPF 10 65536 D 10.1.3.2 Vlanif40
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
# View the routing table of Switch B.
[SwitchB] display ip routing-table
Route Flags: R - relied, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 15 Routes : 15
Destination/Mask Proto Pre Cost Flags NextHop Interface
2.2.2.2/32 Direct 0 0 D 127.0.0.1 InLoopBack0
1.1.1.1/32 OSPF 10 2 D 10.1.1.1 Vlanif10
4.4.4.0/24 BGP 255 0 RD 10.1.3.2 Vlanif40
4.4.4.4/32 OSPF 10 2 D 10.1.3.2 Vlanif40
5.5.5.0/24 BGP 255 0 RD 10.2.1.2 Vlanif40
10.1.1.0/30 Direct 0 0 D 10.1.1.2 Vlanif10
10.1.1.1/32 Direct 0 0 D 10.1.1.1 Vlanif10
10.1.1.2/32 Direct 0 0 D 127.0.0.1 InLoopBack0
10.1.2.0/30 OSPF 10 2 D 10.1.1.1 Vlanif10
10.1.3.0/30 Direct 0 0 D 10.1.3.1 Vlanif40
10.1.3.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
10.1.3.2/32 Direct 0 0 D 10.1.3.2 Vlanif40
10.1.4.0/30 OSPF 10 2 D 10.1.3.2 Vlanif40
10.1.4.1/32 BGP 255 0 RD 10.1.3.2 Vlanif40
10.2.1.0/30 BGP 255 0 RD 10.1.3.2 Vlanif40
10.2.1.2/32 BGP 255 0 RD 10.1.3.2 Vlanif40
10.3.1.0/30 BGP 255 0 RD 10.1.3.2 Vlanif40
As shown in the routing table, after BGP route convergence on Switch B is complete, the contents
of the routing information are the same as those before the switch restarts.
----End
Configuration Files
l Configuration file of Switch A
#
sysname SwitchA
#
vlan batch 10 20
#
router id 1.1.1.1
#
interface Vlanif10
ip address 10.1.1.1 255.255.255.252
#
interface Vlanif20
ip address 10.1.2.1 255.255.255.252
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
bgp 10
router-id 1.1.1.1
peer 2.2.2.2 as-number 10
peer 2.2.2.2 connect-interface LoopBack 0
peer 3.3.3.3 as-number 10
peer 3.3.3.3 connect-interface LoopBack 0
peer 4.4.4.4 as-number 10
S6700 Series Ethernet Switches
Configuration Guide - IP Routing 4 OSPF Configuration
Issue 01 (2012-03-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
170