Regarding the LDP/BGP/IGP configuration, please refer to this blog.
Here is the topology:

Here we have 2 pseudowires: ce1-ce2-pw4-vlan-301 and ce1-ce2-pw4-vlan-302 to L2 connectivity between CE1 and CE2 across LDP cloud. From CEs' perspective, the pw works like a directly connected L2 link. So the VLANs are in same subnet and running IGPs (OSPF/ISIS) on the top of it.
PE 1 configuration:
interface Ethernet3/1
description mpls.pe1=>p1:et54/1
mtu 9082
no switchport
ip address 88.1.11.11/24
!
interface Ethernet45/3
description mpls.pe1=>p3:et45/3
mtu 9082
no switchport
ip address 88.3.11.11/24
!
interface Ethernet47/2
description mpl1.pe1=>ce1:et51/1
mtu 9082
! pw intf to CE1 must be routed port, otherwise pw down !
no switchport
!
interface Loopback88
ip address 88.255.11.11/32
!
mpls ip
!
mpls ldp
! mpls ldp config is same as mpls ldp l3vpn !
router-id 88.255.11.11
transport-address interface Loopback88
fec filter prefix-list fec-pfx-list
no shutdown
!
pseudowires
pseudowire to-ce2-vlan-301
! 88.255.22.22 is PE2's ldp/pw loopback ip addr !
neighbor 88.255.22.22
pseudowire-id 301
mtu 9082
!
pseudowire to-ce2-vlan-302
neighbor 88.255.22.22
pseudowire-id 302
mtu 9082
!
patch panel
patch ce1-ce2-pw4-vlan-301
! note, e47/2 is cfg'ed as routed port, NOT sw/trunk port !
connector 1 interface Ethernet47/2 dot1q vlan 301
connector 2 pseudowire ldp to-ce2-vlan-301
!
patch ce1-ce2-pw4-vlan-302
connector 1 interface Ethernet47/2 dot1q vlan 302
connector 2 pseudowire ldp to-ce2-vlan-302
PE 2 configuration:
interface Ethernet33/1
description pe2-p4=>p4.et33/1
mtu 9082
no switchport
ip address 88.4.22.22/24
!
interface Ethernet37/2
description pe2-ce2=>ce2.et52/2
mtu 9082
no switchport
!
interface Ethernet51/1
description pe2-p2=>p2.et51/1
mtu 9082
no switchport
ip address 88.2.22.22/24
!
interface Loopback88
ip address 88.255.22.22/32
!
mpls ip
!
mpls ldp
router-id 88.255.22.22
transport-address interface Loopback88
fec filter prefix-list fec-pfx-list
no shutdown
!
pseudowires
pseudowire to-ce1-vlan-301
neighbor 88.255.11.11
pseudowire-id 301
mtu 9082
!
pseudowire to-ce1-vlan-302
neighbor 88.255.11.11
pseudowire-id 302
mtu 9082
!
patch panel
patch ce1-ce2-pw4-vlan-301
connector 1 interface Ethernet37/2 dot1q vlan 301
connector 2 pseudowire ldp to-ce1-vlan-301
!
patch ce1-ce2-pw4-vlan-302
connector 1 interface Ethernet37/2 dot1q vlan 302
connector 2 pseudowire ldp to-ce1-vlan-302
For the CE's configuration, please note that I use VRF on CE to simulate multiple hosts.
CE1 configuration:
vrf definition ce1-pw4-301
rd 301:1
!
vrf definition ce1-pw4-302
rd 302:1
!
interface Ethernet51/2
description mpls.ce1=>pe1:et47/2
! compare with PE1's et47/2, here is sw + trunk !
switchport trunk allowed vlan 301-302
switchport mode trunk
!
interface Vlan301
vrf forwarding ce1-pw4-301
ip address 101.101.101.1/24
!
interface Vlan302
mtu 9000
vrf forwarding ce1-pw4-302
ip address 102.102.102.1/24
isis enable isis-ce1-pw4-302
!
interface Loopback301
vrf forwarding ce1-pw4-301
ip address 101.255.1.1/24
!
interface Loopback302
vrf forwarding ce1-pw4-302
ip address 102.255.1.1/24
isis enable isis-ce1-pw4-302
!
ip routing vrf ce1-pw4-301
ip routing vrf ce1-pw4-302
!
router isis isis-ce1-pw4-302 vrf ce1-pw4-302
net 47.0002.0001.0001.0001.00
is-type level-2
!
address-family ipv4 unicast
!
router ospf 301 vrf ce1-pw4-301
network 101.0.0.0/8 area 0.0.0.0
max-lsa 12000
CE2 configuration:
interface Ethernet52/2
description mpls.ce2=>pe2:et37/2
switchport trunk allowed vlan 301-302
switchport mode trunk
!
vrf definition ce2-pw4-301
rd 301:2
!
vrf definition ce2-pw4-302
rd 302:2
!
interface Loopback301
vrf forwarding ce2-pw4-301
ip address 101.255.2.2/24
!
interface Loopback302
vrf forwarding ce2-pw4-302
ip address 102.255.2.2/24
isis enable isis-ce2-pw4-302
!
interface Vlan301
vrf forwarding ce2-pw4-301
ip address 101.101.101.2/24
!
interface Vlan302
mtu 9000
vrf forwarding ce2-pw4-302
ip address 102.102.102.2/24
isis enable isis-ce2-pw4-302
!
ip routing vrf ce2-pw4-301
ip routing vrf ce2-pw4-302
!
router isis isis-ce2-pw4-302 vrf ce2-pw4-302
net 47.0002.0002.0002.0002.00
is-type level-2
!
address-family ipv4 unicast
!
router ospf 301 vrf ce2-pw4-301
network 101.0.0.0/8 area 0.0.0.0
max-lsa 12000
No comments:
Post a Comment