Bring MPLS Network at Your Home Lab

February 20, 2009

L2TPv3 Router-to-router Mode

Filed under: Cisco

Topology

 

tool : Dynamips 

IOS : c7200-adventerprisek9-mz.122-33.SRC1.bin, c3640-jk9s-mz.124-16.bin

Purpose : Basic EoL2TPv3 (Router to Router Port Mode) configuration

how to configure for PE router 

1. configure l2tp-class 

!
no aaa new-model
ip subnet-zero
!
!
!
ip cef
l2tp-class L2TPv3
 authentication
 hello 30
 hostname PE1
 password n4rut0
!
!

2. configure pseudowire-class

!
!
pseudowire-class PSW-CLASS
 encapsulation l2tpv3
 protocol l2tpv3 L2TPv3
 ip local interface Loopback0
 ip pmtu
 ip dfbit set
 ip tos reflect
 ip ttl 50
!

3. configure interface loopback

!
!
interface Loopback0
 ip address 202.162.208.252 255.255.255.255
 no clns route-cache
!

4. configure interface to CE router 

!
interface FastEthernet1/0
 no ip address
 speed auto
 duplex auto
 no clns route-cache
 xconnect 125.249.16.252 100 pw-class PSW-CLASS
!
– xconnect peer-ip-address vcid pw-class name

5. configure interface to outside 

!
interface Serial2/0
 no ip address
 encapsulation frame-relay
 serial restart-delay 0
 no clns route-cache
!
interface Serial2/0.101 point-to-point
 description to_P
 ip address 202.162.208.1 255.255.255.252
 no arp frame-relay
 frame-relay interface-dlci 101  
!

6. configure routing protocol (use OSPF)

!
router ospf 1
 log-adjacency-changes
 network 202.162.208.1 0.0.0.0 area 0
 network 202.162.208.252 0.0.0.0 area 0
!

now for each CE router you can configre ip address on the same subnet example for CE1 192.168.1.1/24 and for CE2 192.168.1.10/24 

for verivication use sho l2tun session all and ping between CE1&CE2

PE1#show l2tun session all

L2TP Session Information Total tunnels 1 sessions 1

Session id 1790963512 is up, tunnel id 3317585641
  Remote session id is 898844641, remote tunnel id 3348702048
  Remotely initiated session
  Unique ID is 1
Session Layer 2 circuit, type is Ethernet, name is FastEthernet1/0
  Session vcid is 100
  Circuit state is UP
  Local circuit state is UP
  Remote circuit state is UP
Call serial number is 2696400001
Remote tunnel name is PE2
  Internet address is 125.249.16.252
Local tunnel name is PE1
  Internet address is 202.162.208.252
IP protocol 115
  Session is L2TP signaled
  Session state is established, time since change 01:23:57
  471 Packets sent, 92 received
  83694 Bytes sent, 37303 received
  Last clearing of counters never
  Counters, ignoring last clear:
  471 Packets sent, 92 received
  83694 Bytes sent, 37303 received
  Receive packets dropped:
  out-of-order: 0
  total: 0
  Send packets dropped:
  exceeded session MTU: 0
  total: 0
  DF bit on, ToS reflect enabled, ToS value 0, TTL value 50
  UDP checksums are disabled
  Session PMTU enabled, path MTU is 1500 bytes
  No session cookie information available
  FS cached header information:
  encap size = 24 bytes
  45000014 00004000 32731DE3 CAA2D0FC
  7DF910FC 359347E1
  Sequencing is off
  Conditional debugging is disabled
PE1#

CE2#ping 192.168.1.1 size 1600 repeat 20

Type escape sequence to abort.
Sending 20, 1600-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
…!!!!!!!!!!!!!!!!!
Success rate is 85 percent (17/20), round-trip min/avg/max = 484/691/1420 ms

If you want to see all configuration download at this link 

Comments »

The URI to TrackBack this entry is: http://sioduy.blogsome.com/2009/02/20/l2tpv3-router-to-router-mode/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.






















Get free blog up and running in minutes with Blogsome
Theme designed by Hadley Wickham