Jump to content






Photo * * * * * 2 votes

MPLS L3VPN with PPPoE

Posted by MSSK , 14 January 2014 · 15226 views

MPLS L3VPN with PPPoE In this example we will configure MPLS L3VPN between two sites but, one of the CEs is connected via normal Ethernet connection and the other one is connected via PPPoE
OSPF will be the PE-CE routing protocol and ISIS level-2 will be the operating IGP inside the MPLS backbone, area 49.0001 is in use
MPLS backbone will be located in AS 100

Configuration

R1
interface Loopback0
ip address 1.1.1.1 255.255.255.255

interface FastEthernet0/0
no ip address
speed 100
full-duplex
pppoe enable group global
pppoe-client dial-pool-number 1

interface Dialer1
mtu 1492
ip address dhcp
encapsulation ppp
dialer pool 1

router ospf 100
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 192.168.12.1 0.0.0.0 area 0

R2
interface Loopback0
ip address 2.2.2.2 255.255.255.255
ip router isis 1

interface FastEthernet0/0
ip address 192.168.23.2 255.255.255.0
ip router isis 1
speed 100
full-duplex
mpls ip

interface FastEthernet0/1
no ip address
speed 100
full-duplex
pppoe enable group PPPOE

bba-group pppoe PPPOE
virtual-template 1

interface Virtual-Template1
ip vrf forwarding MSSK
ip address 192.168.12.2 255.255.255.0

mpls label protocol ldp
mpls ldp router-id Loopback0 force

ip vrf MSSK
rd 100:1
route-target export 100:1
route-target import 100:1

ip dhcp pool POOL
   network 192.168.12.0 255.255.255.0

router isis 1
net 49.0001.0000.0000.0002.00
is-type level-2-only

router ospf 100 vrf MSSK
router-id 2.2.2.2
redistribute bgp 100 subnets
network 192.168.12.2 0.0.0.0 area 0

router bgp 100
no bgp default ipv4-unicast
neighbor 4.4.4.4 remote-as 100
neighbor 4.4.4.4 update-source Loopback0
address-family vpnv4
  neighbor 4.4.4.4 activate
  neighbor 4.4.4.4 send-community both
address-family ipv4 vrf MSSK
  redistribute ospf 100 vrf MSSK

R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255
ip router isis 1

interface FastEthernet0/0
ip address 192.168.23.3 255.255.255.0
ip router isis 1
speed 100
full-duplex
mpls ip

interface FastEthernet0/1
ip address 192.168.34.3 255.255.255.0
ip router isis 1
speed 100
full-duplex
mpls ip

mpls label protocol ldp
mpls ldp router-id Loopback0 force

router isis 1
net 49.0001.0000.0000.0003.00
is-type level-2-only

R4
interface Loopback0
ip address 4.4.4.4 255.255.255.255
ip router isis 1

interface FastEthernet0/0
ip address 192.168.34.4 255.255.255.0
ip router isis 1
speed 100
full-duplex
mpls ip
interface FastEthernet0/1
ip vrf forwarding MSSK
ip address 192.168.45.4 255.255.255.0
ip ospf network point-to-point
speed 100
full-duplex

ip vrf MSSK
rd 100:1
route-target export 100:1
route-target import 100:1

mpls label protocol ldp
mpls ldp router-id Loopback0 force

router isis 1
net 49.0001.0000.0000.0004.00
is-type level-2-only

router ospf 100 vrf MSSK
router-id 4.4.4.4
redistribute bgp 100 subnets
network 192.168.45.4 0.0.0.0 area 0

router bgp 100
no bgp default ipv4-unicast
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source Loopback0
address-family vpnv4
  neighbor 2.2.2.2 activate
  neighbor 2.2.2.2 send-community both
address-family ipv4 vrf MSSK
  redistribute ospf 100 vrf MSSK
  no synchronization

R5
interface Loopback0
ip address 5.5.5.5 255.255.255.255

interface FastEthernet0/0
ip address 192.168.45.5 255.255.255.0
ip ospf network point-to-point
speed 100
full-duplex

router ospf 100
router-id 5.5.5.5
network 5.5.5.5 0.0.0.0 area 0
network 192.168.45.5 0.0.0.0 area 0

Verifications

R2#show mpls ldp neighbor
    Peer LDP Ident: 3.3.3.3:0; Local LDP Ident 2.2.2.2:0
    TCP connection: 3.3.3.3.50422 - 2.2.2.2.646
    State: Oper; Msgs sent/rcvd: 875/880; Downstream
    Up time: 12:43:17
    LDP discovery sources:
  FastEthernet0/0, Src IP addr: 192.168.23.3
    Addresses bound to peer LDP Ident:
  3.3.3.3 192.168.23.3    192.168.34.3  

