Wednesday 10 October 2012


L2VPN configuration using L2TPV3:

   ·         Point-To-Point Layer 2 VPNs can be configured using L2TPV3.

·         Core need not be MPLS.

·         It simply creates P2P tunnels.

·         Both the CEs appear as if they are in the same broadcast domain.

·         Let me take a small topology to configure L2TPV3
Configuration:
 
CE1#show run int fa0/0
Building configuration...
 
Current configuration : 93 bytes
!
interface FastEthernet0/0
 ip address 10.1.1.1 255.255.255.0
 duplex auto
 speed auto
end
 
CE1#
 
PE1#show run int fa0/0
Building configuration...
 
Current configuration : 128 bytes
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 xconnect 4.4.4.4 1 encapsulation l2tpv3 pw-class TEST
end
 
è  4.4.4.4 is the loopback0 of PE2
 
PE1#show run | begin TEST
pseudowire-class TEST
 encapsulation l2tpv3
 ip local interface Loopback0
!
 
CE2#show run int fa0/0
Building configuration...
 
Current configuration : 93 bytes
!
interface FastEthernet0/0
 ip address 10.1.1.2 255.255.255.0
 duplex auto
 speed auto
end
 
CE2#
 
PE2#show run int fa0/0
Building configuration...
 
Current configuration : 128 bytes
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 xconnect 3.3.3.3 1 encapsulation l2tpv3 pw-class TEST
end
 
à3.3.3.3 is the loopback0 of PE1
 
PE2#
PE2#show run | begin TEST
pseudowire-class TEST
 encapsulation l2tpv3
 ip local interface Loopback0
!
 
CE1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is not set
 
     1.0.0.0/32 is subnetted, 1 subnets
C       1.1.1.1 is directly connected, Loopback0
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, FastEthernet0/0
     11.0.0.0/32 is subnetted, 1 subnets
C       11.11.11.11 is directly connected, Loopback1
CE1#
CE1#ping 10.1.1.1
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
CE1#
CE1#ping 10.1.1.2
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/29/88 ms
CE1#
 
CE2#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
 
Gateway of last resort is not set
 
     2.0.0.0/32 is subnetted, 1 subnets
C       2.2.2.2 is directly connected, Loopback0
     22.0.0.0/32 is subnetted, 1 subnets
C       22.22.22.22 is directly connected, Loopback1
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, FastEthernet0/0
CE2#
CE2#ping 10.1.1.2
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
CE2#
CE2#ping 10.1.1.1
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/40/96 ms
CE2#
 
PE1#show l2tun session
 
%No active L2F tunnels
 
L2TP Session Information Total tunnels 1 sessions 1
 
LocID      RemID      TunID      Username, Intf/      State  Last Chg Uniq ID
                                 Vcid, Circuit
15639      53296      62903      1, Fa0/0             est    00:14:43 2
 
%No active PPTP tunnels
PE1#
PE1#show l2tun session all
 
%No active L2F tunnels
 
L2TP Session Information Total tunnels 1 sessions 1
 
Session id 15639 is up, tunnel id 62903
Call serial number is 4217400000
Remote tunnel name is PE2
  Internet address is 4.4.4.4
  Session is L2TP signalled
  Session state is established, time since change 00:14:46
    31 Packets sent, 32 received
    7193 Bytes sent, 7270 received
  Last clearing of "show vpdn" counters never
    Receive packets dropped:
      out-of-order:             0
      total:                    0
    Send packets dropped:
      exceeded session MTU:     0
      total:                    0
  Session vcid is 1
  Session Layer 2 circuit, type is Ethernet, name is FastEthernet0/0
  Circuit state is UP
    Remote session id is 53296, remote tunnel id 14802
  DF bit off, ToS reflect disabled, ToS value 0, TTL value 255
  No session cookie information available
  UDP checksums are disabled
  SSS switching enabled
  Sequencing is off
  Unique ID is 2
 
%No active PPTP tunnels
PE1#
 
PE2#show l2tun session
 
%No active L2F tunnels
 
L2TP Session Information Total tunnels 1 sessions 1
 
LocID      RemID      TunID      Username, Intf/      State  Last Chg Uniq ID
                                 Vcid, Circuit
53296      15639      14802      1, Fa0/0             est    00:15:17 1
 
%No active PPTP tunnels
PE2#
PE2#show l2tun session all
 
%No active L2F tunnels
 
L2TP Session Information Total tunnels 1 sessions 1
 
Session id 53296 is up, tunnel id 14802
Call serial number is 4217400000
Remote tunnel name is PE1
  Internet address is 3.3.3.3
  Session is L2TP signalled
  Session state is established, time since change 00:15:20
    33 Packets sent, 31 received
    7634 Bytes sent, 7193 received
  Last clearing of "show vpdn" counters never
    Receive packets dropped:
      out-of-order:             0
      total:                    0
    Send packets dropped:
      exceeded session MTU:     0
      total:                    0
  Session vcid is 1
  Session Layer 2 circuit, type is Ethernet, name is FastEthernet0/0
  Circuit state is UP
    Remote session id is 15639, remote tunnel id 62903
  DF bit off, ToS reflect disabled, ToS value 0, TTL value 255
  No session cookie information available
  UDP checksums are disabled
  SSS switching enabled
  Sequencing is off
  Unique ID is 1
 
%No active PPTP tunnels
PE2#
 
CE1#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater
 
Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
PE1              Fas 0/0            142        R S I      3725      Fas 0/0
CE2              Fas 0/0            124        R S I      3725      Fas 0/0
CE1#
 
CE2#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater
 
Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
PE2              Fas 0/0            149        R S I      3725      Fas 0/0
CE1              Fas 0/0            172        R S I      3725      Fas 0/0
CE2#
 
PE1#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater
 
Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
PE2              Ser 1/1            170        R S I      3725      Ser 1/1
PE1#
 
PE2#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater
 
Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
PE1              Ser 1/1            165        R S I      3725      Ser 1/1
PE2#
 
CE1#ping 255.255.255.255
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 255.255.255.255, timeout is 2 seconds:
 
Reply to request 0 from 10.1.1.2, 92 ms
Reply to request 1 from 10.1.1.2, 72 ms
Reply to request 2 from 10.1.1.2, 92 ms
Reply to request 3 from 10.1.1.2, 72 ms
Reply to request 4 from 10.1.1.2, 72 ms
CE1#
 
CE2#ping 255.255.255.255
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 255.255.255.255, timeout is 2 seconds:
 
Reply to request 0 from 10.1.1.1, 68 ms
Reply to request 1 from 10.1.1.1, 56 ms
Reply to request 2 from 10.1.1.1, 68 ms
Reply to request 3 from 10.1.1.1, 44 ms
Reply to request 4 from 10.1.1.1, 80 ms
CE2#

No comments:

Post a Comment