[Users] IPv6 again but this time with veth

Jan Tomasek jan at tomasek.cz
Thu Jun 28 14:44:48 EDT 2007


Vitaliy Gusev wrote:
> Well, can you draw interaction scheme of the all hosts and describe final goal that you expect?

I need IPv4 and IPv6 support in VE.

Host node have IPv4=195.113.233.4, IPv6=2001:718:1:e::23:3004/64. That
is working ok.

VE 233012 is supposed to have IPv4=195.113.233.12,
IPv6=2001:718:1:e::23:3012/64.

Gateway for IPv4 is 195.113.233.1 and for IPv6 it somehow works without
GW. Config from host node:

> auto eth0
> iface eth0 inet static
>         address 195.113.233.4
>         netmask 255.255.255.0
>         network 195.113.233.0
>         broadcast 195.113.233.255
>         gateway 195.113.233.1
>         dns-nameservers 195.113.144.233 195.113.144.194
>         dns-search cesnet.cz
> 
> iface eth0 inet6 static
>         post-up /sbin/sysctl -w "net.ipv6.conf.eth0.autoconf=0"
>         address 2001:718:1:e::23:3004
>         netmask 64

I've no idea how to draw that. Task is simple: Get IPv6 support inside
VE 233012.


I would prefer venet interface, but that doesn't work. See thread:
http://forum.openvz.org/index.php?t=msg&goto=12809&&srch=IPv6#msg_12809

So I'm trying experiment with veth.

> I want to make a note that  veth device is usually used with a  bridge.

Ok. I will use anything which will make it to work. I tried to restart
staj-dev to get clean environment and typed:

staj-dev:~# brctl addbr vzbr0
staj-dev:~# brctl addif vzbr0 veth012.0
staj-dev:~# echo 1 > /proc/sys/net/ipv4/conf/vzbr0/forwarding
staj-dev:~# echo 1 > /proc/sys/net/ipv4/conf/vzbr0/proxy_arp
staj-dev:~# ip route add 195.113.233.12 dev vzbr0
staj-dev:~# echo 1 > /proc/sys/net/ipv4/conf/eth0/forwarding
staj-dev:~# echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
staj-dev:~# ip route add 2001:718:1:e::23:3012/64 dev vzbr0
staj-dev:~# ip route add 2001:718:1:e::23:3012 dev vzbr0
staj-dev:~# echo 1 > /proc/sys/net/ipv6/conf/eth0/forwarding
staj-dev:~# echo 1 > /proc/sys/net/ipv6/conf/vzbr0/forwarding

IPv4 is working fine. But IPv6 still not. :(

Thank you for your help so far.

Do you have any other suggestions?
-- 
-----------------------
Jan Tomasek aka Semik
http://www.tomasek.cz/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://openvz.org/pipermail/users/attachments/20070628/4ba7dc47/signature.bin


More information about the Users mailing list