multiple v6 address config
Hi guys
I want to run IPv6 on one of my colocated servers.
THe box in question already has 10 IPv4 addresses, and I recently got some
v6 address space from the colo provider.
However, I am a bit confused how to set thing up now.
Here is an exact quote from the mail the colo's admin sent me:
2001:0898:1001:1001::20/127 -> gateway
2001:0898:1001:1001::21/127 -> your main-ip
2001:0898:2000:001b::/64 -> /64 routed to your main-ip
>From this information, I guess that the idea is to set up a /127 network
(2 hosts, point-to-point) between my box and their network, and then route
the /64 block over this link.
To start with, I want to use 5 IPv6 addresses for services, so I put this
into my interfaces file:
iface eth0 inet6 static
pre-up modprobe ipv6
up echo 0 > /proc/sys/net/ipv6/conf/all/autoconf
# main ip
address 2001:0898:1001:1001::21
netmask 127
# default route to gateway
up ip -6 route add default via 2001:0898:1001:1001::20 dev eth0
# ip's for services
up ip addr add 2001:0898:2000:001b::1/64 dev eth0
up ip addr add 2001:0898:2000:001b::2/64 dev eth0
up ip addr add 2001:0898:2000:001b::3/64 dev eth0
up ip addr add 2001:0898:2000:001b::4/64 dev eth0
up ip addr add 2001:0898:2000:001b::5/64 dev eth0
After restarting the network, everything appears to be up:
eth0 Link encap:Ethernet HWaddr 00:30:48:10:4E:25
inet addr:212.204.246.131 Bcast:212.204.246.255 Mask:255.255.255.0
inet6 addr: 2001:898:2000:1b::1/64 Scope:Global
inet6 addr: 2001:898:2000:1b::2/64 Scope:Global
inet6 addr: 2001:898:2000:1b::3/64 Scope:Global
inet6 addr: 2001:898:1001:1001::21/127 Scope:Global
inet6 addr: 2001:898:2000:1b::4/64 Scope:Global
inet6 addr: 2001:898:2000:1b::5/64 Scope:Global
inet6 addr: fe80::230:48ff:fe10:4e25/10 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:9155788 errors:0 dropped:0 overruns:0 frame:0
TX packets:4334497 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1832743293 (1.7 GiB) TX bytes:555698720 (529.9 MiB)
Interrupt:31 Base address:0x7000
Now when I try to ping something (f.i. the gateway), it get this:
outkast:/home/dick# ping6 2001:898:1001:1001::20
PING 2001:898:1001:1001::20(2001:898:1001:1001::20) from
2001:898:2000:1b::5 : 56 data bytes
>From ::1 icmp_seq=1 Destination unreachable: Address unreachable
>From ::1 icmp_seq=2 Destination unreachable: Address unreachable
>From ::1 icmp_seq=3 Destination unreachable: Address unreachable
What is going wrong?
BTW my routing table looks like:
outkast:/home/dick# ip -6 route show
2001:898:1001:1001::20/127 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440
2001:898:2000:1b::/64 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440
fe80::/10 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440
ff00::/8 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440
default dev eth0 proto kernel metric 256 mtu 1500 advmss 1440
default via 2001:898:1001:1001::20 dev eth0 metric 1024 mtu 1500 advmss 1440
unreachable default dev lo metric -1 error -101
Note: I have not received any answer from my colo's tech guys, so that is
why I am asking it here ;-)
Thanks,
--
* *** Dick Visser TIENHUIS Networking
** * * Marco Polostraat 234-3 P: +31206843731
* * *** 1056 DP Amsterdam F: +31208641420
* * * * The Netherlands M: +31622698108
* ** * WWW: http://www.tienhuis.nl
* * * Email: d.n.m.visser@tienhuis.nl
* * * IP Phone: sip:dick@tienhuis.nl
*** *** PGP-key: http://www.tienhuis.nl/gpg.txt
Live webcam (WM9): http://www.terena.nl/~dick/cam2.asx
Reply to: