Huawei S6700 Series Configuration Manual page 476

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

Advertisement

S6700 Series Ethernet Switches
Configuration Guide - IP Routing
5.
6.
Issue 01 (2012-03-15)
# Configure SwitchB.
[SwitchB] bgp 65009
[SwitchB-bgp] router-id 2.2.2.2
[SwitchB-bgp] peer 3.1.1.2 as-number 65008
Configure BGP to interact with an IGP
# On SwitchB, configure BGP to import OSPF routes.
[SwitchB-bgp] ipv4-family unicast
[SwitchB-bgp-af-ipv4] import-route ospf 1
[SwitchB-bgp-af-ipv4] quit
[SwitchB-bgp] quit
# Check the routing table of SwitchA.
[SwitchA] display bgp routing-table
BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history,
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 3
Network
*>
8.1.1.0/24
*>
9.1.1.0/24
*>
9.1.2.0/24
# On SwitchB, configure BGP to import BGP routes.
[SwitchB] ospf
[SwitchB-ospf-1] import-route bgp
[SwitchB-ospf-1] quit
# Check the routing table of SwitchC.
[SwitchC] display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 7
Destination/Mask
Proto
8.1.1.0/24
O_ASE
9.1.1.0/24
Direct
9.1.1.2/32
Direct
9.1.2.0/24
Direct
9.1.2.1/32
Direct
127.0.0.0/8
Direct
127.0.0.1/32
Direct
Configure automatic aggregation.
# Configure SwitchB.
[SwitchB] bgp 65009
[SwitchB-bgp] ipv4-family unicast
[SwitchB-bgp-af-ipv4] summary automatic
[SwitchB-bgp-af-ipv4] quit
[SwitchB-bgp] quit
# Check the BGP routing table of SwitchA.
[SwitchA] display bgp routing-table
BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history,
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 2
Network
*>
8.1.1.0/24
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
i - internal, s - suppressed, S - Stale
NextHop
MED
0.0.0.0
0
3.1.1.1
0
3.1.1.1
2
Routes : 7
Pre
Cost
Flags
150
1
D
0
0
D
0
0
D
0
0
D
0
0
D
0
0
D
0
0
D
i - internal, s - suppressed, S - Stale
NextHop
MED
0.0.0.0
0
7 BGP Configuration
LocPrf
PrefVal Path/Ogn
0
i
0
65009?
0
65009?
NextHop
Interface
9.1.1.1
Vlanif20
9.1.1.2
Vlanif20
127.0.0.1
InLoopBack0
9.1.2.1
Vlanif40
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
LocPrf
PrefVal Path/Ogn
0
i
457

Advertisement

Table of Contents
loading

Table of Contents