routing problems assigning a whole IPv6 /64 to one host
I posted this question before, but it got deleted for some reason.
I've recently boughy a dedicated server, and I've been assigned a /64
subnet. How do I route all of the IPs without manually adding them all
with ifconfig? Thanks. I tried with the command specified in another
serverfault, 2001:41d0:1:5976::/64 being my subnet:
ip route add local 2001:41d0:1:5976::/64 dev lo
Kernel is 3.2, distro is Debian. I need to do this to flexibly use any
IPv6 in my subnet.
Now though, I can't ping IPs:
# ping6 2001:41d0:1:5976::3
PING 2001:41d0:1:5976::3(2001:41d0:1:5976::3) 56 data bytes
ping: sendmsg: Invalid argument
ping: sendmsg: Invalid argument
# route -6
Kernel IPv6 routing table
Destination Next Hop Flag Met Ref Use If
2001:41d0:1:5976::1/128 :: U 256 0 0
eth0
2001:41d0:1:59ff:ff:ff:ff:ff/128 :: U 1024 0
1 eth0
fe80::/64 :: !n 256 0 0 lo
fe80::/64 :: U 256 0 0
eth0
::/0 2001:41d0:1:59ff:ff:ff:ff:ff UG 1024 0
0 eth0
::/0 :: !n -1 1 14491 lo
::1/128 :: Un 0 1 1075 lo
2001:41d0:1:5976::1/128 :: Un 0 1 98 lo
2001:41d0:1:5976::/64 :: U 1024 0
0 lo
fe80::62a4:4cff:feb4:4b98/128 :: Un 0 1 0 lo
ff00::/8 :: U 256 0 0
eth0
::/0 :: !n -1 1 14491 lo
# ifconfig
eth0 Link encap:Ethernet HWaddr 60:a4:4c:xx:xx:xx
inet addr:xx.xxx.xx.xxx Bcast:91.121.6.255 Mask:255.255.255.0
inet6 addr: fe80::62a4:4cff:feb4:4b98/64 Scope:Link
inet6 addr: 2001:41d0:1:5976::1/128 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3165201 errors:0 dropped:480 overruns:0 frame:0
TX packets:2969595 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:707155716 (674.3 MiB) TX bytes:758957608 (723.7 MiB)
Interrupt:43 Base address:0xe000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:582297 errors:0 dropped:0 overruns:0 frame:0
TX packets:582297 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:74514698 (71.0 MiB) TX bytes:74514698 (71.0 MiB)
Ideas?
No comments:
Post a Comment