Newbie needs help with a simple IPV6 PTP tunnel
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 4
- Joined: Sun Jan 11, 2015 7:14 pm
Newbie needs help with a simple IPV6 PTP tunnel
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
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
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: Newbie needs help with a simple IPV6 PTP tunnel
hercules? you naughty boy...
z/OS or z/VM?
can you post what did you tried?
can you try this?
Michael.

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
-
- OpenVpn Newbie
- Posts: 4
- Joined: Sun Jan 11, 2015 7:14 pm
Re: Newbie needs help with a simple IPV6 PTP tunnel
z/OS
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!

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!
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: Newbie needs help with a simple IPV6 PTP tunnel
now i am confused,is it working or not?I have been able to add single IPv6 addresses to tun interfaces
you can use openvpn to configure a simple tunnel using ipv6,which btwI just can't configure a tunnel
does NOT create a TUNNEL , it justs create a tun based interface in ptp mode and assigns it an ip.ifconfig tun0 192.168.1.1 pointopoint 192.168.1.2
Michael.
-
- OpenVpn Newbie
- Posts: 4
- Joined: Sun Jan 11, 2015 7:14 pm
Re: Newbie needs help with a simple IPV6 PTP tunnel
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.
I guess what I want then is the IPv6 equivalent of the IPv4 tun based ptp interface I created.
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: Newbie needs help with a simple IPV6 PTP tunnel
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!"Told you I was a newbie
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.
-
- OpenVpn Newbie
- Posts: 4
- Joined: Sun Jan 11, 2015 7:14 pm
Re: Newbie needs help with a simple IPV6 PTP tunnel
I have several 'newbie' stati (statuses?). I'm pretty new at linux, openvpn, and IPv6. Been around mainframe networking for a LOOONG time
.
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.

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.
- Traffic
- OpenVPN Protagonist
- Posts: 4066
- Joined: Sat Aug 09, 2014 11:24 am
Re: Newbie needs help with a simple IPV6 PTP tunnel
would suggest you already have openvpn running .. on the same address ..rgschmi wrote:I'm getting 'bind failed on local address [undef]. Address already in use.'