Huawei AR1200 series Configuration Manual page 215

Enterprise routers
Hide thumbs Also See for AR1200 series:
Table of Contents

Advertisement

Huawei AR1200 Series Enterprise Routers
Configuration Guide - VPN
[CE1-bgp] import-route direct
[CE1-bgp] quit
# Configure CE2.
[CE2] bgp 65002
[CE2-bgp] peer 10.2.1.2 as-number 200
[CE2-bgp] import-route direct
[CE2-bgp] quit
# Configure PE1.
[PE1] bgp 100
[PE1-bgp] ipv4-family vpn-instance vpn1
[PE1-bgp-vpn1] peer 10.1.1.1 as-number 65001
[PE1-bgp-vpn1] import-route direct
[PE1-bgp-vpn1] quit
# Configure PE2.
[PE2] bgp 200
[PE2-bgp] ipv4-family vpn-instance vpn1
[PE2-bgp-vpn1] peer 10.2.1.1 as-number 65002
[PE2-bgp-vpn1] import-route direct
[PE2-bgp-vpn1] quit
After the configuration, run the display bgp vpnv4 vpn-instance peer command on a PE to
find that the BGP peer relationship between the PE and CE is in the Established state.
Take the peer relationship between PE 1 and CE 1 as an example:
[PE1] display bgp vpnv4 vpn-instance vpn1 peer
BGP local router ID : 1.1.1.9
Local AS number : 100
VPN-Instance vpn1, router ID 1.1.1.9:
Total number of peers : 1
Peer
10.1.1.1
Step 10 Varify the configuration.
After the preceding configuration, CEs can learn routes of interfaces on each other, and CE1
and CE2 can ping each other successfully.
Take CE1 as an example:
[CE1] display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destination/Mask
GigabitEthernet1/0/0
GigabitEthernet1/0/0
127.0.0.0/8
127.0.0.1/32
[CE1] ping 10.2.1.1
PING 10.2.1.1: 56
Issue 01 (2012-04-20)
V
AS
4 65001
Destinations : 5
Proto
10.1.1.0/24
Direct 0
10.1.1.1/32
Direct 0
10.2.1.0/24
EBGP
Direct 0
Direct 0
data bytes, press CTRL_C to break
Reply from 10.2.1.1: bytes=56 Sequence=1 ttl=252 time=102 ms
Reply from 10.2.1.1: bytes=56 Sequence=2 ttl=252 time=89 ms
Reply from 10.2.1.1: bytes=56 Sequence=3 ttl=252 time=106 ms
Reply from 10.2.1.1: bytes=56 Sequence=4 ttl=252 time=104 ms
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Peers in established state : 1
MsgRcvd
MsgSent
OutQ
3
3
Routes : 5
Pre
Cost
Flags NextHop
0
D
10.1.1.1
0
D
127.0.0.1
255
0
D
0
D
127.0.0.1
0
D
127.0.0.1
3 BGP MPLS IP VPN Configuration
Up/Down
State PrefRcv
0 00:00:52 Established
Interface
InLoopBack0
10.1.1.2
InLoopBack0
InLoopBack0
1
204

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ar3200 series

Table of Contents