Mpls l3vpn On Huawei Routers PDF
Mpls l3vpn On Huawei Routers PDF
Mpls l3vpn On Huawei Routers PDF
A BGP/MPLS IP VPN uses the Border Gateway Protocol (BGP) to advertise VPN routes and the
Multiprotocol Label Switching (MPLS) to forward VPN packets on backbone networks.
To exchange routes between a PE and a CE, static route, RIP multi-instance, OSPF multi-instance, ISIS
multi-instance, or EBGP, can be used.
A Customer Edge (CE) is an edge device on the customer network, which has one or more
interfaces directly connected to the service provider network. Usually, CEs do not know
anything about VPNs and do not need to support MPLS.
A Provider Edge (PE) is an edge device on the provider network, which is directly connected
to the CE. In the MPLS network, PE performs all the VPN-related processing.
A Provider (P) is a backbone device on the provider network, which is not directly connected
to the CE. P router only needs to possess basic MPLS forwarding capabilities and does not
need to maintain information about VPNs.
To simplify our topology, only 2 PE routers have been used, P router is not necessary to show VPNs
functionalities.
Total Peer(s): 1
[AR3]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 9 Routes : 9
Total Peer(s): 1
[AR4]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 9 Routes : 9
Configure PE3:
Configure PE4:
PE3:
[AR3]bgp 100
[AR3-bgp]peer 4.4.4.4 as-number 100
[AR3-bgp]peer 4.4.4.4 connect-interface LoopBack0
[AR3-bgp]ipv4-family vpnv4
[AR3-bgp-af-vpnv4]peer 4.4.4.4 enable
[AR3-bgp-af-vpnv4]quit
[AR3-bgp]dis this
#
bgp 100
peer 4.4.4.4 as-number 100
peer 4.4.4.4 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
peer 4.4.4.4 enable
#
ipv4-family vpnv4
policy vpn-target
peer 4.4.4.4 enable
[AR3-bgp]ipv4-family unicast
[AR3-bgp-af-ipv4]undo peer 4.4.4.4 enable
Route distinguisher RD is used to distinguish the IPv4 prefixes with the same address space. Address
spaces of different VPNs may overlap.
The VPN target is a 32-bit BGP extension community attribute. BGP/MPLS IP VPN uses the VPN target
to control the advertisement of VPN routing information.
Export target: After learning the IPv4 routes from directly connected sites, a local PE converts
the routes to VPN-IPv4 routes and sets the export target attribute for those routes. As the
BGP extension community attribute, the export target attribute is advertised with the routes.
Import target: After receiving VPN-IPv4 routes from other PEs, a PE checks the export target
attribute of the routes. If the export target is identical with the import target of a VPN
instance on the PE, the PE adds the route to the VPN routing table.
Bind the instances to the CE interfaces on both PEs. Remember that all IP related configuration will
be removed from the interfaces:
Configure static route to Loopback 0 interfaces of CE1 and CE5 (from PE3 and PE4 respectively):
Go to BGP VPN instance IPv4 address family of PE routers and import direct and static routes into
BGP:
[AR3]bgp 100
[AR3-bgp]ipv4-family vpn-instance labnario_1
[AR3-bgp-labnario_1]import-route direct
[AR3-bgp-labnario_1]import-route static
[AR4]bgp 100
[AR4-bgp]ipv4-family vpn-instance labnario_1
[AR4-bgp-labnario_1]import-route direct
[AR4-bgp-labnario_1]import-route static
PE3:
CE2:
[AR3]bgp 100
[AR3-bgp]ipv4-family vpn-instance labnario_2
[AR3-bgp-labnario_2]import-route ospf 1
CE8:
PE4:
[AR4]bgp 100
[AR4-bgp]ipv4-family vpn-instance labnario_2
[AR4-bgp-labnario_2]peer 172.16.2.1 as-number 200
[AR4-bgp-labnario_2]import-route direct
[AR1]ping 5.5.5.5
PING 5.5.5.5: 56 data bytes, press CTRL_C to break
Reply from 5.5.5.5: bytes=56 Sequence=1 ttl=253 time=220 ms
Reply from 5.5.5.5: bytes=56 Sequence=2 ttl=253 time=100 ms
Reply from 5.5.5.5: bytes=56 Sequence=3 ttl=253 time=80 ms
Reply from 5.5.5.5: bytes=56 Sequence=4 ttl=253 time=90 ms
Reply from 5.5.5.5: bytes=56 Sequence=5 ttl=253 time=90 ms
[AR2]ping 6.6.6.6
PING 6.6.6.6: 56 data bytes, press CTRL_C to break
Reply from 6.6.6.6: bytes=56 Sequence=1 ttl=253 time=210 ms
Reply from 6.6.6.6: bytes=56 Sequence=2 ttl=253 time=80 ms
Reply from 6.6.6.6: bytes=56 Sequence=3 ttl=253 time=200 ms
Reply from 6.6.6.6: bytes=56 Sequence=4 ttl=253 time=70 ms
Reply from 6.6.6.6: bytes=56 Sequence=5 ttl=253 time=70 ms
[AR1]ping 6.6.6.6
PING 6.6.6.6: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out