#
mpls lsr-id 5.5.5.5
mpls
#
mpls ldp
#
interface GigabitEthernet1/0/0
undo shutdown
ipv6 enable
ipv6 address 2001:db8:2::2/64
#
interface GigabitEthernet1/0/1
undo shutdown
ip address 20.1.2.2 255.255.255.0
mpls
mpls ldp
#
interface LoopBack1
ip address 5.5.5.5 255.255.255.255
#
bgp 200
peer 2.2.2.2 as-number 100
peer 2.2.2.2 ebgp-max-hop 255
peer 2.2.2.2 connect-interface LoopBack1
peer 4.4.4.4 as-number 200
peer 4.4.4.4 connect-interface LoopBack1
peer 2001:db8:2::1 as-number 400
#
ipv4-family unicast
undo synchronization
peer 2.2.2.2 enable
peer 4.4.4.4 enable
peer 4.4.4.4 label-route-capability
#
ipv6-family unicast
undo synchronization
peer 2.2.2.2 enable
peer 2.2.2.2 label-route-capability
peer 2001:db8:2::1 enable
#
ospf 1
area 0.0.0.0
network 5.5.5.5 0.0.0.0
network 20.1.2.0 0.0.0.255
#
return
l
CE2 configuration file
#
sysname CE2
#
ipv6
#
interface GigabitEthernet1/0/0
undo shutdown
ipv6 enable
ipv6 address 2001:db8:2::1/64
#
interface LoopBack1
ipv6 enable
ipv6 address 2001:db8:6::6/64
#
bgp 400
router-id 6.6.6.6
peer 2001:db8:2::2 as-number 200
#
ipv6-family unicast
HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
9 BGP4+ Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1172