Hi,

I have two mirrored clones of CentOS 6.2 with l2tpv3tun in a lab/test
environment.

With each I set some variables...
export tunid=1
export peerid=1
export sport=5000
export dport=5001
export localip=21.21.21.2
export remoteip=20.20.20.2
export l2iplocal=10.5.1.2
export l2ipremote=10.5.1.1

And the reverse on the other box:

export tunid=2
export peerid=2
export sport=5001
export dport=5000
export localip=20.20.20.2
export remoteip=21.21.21.2
export l2iplocal=10.5.1.1
export l2ipremote=10.5.1.2

Then I run:
 l2tpv3tun add tunnel tunnel_id $tunid peer_tunnel_id $peerid
udp_sport $sport udp_dport $dport encap udp local $localip remote
$remoteip
 l2tpv3tun add session tunnel_id $tunid session_id $tunid peer_session_id $tunid
 ip addr add ${l2iplocal}/32 peer ${l2ipremote}/32 dev l2tpeth0
 ifconfig l2tpeth0 up

I see the new device:

l2tpeth0  Link encap:Ethernet  HWaddr 5E:E3:5F:0F:83:95
          inet addr:10.5.1.1  Bcast:0.0.0.0  Mask:255.255.255.255
          inet6 addr: fe80::5ce3:5fff:fe0f:8395/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1488  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:3228 (3.1 KiB)

[root@box20 ~]# l2tpv3tun show tunnel
Tunnel 2, encap UDP
  From 20.20.20.2 to 21.21.21.2
  Peer tunnel 2
  UDP source / dest ports: 5001/5000
[root@box20 ~]# l2tpv3tun show session
Session 2 in tunnel 2
  Peer session 2, tunnel 2
  interface name: l2tpeth0
  offset 0, peer offset 0

pings to the eth0 IPs (20.20.20.2/21.21.21.2) work, but no luck on the
l2tpeth0 device's IPs (10.5.1.1/10.5.1.2). OpenSwan is installed and
bound to eth0 (using netkey). Even with openswan / ipsec service off,
no pings.

 If anyone can offer some guidance I would appreciate it. :-)

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openl2tp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openl2tp-users

Reply via email to