Huawei S6700 Series Configuration Manual page 485

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

Advertisement

S6700 Series Ethernet Switches
Configuration Guide - IP Routing
Direct Out-interface: Vlanif20
Original nexthop: 200.1.2.1
Qos information : 0x0
AS-path 10, origin igp, MED 0, pref-val 0, valid, external, best, select, activ
e, pre 255
Advertised to such 2 peers:
You can view that Switch B advertises the received routes to Switch C in AS 30.
# Check the routing table of Switch C.
[SwitchC] display bgp routing-table
BGP Local router ID is 3.3.3.3
Status codes: * - valid, > - best, d - damped,
Total Number of Routes: 1
*>
You can find that Switch C has learned a route to the destination 9.1.1.0/24 from Switch B.
Step 4 Configure BGP community attributes.
# Configure the routing policy on Switch A to enable Switch B not to advertise the routes
advertised by Switch A to any other AS.
[SwitchA] route-policy comm_policy permit node 10
[SwitchA-route-policy] apply community no-export
[SwitchA-route-policy] quit
# Apply routing policies.
[SwitchA] bgp 10
[SwitchA-bgp] ipv4-family unicast
[SwitchA-bgp-af-ipv4] peer 200.1.2.2 route-policy comm_policy export
[SwitchA-bgp-af-ipv4] peer 200.1.2.2 advertise-community
# Check the routing table of Switch B.
[SwitchB] display bgp routing-table 9.1.1.0
BGP local router ID : 2.2.2.2
Local AS number : 20
Paths:
BGP routing table entry information of 9.1.1.0/24:
From: 200.1.2.1 (1.1.1.1)
Route Duration: 00h00m33s
Direct Out-interface: Vlanif20
Original nexthop: 200.1.2.1
Qos information : 0x0
Community:no-export
AS-path 10, origin igp, MED 0, pref-val 0, valid, external, best, select, activ
e, pre 255
Not advertised to any peer yet
You can view the configured community attribute in the BGP routing table of Switch B. At this
time, there are no routes to the destination 9.1.1.0/24 in the BGP routing table of Switch C.
----End
Configuration Files
l
Issue 01 (2012-03-15)
200.1.2.1
200.1.3.2
h - history,
Origin : i - IGP, e - EGP, ? - incomplete
Network
9.1.1.0/24
1 available, 1 best, 1 select
Configuration file of Switch A
#
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
i - internal, s - suppressed, S - Stale
NextHop
MED
200.1.3.1
7 BGP Configuration
LocPrf
PrefVal Path/Ogn
0
20 10i
466

Advertisement

Table of Contents
loading

Table of Contents