Hurricane Electric's IPv6 Tunnel Broker Forums

General IPv6 Topics => IPv6 on Linux & BSD & Mac => Topic started by: lfoothome on December 23, 2011, 12:00:10 AM

Title: Setting Up Virtual Guests to use the routed /64
Post by: lfoothome on December 23, 2011, 12:00:10 AM
I have a working Virtualization Host machine Centos 6.2 behind a firewall.  From its terminal I can ping6 ipv6.he.net and have progressed to the Administrator Test. 

What I would like to do is begin using my routed/64 host addresses and give my Virtual Guest Machines IPv6 connectivity. 

Can anyone suggest a good manual or HowTo where this has been done.

The IPv4 bridging is working fine, but entering the addresses manually as routed::1/64 ; routed::2/64 and so forth with a default gateway of Client/64 hasn't been successful.

I'm looking for ideas.  This is an all Fedora/RHEL/Centos setup.
Title: Re: Setting Up Virtual Guests to use the routed /64
Post by: cholzhauer on December 23, 2011, 05:01:38 AM
Well, that depends on what you want to accomplish and how you want to accomplish it.   

If you want to assign things manually, I'm sure we can make it work, but we're going to need more information.  If you want to do things dynamically, we can help with that too, but again we need more information.

If you want to do it dynamically, check out Router Advertisements
Title: Re: Setting Up Virtual Guests to use the routed /64
Post by: lfoothome on December 23, 2011, 05:06:17 AM
May have figured this one out.  I'll post how the test goes.

The Client Tunnel Enpoint PC is also the Virtual Host PC.

Will define interface he-ipv6 using RemoteIPv4, LocalIPV4, and Client::2/64 with Client::1/64 as DefaultGateway.

Will assign Routed::1/64 to the bridged eth0-br0 pair with DefaultGateway of Client::2/64.

Will manually assign Routed::2/64 throught Routed::xxxx/64 to Virtual Guests 1 thru xxxx-1 device eth0 respectively DefaultGateway of Client::2/64.

Hoping not to turn on Radvd or RA yet.
Title: Re: Setting Up Virtual Guests to use the routed /64
Post by: lfoothome on December 23, 2011, 08:14:19 AM
well looked like it should have worked but didn't.
VIRTUAL HOST /etc/sysconfig/network-scripts/ifcfg-br0
Quote
DEVICE=br0
TYPE=Bridge
BOOTPROTO=dhcp
ONBOOT=yes
DELAY=0
NM_CONTROLLED=no
IPV6INIT=yes
IPV6ADDR="2001:470:1f11:115d::1/64"
IPV6_DefaultGW="2001:470:1f10:115d::2/64"
VIRTUAL HOST /etc/sysconfig/network-scripts/ifcfg-eth0
Quote
DEVICE="eth0"
NM_CONTROLLED="no"
ONBOOT=yes
HWADDR=00:1D:60:9C:B8:1D
TYPE=Ethernet
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
BRIDGE=br0
VIRTUAL HOST /etc/sysconfig/network-scripts/ifcfg-he-ipv6
Quote
DEVICE=he-ipv6
BOOTPROTO=none
ONBOOT=yes
IPV6INIT=yes
IPV6_TUNNELNAME=he-ipv6
IPV6_AUTOTUNNEL=yes
PHYSDEV=eth0
IPV6TUNNELIPV4="209.51.181.2"
IPV6TUNNELIPV4LOCAL="192.168.2.201"
IPV6ADDR="2001:470:1f10:115d::2/64"
TYPE=sit
Now on the host ping6 ipv6.he.net works fine

GUEST /etc/sysconfig/network-scripts/ifcfg-eth0
Quote
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
TYPE=Ethernet
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=yes
IPV6_AUTOCONF=no
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
IPV6_DEFAULTGW=2001:470:1f11:115d::1 ## note 2001:470:1f10:115d::2 and 2001:470:1f10:115d::1 were also tried
IPV6ADDR=2001:470:1f11:115d::3/64
HWADDR=52:54:00:30:E5:9A
PEERDNS=yes
PEERROUTES=yes

Guest /etc/sysconfig/network
Quote
NETWORKING=yes
HOSTNAME=Fedora386Stable
NETWORKING_IPV6=yes

results varied from Network Unreachable to a ping that hung for minutes.

NOTE : HOST Centos 6.2  Guest Fedora 15 both x86_64
Title: Re: Setting Up Virtual Guests to use the routed /64
Post by: nickbeee on December 23, 2011, 09:17:17 AM
Do you need to enable IPv6 routing on your Linux distro as you do on the BSD os's?

I've managed to get a similar solution working but with different host and guest under Windows7_64.
I could alternatively assign the routed /64 to em0 and advertise IPv6 back out on the LAN for any other hosts to join in. 8)
Title: Re: Setting Up Virtual Guests to use the routed /64
Post by: Jim Whitby on December 23, 2011, 10:56:57 AM
IF I understand correctly....

To enable ipv6 tunnel for your VM guests.

Terminate the tunnel in your router ( best) or host (good). Enable radvd.

Enable network bridging on the VM guests.
Enable IPv6 on the guest ( if needed ).

The VM guests will get ipv6 from radvd

I am using the above on Linux host and win7 guest.
To verify the functions on the guest, disable the firewall. Run some checks from remote sites ( ipv6-test.net ) or (/www.tunnelbroker.net/portscan.php). Then for your safety enable the firewall on the guest.
Title: Setting Up Virtual Guests to use the routed /64
Post by: lfoothome on December 23, 2011, 01:21:51 PM
two small changes a restart and it popped to life.
Quote
removed IPV6_DEFAULTGW=2001:470:1f11:115d::1  from GUEST /etc/sysconfig/network-scripts/ifcfg-eth0

added IPV6_DEFAULTGW=2001:470:1f10:115d::2  to GUEST /etc/sysconfig/network

service network restart

DID NOT touch sysctl.conf or enable radvd -- keeping ipv6 local to the box for now.

was also able to remove following from ifcfg-br0 on host and have it keep working after a network restart
Quote
IPV6INIT=yes
IPV6ADDR="2001:470:1f11:115d::1/64"
IPV6_DefaultGW="2001:470:1f10:115d::2/64"

Worked for a short while and then stopped, no rhyme or reason.  More later.