[CentOS] IPv6 on Centos 6

Sat Aug 11 00:59:42 UTC 2012
Alan Batie <alan at peak.org>

On 8/10/12 5:50 PM, Stephen Harris wrote:
> On Fri, Aug 10, 2012 at 05:24:12PM -0700, Alan Batie wrote:
>> IPV6_DEFROUTE=yes
> 
> Not sure where you get that from.

That's not something normally in our configs, I think it was in the
default config the centos 6 installer created, and I only stripped out
some of the excess... stuff like that I left in in case it mattered in 6
for some reason...  The config on the working centos 5 systems (which is
what we use on the centos 6 systems also) is much simpler:

<ns6.peak.org> [113] # cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=ns6.peak.org
GATEWAY=207.55.16.1
<ns6.peak.org> [114] # cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=207.55.19.255
IPADDR=207.55.16.53
NETMASK=255.255.252.0
ONBOOT=yes
TYPE=Ethernet

IPV6INIT=yes
IPV6ADDR=2607:f678::56
IPV6_DEFAULTGW=2607:f678::1


> FWIW you can see the current routing table with "ip -6 route".

netstat is the one I usually use:

<centos666.peak.org> [39] # ip -6 router
Object "router" is unknown, try "ip help".
<centos666.peak.org> [40] # netstat -rn -A inet6
Kernel IPv6 routing table
Destination                                 Next Hop
            Flags Metric Ref    Use Iface
2607:f678::/64                              ::
            U     256    1        0 eth0
fe80::/64                                   ::
            U     256    0        0 eth0
::/0                                        2607:f678::1
            UG    1      5        0 eth0
::1/128                                     ::
            U     0      1        1 lo
2607:f678::16:66/128                        ::
            U     0      58       1 lo
fe80::250:56ff:fe98:708b/128                ::
            U     0      0        1 lo
ff00::/8                                    ::
            U     256    0        0 eth0