R3#show mpls ldp neighbor
    Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 3.3.3.3:0
    TCP connection: 2.2.2.2.646 - 3.3.3.3.50422
    State: Oper; Msgs sent/rcvd: 881/876; Downstream
    Up time: 12:43:30
    LDP discovery sources:
  FastEthernet0/0, Src IP addr: 192.168.23.2
    Addresses bound to peer LDP Ident:
  2.2.2.2 192.168.23.2  
    Peer LDP Ident: 4.4.4.4:0; Local LDP Ident 3.3.3.3:0
    TCP connection: 4.4.4.4.44368 - 3.3.3.3.646
    State: Oper; Msgs sent/rcvd: 879/881; Downstream
    Up time: 12:43:10
    LDP discovery sources:
  FastEthernet0/1, Src IP addr: 192.168.34.4
    Addresses bound to peer LDP Ident:
  4.4.4.4 192.168.34.4  

R4#show mpls ldp neighbor
    Peer LDP Ident: 3.3.3.3:0; Local LDP Ident 4.4.4.4:0
     TCP connection: 3.3.3.3.646 - 4.4.4.4.44368
    State: Oper; Msgs sent/rcvd: 881/879; Downstream
    Up time: 12:43:17
    LDP discovery sources:
  FastEthernet0/0, Src IP addr: 192.168.34.3
    Addresses bound to peer LDP Ident:
  3.3.3.3 192.168.23.3    192.168.34.3

R2#show bgp vpnv4 unicast all summary
BGP router identifier 2.2.2.2, local AS number 100
BGP table version is 9, main routing table version 9
4 network entries using 560 bytes of memory
4 path entries using 272 bytes of memory
5/4 BGP path/bestpath attribute entries using 620 bytes of memory
2 BGP extended community entries using 80 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 1564 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 15 secs

Neighbor     V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
4.4.4.4 4   100 768 768     9    0    0 12:41:56     2
R2#show bgp vpnv4 unicast all
BGP table version is 9, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
  r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network   Next Hop     Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 1.1.1.1/32    192.168.12.1 2 32768 ?
*>i5.5.5.5/32    4.4.4.4   2    100   0 ?
*> 192.168.12.0 0.0.0.0   0 32768 ?
*>i192.168.45.0 4.4.4.4   0    100   0 ?

R4#show bgp vpnv4 unicast all summary
BGP router identifier 4.4.4.4, local AS number 100
BGP table version is 9, main routing table version 9
4 network entries using 560 bytes of memory
4 path entries using 272 bytes of memory
5/4 BGP path/bestpath attribute entries using 620 bytes of memory
2 BGP extended community entries using 80 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 1564 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 15 secs

Neighbor     V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
2.2.2.2 4   100 769 769     9    0    0 12:42:04     2
R4#show bgp vpnv4 unicast all
BGP table version is 9, local router ID is 4.4.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
  r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network   Next Hop     Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*>i1.1.1.1/32    2.2.2.2   2    100   0 ?
*> 5.5.5.5/32    192.168.45.5 2 32768 ?
*>i192.168.12.0 2.2.2.2   0    100   0 ?
*> 192.168.45.0 0.0.0.0   0 32768 ?

R1#sh ip ospf neighbor

Neighbor ID Pri   State    Dead Time   Address Interface
2.2.2.2    0   FULL/  -     00:00:39    192.168.12.2    Dialer1
R1#sh ip route ospf
O IA 192.168.45.0/24 [110/1786] via 192.168.12.2, 00:12:49, Dialer1
5.0.0.0/32 is subnetted, 1 subnets
O IA    5.5.5.5 [110/1787] via 192.168.12.2, 00:12:49, Dialer1

R5#sh ip ospf neighbor

Neighbor ID Pri   State    Dead Time   Address Interface
4.4.4.4    0   FULL/  -     00:00:32    192.168.45.4    FastEthernet0/0
R5#sh ip route ospf
O IA 192.168.12.0/24 [110/2] via 192.168.45.4, 00:13:22, FastEthernet0/0
1.0.0.0/32 is subnetted, 1 subnets
O IA    1.1.1.1 [110/3] via 192.168.45.4, 00:13:22, FastEthernet0/0

R1#ping 5.5.5.5 source lo0

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/16/20 ms

R5#ping 1.1.1.1 source lo0

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 5.5.5.5
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/16/20 ms




Interesting
Thanks

BR,
MSSK

hackersword
Oct 06 2015 06:00 PM
thanks
Interesting
Nice lab. I would rather use a different mask in the ospf process on R1 covering the Dialer interface. With DHCP you can't know which address you get assigned.
thanks for the lab

January 2017

S M T W T F S
1234567
891011121314
15161718192021
22 232425262728
293031    

Recent Entries

Recent Comments

Tags

    Search My Blog

    Categories

    Organization

    Community

    Downloads

    Test Providers

    Site Info


    Go to top