Download Print this page

Huawei Quidway NetEngine80E Configuration Manual page 102

Universal service router, ip routing
Hide thumbs Also See for Quidway NetEngine80E:

Advertisement

HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
# Configure Router C.
[RouterC] ip ip-prefix prefix2 index 10 deny 20.1.1.0 24
[RouterC] ip ip-prefix prefix2 index 20 permit 0.0.0.0 0 less-equal 32
[RouterC] route-policy policy2 permit node 10
[RouterC-route-policy] if-match ip-prefix prefix2
[RouterC-route-policy] quit
[RouterC] bgp 100
[RouterC-bgp] peer 20.2.1.2 route-policy policy2 export
[RouterC-bgp] quit
[RouterC] quit
<RouterC> refresh bgp all export
# Display the BGP routing table of Router D.
BGP Local router ID is 4.4.4.4
Status codes: * - valid, > - best, d - damped,
Total Number of Routes: 2
*>i
You can find that the route 20.1.1.0/24 does not exist in the BGP routing table of Router D. As
a result, Router D can communicate with Router B, but cannot communicate with Router A.
----End
Configuration Files
l
l
Issue 02 (2014-09-30)
h - history,
Origin : i - IGP, e - EGP, ? - incomplete
Network
20.1.1.4/32
i
20.2.1.0/24
Configuration file of Switch A
# sysname switchA # vlan batch 10 # interface Vlanif10 ip address 20.1.1.2
255.255.255.0 # interface GigabitEthernet1/0/0 portswitch undo shutdown port
link-type access port default vlan 10 # interface GigabitEthernet2/0/0
portswitch undo shutdown port link-type access port default vlan 10 # interface
GigabitEthernet3/0/0 portswitch undo shutdown port link-type access port
default vlan 10 # return
Configuration file of Router A
#
sysname switchA
#
vlan batch 10
#
interface Vlanif10
ip address 20.1.1.2 255.255.255.0
#
interface GigabitEthernet1/0/0
portswitch
undo shutdown
port link-type access
port default vlan 10
#
interface GigabitEthernet2/0/0
portswitch
undo shutdown
port link-type access
port default vlan 10
#
interface GigabitEthernet3/0/0
portswitch
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
i - internal, s - suppressed, S - Stale
NextHop
MED
20.2.1.1
0
20.2.1.1
0
1 IP Routing Basic Configuration
LocPrf
PrefVal Path/Ogn
100
0
?
100
0
?
77

Hide quick links:

Advertisement

loading

This manual is also suitable for:

Quidway netengine40eNe40eNe80e