Page 1 of 1

Newbie needs help with a simple IPV6 PTP tunnel

Posted: Sun Jan 11, 2015 7:57 pm
by rgschmi
I'm running a Hercules emulator on OPENSUSE 13.1, which needs an internal point to point tunnel. I have no problem building an IPv4 tunnel with the following:

openvpn --mktun --dev tun0
ifconfig tun0 192.168.1.1 pointopoint 192.168.1.2

Is there an equivalent set of commands for IPv6? I've tried lots of combinations, but can't seem to make it work.

Thanks

Re: Newbie needs help with a simple IPV6 PTP tunnel

Posted: Mon Jan 12, 2015 10:27 am
by maikcat
hercules? you naughty boy... ;) z/OS or z/VM?

can you post what did you tried?

can you try this?

Code: Select all

ifconfig tun0 inet6 add 2001:610:120::200:0:1 2001:610:120::200:0:2 up
Michael.

Re: Newbie needs help with a simple IPV6 PTP tunnel

Posted: Thu Jan 15, 2015 6:01 am
by rgschmi
z/OS :roll:

I don't remember all the combinations I tried, both inside and outside of OPENVPN.

However, I created a tun5 with OPENVPN and tried what you suggested.


I get:

Don't know how to set addresses for family 10

I tried it with and without brackets. With brackets I get a resolver error, so brackets are not needed.

I also tried a lot of combinations using --ipconfig-ipv6 and --tun-ipv6 as an OPENVPN operands.

I have been able to add single IPv6 addresses to tun interfaces, which I can ping, so IPv6 is alive and well, I just can't configure a tunnel, which I need for MPCPTP6. I'm not an IPv6 expert, and was hoping to use this environment as a learning aid. I'm learning alright!

Re: Newbie needs help with a simple IPV6 PTP tunnel

Posted: Thu Jan 15, 2015 6:38 am
by maikcat
I have been able to add single IPv6 addresses to tun interfaces
now i am confused,is it working or not?
I just can't configure a tunnel
you can use openvpn to configure a simple tunnel using ipv6,which btw
ifconfig tun0 192.168.1.1 pointopoint 192.168.1.2
does NOT create a TUNNEL , it justs create a tun based interface in ptp mode and assigns it an ip.

Michael.

Re: Newbie needs help with a simple IPV6 PTP tunnel

Posted: Fri Jan 16, 2015 3:50 am
by rgschmi
Told you I was a newbie! I didn't realize it wasn't a tunnel I was creating with IPv4. It is not working yet, I just wanted to show that I IPv6 is running on linux.

I guess what I want then is the IPv6 equivalent of the IPv4 tun based ptp interface I created.

Re: Newbie needs help with a simple IPV6 PTP tunnel

Posted: Fri Jan 16, 2015 6:50 am
by maikcat
Told you I was a newbie
without wanting to argue with you , you said "'im not an IPv6 expert, and was hoping to use this environment as a learning aid. I'm learning alright!"
i assumed you were talking about z/OS , i dont know many "newbies" experimenting with hercules and z/OS btw ;) .

you can use openvpn to create ipv6 point-to-point tunnel,
just read first the howtos of howe to create a simple tunnel using static key and i will help you.

Michael.

Re: Newbie needs help with a simple IPV6 PTP tunnel

Posted: Sat Jan 17, 2015 8:09 pm
by rgschmi
I have several 'newbie' stati (statuses?). I'm pretty new at linux, openvpn, and IPv6. Been around mainframe networking for a LOOONG time :o .

My goal is to create the easiest possible tun device to allow me to get hercules IPv6 connectivity. My understanding is that with a tun device I need two IP addresses, one that exists in linux and one that will be used by the hercules guest.

I read the VPN using a static key setup, which brings up a concern about keys. I don't really want to use a key if possible.

I've entered the commands for the server side of the tunnel and and have no issues with ipv4, however I do have problems trying to use ipv6 addresses. I'm beginning to wonder if I'm having OPENSUSE issues.

Here is what I entered:

openvpn --dev tun20 --ifconfig-ipv6 2605:a000:1400:8039::112 2605:a000:1400:8039::113

I'm entering all this from the console, not from a config file and I believe the syntax is correct.

I'm getting 'bind failed on local address [undef]. Address already in use.' These are new addresses and a new tun name, so I'm not sure what I am doing wrong.

Re: Newbie needs help with a simple IPV6 PTP tunnel

Posted: Sat Jan 17, 2015 9:30 pm
by Traffic
rgschmi wrote:I'm getting 'bind failed on local address [undef]. Address already in use.'
would suggest you already have openvpn running .. on the same address ..