• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

Linux CentOS 5: how can I set up an IPv6 of the routed class?

Started by Luigi Rosa, September 23, 2012, 08:22:18 AM

Previous topic - Next topic

Luigi Rosa

Scenario: CentOS 5 machine with 2 LAN: eth0 on WAN (static public IPv4) and eth1 on LAN. This Linux is the default gateway and the NAT of the LAN.

Correctly setup a tunnel with this commands

ifconfig sit0 up
ifconfig sit0 inet6 tunnel ::
ifconfig sit1 up
# 2001:470:1f08:203::2 is the IPv6 Tunnel Endpoint
ifconfig sit1 inet6 add 2001:470:1f08:203::2/64
route -A inet6 add ::/0 dev sit1

Assigned an IPv6 of the Routed IPv6 Prefixes (2001:470:1f09:203::/64) to eth1 (internal LAN), installed and configured radvd: everything work as expected, with one exception.

When the linux box connects to an external IPv6 hosts it uses 2001:470:1f08:203::2 instead of one IPv6 of the 2001:470:1f09:203::/64 pool.

I tried to assign an IPv6 to sit1 interface with

ifconfig sit1 inet6 add 2001:470:1f09:203::b16:b00b/64

but the IPv6 LAN hosts stopped working.

My question is: how can I assign 2001:470:1f09:203::b16:b00b to Linux host and use it to connect to external IPv6 hosts?

Thank you in advance.