Re: IPv6 range provisioning question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, 2009-06-11 at 10:49 -0500, Vadtec wrote:
> >>>
> >>> A few months back, I tried to use the network scripts to provision an IPv6 range
> >>> like can be done with IPv4. I was using CentOS 5.2 at the time and was informed
> >>> that 5.2 was broken in this regard. I have upgraded to CentOS 5.3 now and I am
> >>> trying to get IPv6 to provision an entire range of IPs, but I am still getting
> >>> the old behavior and no IPs are being provisioned.
> >>>
I am really confused on what you want to do here. When you talk about a
RANGE what do you mean? Allocate more than one IPv6 address to a single
interface? 
If so, have a look at the IPV6ADDR_SECONDARIES clause in the link you
included. I am not sure that you can use alias interfaces for IPv6. Put
that in the ifcfg-ethx file, not in the config for the aliases
(ifcfgx:y)

> >>> When I run service network restart, it doesn't even provision the default IPv6
> >>> GW on eth0:1, nor does eth0:1 even show up.
I don't think you can use alias interfaces for IPv6. It at least did not
work on my other (Fedora) box
IPV6ADDR_SECONDARIES on the device DOES work on Centos 5.3

> > 
> > However, this is not provisioning an entire range as follows:
> > 
> > eth0      Link encap:Ethernet  HWaddr 00:16:3E:70:FC:96
> >           inet addr:***.***.***.***  Bcast:***.***.***.***  Mask:255.255.255.0
> >           inet6 addr: 2001:470:103:1a::2/64 Scope:Global
> >           inet6 addr: fe80::216:3eff:fe70:fc96/64 Scope:Link
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:70 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:1000
> >           RX bytes:6738 (6.5 KiB)  TX bytes:2050 (2.0 KiB)
> > 
You have a single address provsioned indeed 2001:470:103:1a::2/64
with a network part of 64 bits.

> > I also have a large number of "unreachable" routes shown on the local loopback
> > when I do ip -6 route show:
> > unreachable ::/96 dev lo  metric 1024  error -101 mtu 16436 advmss 16376
> > hoplimit 4294967295
> > unreachable ::ffff:0.0.0.0/96 dev lo  metric 1024  error -101 mtu 16436 advmss
> > 16376 hoplimit 4294967295
> > unreachable 2002:a00::/24 dev lo  metric 1024  error -101 mtu 16436 advmss 16376
> > hoplimit 4294967295
> > unreachable 2002:7f00::/24 dev lo  metric 1024  error -101 mtu 16436 advmss
> > 16376 hoplimit 4294967295
> > unreachable 2002:a9fe::/32 dev lo  metric 1024  error -101 mtu 16436 advmss
> > 16376 hoplimit 4294967295
> > unreachable 2002:ac10::/28 dev lo  metric 1024  error -101 mtu 16436 advmss
> > 16376 hoplimit 4294967295
> > unreachable 2002:c0a8::/32 dev lo  metric 1024  error -101 mtu 16436 advmss
> > 16376 hoplimit 4294967295
> > unreachable 2002:e000::/19 dev lo  metric 1024  error -101 mtu 16436 advmss
> > 16376 hoplimit 4294967295
> > unreachable 3ffe:ffff::/32 dev lo  metric 1024  error -101 mtu 16436 advmss
> > 16376 hoplimit 4294967295
> > 
Nothing to worry abouot. I have that too:

[root@nest network-scripts]# ip -r ro sh
192.168.178.0/24 dev eth0.178  proto kernel  scope link  src
192.168.178.2 
192.168.160.0/24 dev eth0.160  proto kernel  scope link  src
192.168.160.1 
192.168.1.0/24 dev eth0.1  proto kernel  scope link  src 192.168.1.1 
192.168.159.0/24 dev eth0.159  proto kernel  scope link  src
192.168.159.1 
192.168.158.0/24 dev eth0.158  proto kernel  scope link  src
192.168.158.1 
192.168.122.0/24 dev virbr0  proto kernel  scope link  src
192.168.122.1 
169.254.0.0/16 dev eth0.178  scope link 
default via fritz.pheasant dev eth0.178 
[root@nest network-scripts]# ip -6 ro sh
::/96 via :: dev sit0  metric 256  mtu 1480 advmss 1420 hoplimit
4294967295
unreachable ::/96 dev lo  metric 1024  error -101 mtu 16436 advmss 16376
hoplimit 4294967295
unreachable ::ffff:0.0.0.0/96 dev lo  metric 1024  error -101 mtu 16436
advmss 16376 hoplimit 4294967295
2001:888:10:18e::/64 via :: dev sit1  proto kernel  metric 256  mtu 1480
advmss 1420 hoplimit 4294967295
2001:888:118e:18e1::/64 dev eth0.158  proto kernel  metric 256  mtu 1500
advmss 1440 hoplimit 4294967295
2001:888:118e:18e2::/64 dev eth0.159  proto kernel  metric 256  mtu 1500
advmss 1440 hoplimit 4294967295
2001:888:118e:18e3::/64 dev eth0.160  proto kernel  metric 256  mtu 1500
advmss 1440 hoplimit 4294967295
2001:888:118e:18e4::/64 dev eth0.178  proto kernel  metric 256  mtu 1500
advmss 1440 hoplimit 4294967295
unreachable 2002:a00::/24 dev lo  metric 1024  error -101 mtu 16436
advmss 16376 hoplimit 4294967295
unreachable 2002:7f00::/24 dev lo  metric 1024  error -101 mtu 16436
advmss 16376 hoplimit 4294967295
unreachable 2002:a9fe::/32 dev lo  metric 1024  error -101 mtu 16436
advmss 16376 hoplimit 4294967295
unreachable 2002:ac10::/28 dev lo  metric 1024  error -101 mtu 16436
advmss 16376 hoplimit 4294967295
unreachable 2002:c0a8::/32 dev lo  metric 1024  error -101 mtu 16436
advmss 16376 hoplimit 4294967295
unreachable 2002:e000::/19 dev lo  metric 1024  error -101 mtu 16436
advmss 16376 hoplimit 4294967295
unreachable 3ffe:ffff::/32 dev lo  metric 1024  error -101 mtu 16436
advmss 16376 hoplimit 4294967295
2000::/3 dev sit1  metric 1  mtu 1480 advmss 1420 hoplimit 4294967295
fe80::/64 dev virbr0  proto kernel  metric 256  mtu 1500 advmss 1440
hoplimit 4294967295
fe80::/64 dev eth0  proto kernel  metric 256  mtu 1500 advmss 1440
hoplimit 4294967295
fe80::/64 via :: dev sit1  proto kernel  metric 256  mtu 1480 advmss
1420 hoplimit 4294967295
fe80::/64 dev eth0.1  proto kernel  metric 256  mtu 1500 advmss 1440
hoplimit 4294967295
fe80::/64 dev eth0.158  proto kernel  metric 256  mtu 1500 advmss 1440
hoplimit 4294967295
fe80::/64 dev eth0.159  proto kernel  metric 256  mtu 1500 advmss 1440
hoplimit 4294967295
fe80::/64 dev eth0.160  proto kernel  metric 256  mtu 1500 advmss 1440
hoplimit 4294967295
fe80::/64 dev eth0.178  proto kernel  metric 256  mtu 1500 advmss 1440
hoplimit 4294967295
default dev sit1  metric 1  mtu 1480 advmss 1420 hoplimit 4294967295

Louis

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux