[CentOS] IPv6 on Centos 6

Sat Aug 11 09:17:15 UTC 2012
James Hogarth <james.hogarth at gmail.com>

On Aug 11, 2012 2:00 AM, "Alan Batie" <alan at peak.org> wrote:
>
> 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

>
> 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

With ipv6 in the picture stop using net-tools - they were deprecated a long
time ago and there's multiple edge cases and bugs where they don't work
properly or lack features... learn to use the iproute2 toolset - ip, ss and
tc being the key ones.

And it's ip -6 route not ip -6 router... or ip -6 r s in short ;-)