Download Print this page

Huawei Quidway NetEngine80E Configuration Manual page 418

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

Advertisement

HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
[RouterC-bgp] peer 2.2.2.2 connect-interface LoopBack 0
[RouterC-bgp] peer 4.4.4.4 as-number 10
[RouterC-bgp] peer 4.4.4.4 connect-interface LoopBack 0
[RouterC-bgp] quit
# Configure Router D.
<RouterD> system-view
[RouterD] interface LoopBack 0
[RouterD-LoopBack0] ip address 4.4.4.4 32
[RouterD-LoopBack0] quit
[RouterD] bgp 10
[RouterD-bgp] router-id 4.4.4.4
[RouterD-bgp] peer 1.1.1.1 as-number 10
[RouterD-bgp] peer 1.1.1.1 connect-interface LoopBack 0
[RouterD-bgp] peer 2.2.2.2 as-number 10
[RouterD-bgp] peer 2.2.2.2 connect-interface LoopBack 0
[RouterD-bgp] peer 3.3.3.3 as-number 10
[RouterD-bgp] peer 3.3.3.3 connect-interface LoopBack 0
[RouterD-bgp] quit
Step 4 Configure an EBGP connection.
# Configure Router D.
[RouterD] bgp 10
[RouterD-bgp] peer 10.2.1.2 as-number 20
[RouterD-bgp] import-route direct
[RouterD-bgp] import-route ospf 1
[RouterD-bgp] quit
# Configure Router E.
[RouterE] bgp 20
[RouterE-bgp] peer 10.2.1.1 as-number 10
[RouterE-bgp] ipv4-family unicast
[RouterE-bgp-af-ipv4] network 10.3.1.0 30
[RouterE-bgp-af-ipv4] quit
Step 5 Set the cost of OSPF on Router C.
[RouterC] interface pos 1/0/0
[RouterC-Pos1/0/0] ospf cost 2
[RouterC-Pos1/0/0] quit
[RouterC] interface pos 2/0/0
[RouterC-Pos2/0/0] ospf cost 2
[RouterC-Pos2/0/0] quit
# View the routing table of Router 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 POS 1/0/0.
[RouterA] display ip routing-table
Route Flags: R - relied, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destination/Mask
Issue 02 (2014-09-30)
NOTE
After the cost of OSPF on Router C is set to 2, Router A chooses only Router B as the intermediate router
to the network segment 10.2.1.0. Router C becomes the backup router of Router B.
Destinations : 16
Proto
1.1.1.1/32
Direct 0
2.2.2.2/32
OSPF
4.4.4.0/24
IBGP
4.4.4.4/32
OSPF
5.5.5.0/24
EBGP
10.1.1.0/30
Direct 0
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
5 OSPF Configuration
Interface
InLoopBack0
Pos1/0/0
Pos1/0/0
Pos1/0/0
Pos1/0/0
Pos1/0/0
393

Hide quick links:

Advertisement

loading

This manual is also suitable for:

Quidway netengine40eNe40eNe80e