I'm trying to persist the network config across a service network restart. I figured I could just add a ifcfg-sit0/1 but that seems to be more difficult that I anticipated. I fould one link that said to do:
# Hurricane Electric V6V4 tunnel
NAME="Hurricane Electric SIT"
DEVICE=sit1
ONBOOT=yes
USERCTL=yes
BOOTPROTO=none
PEERDNS=no
IPV6INIT=yes
IPV6_AUTOTUNNEL=yes
IPV6ADDR=2001:470:1f04:15dc::2/64
# IPV6ADDR_SECONDARIES=""
IPV6_MTU=1280
IPV6_ROUTER=yes
IPV6_AUTOCONF=no
IPV6_CONTROL_RADVD=yes
IPV6TUNNELIPV4=72.52.104.74
IPV6TUNNELIPV4LOCAL=65.19.179.2
PHYSDEV=br0
TYPE=sit
DEVICETYPE=sit
NM_CONTROLLED=no
but that doesn't seem to fix it. Does anyone have any ifcfg-sit[01] config examples for this?
Thanks.
here's what i got in mine and its works great although i don't have it setup as a router as its a standalone server.
"ifcfg-sit1"
NAME=""
BOOTPROTO=none
IPV6TUNNELIPV4=TUNNEL-SERVER-IPV4
IPV6INIT=yes
DEVICE=sit1
MTU=""
NETMASK=""
IPV6TUNNELIPV4LOCAL="YOUR-IP"
BROADCAST=""
IPV6ADDR="YOUR-TUNNEL-IPV6"
IPADDR=""
NETWORK=""
ONBOOT=yes
i also got this in "ifcfg-eth0"
IPV6INIT=yes
IPV6ADDR=IPV6-FROM-YOUR-ROUTED-/64
hope that helps
This resolved it. Thanks.
What should ifcfg-sit0 look like?
I think my box is getting the wrong IPv4 address (2 network cards) and want to manually create the file, i have done the ifcfg-sit1 file but not sure on sit0
Thanks
Centos 5.5
Linux colo.doghousedean.com 2.6.18-194.11.4.el5PAE #1 SMP Tue Sep 21 05:48:23 EDT 2010 i686 i686 i386 GNU/Linux
I think i have the config sorted but not sure if the route is set correctly
I get destination unreachable errors from ping6.
ping6 2001:470:1f08:116a::1
From 2001:470:1f08:116a::3 icmp_seq=450 Destination unreachable: Address unreachable
this is my config
eth0 Link encap:Ethernet HWaddr 00:0D:60:1C:08:74
inet addr:82.71.217.13 Bcast:82.71.217.63 Mask:255.255.255.192
inet6 addr: 2001:470:1f08:116a::3/64 Scope:Global
inet6 addr: fe80::20d:60ff:fe1c:874/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19700 errors:0 dropped:0 overruns:0 frame:0
TX packets:27036 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5571129 (5.3 MiB) TX bytes:3486867 (3.3 MiB)
Interrupt:177 Memory:f9ff0000-fa000000
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:1248 errors:0 dropped:0 overruns:0 frame:0
TX packets:1248 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:165073 (161.2 KiB) TX bytes:165073 (161.2 KiB)
sit1 Link encap:IPv6-in-IPv4
inet6 addr: 2001:470:1f08:116a::2/64 Scope:Global
inet6 addr: fe80::5247:d90d/128 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:169 (169.0 b)
and the route output
]# ip -6 route show
unreachable ::/96 dev lo metric 1024 expires 21332050sec error -101 mtu 16436 advmss 16376 hoplimit 4294967295
unreachable ::ffff:0.0.0.0/96 dev lo metric 1024 expires 21332050sec error -101 mtu 16436 advmss 16376 hoplimit 4294967295
2001:470:1f08:116a::/64 dev eth0 metric 256 expires 21332050sec mtu 1500 advmss 1440 hoplimit 4294967295
2001:470:1f08:116a::/64 via :: dev sit1 metric 256 expires 21333059sec mtu 1480 advmss 1420 hoplimit 4294967295
unreachable 2002:a00::/24 dev lo metric 1024 expires 21332050sec error -101 mtu 16436 advmss 16376 hoplimit 4294967295
unreachable 2002:7f00::/24 dev lo metric 1024 expires 21332050sec error -101 mtu 16436 advmss 16376 hoplimit 4294967295
unreachable 2002:a9fe::/32 dev lo metric 1024 expires 21332050sec error -101 mtu 16436 advmss 16376 hoplimit 4294967295
unreachable 2002:ac10::/28 dev lo metric 1024 expires 21332050sec error -101 mtu 16436 advmss 16376 hoplimit 4294967295
unreachable 2002:c0a8::/32 dev lo metric 1024 expires 21332050sec error -101 mtu 16436 advmss 16376 hoplimit 4294967295
unreachable 2002:e000::/19 dev lo metric 1024 expires 21332050sec error -101 mtu 16436 advmss 16376 hoplimit 4294967295
unreachable 3ffe:ffff::/32 dev lo metric 1024 expires 21332050sec error -101 mtu 16436 advmss 16376 hoplimit 4294967295
2000::/3 dev sit1 metric 1 expires 21332050sec mtu 1480 advmss 1420 hoplimit 4294967295
fe80::/64 dev eth0 metric 256 expires 21332047sec mtu 1500 advmss 1440 hoplimit 4294967295
fe80::/64 via :: dev sit1 metric 256 expires 21332050sec mtu 1480 advmss 1420 hoplimit 4294967295
default dev sit1 metric 1 expires 21333250sec mtu 1480 advmss 1420 hoplimit 4294967295
You should use an address out of your routed /64 for eth0
still struggling along with this.
eth0 Link encap:Ethernet HWaddr 00:0D:60:1C:08:74
inet addr:82.71.217.13 Bcast:82.71.217.63 Mask:255.255.255.192
inet6 addr: 2001:470:1f08:116a::3/64 Scope:Global
inet6 addr: fe80::20d:60ff:fe1c:874/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:62 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:34906 (34.0 KiB) TX bytes:15870 (15.4 KiB)
Interrupt:177 Memory:f9ff0000-fa000000
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:140765 errors:0 dropped:0 overruns:0 frame:0
TX packets:140765 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15358577 (14.6 MiB) TX bytes:15358577 (14.6 MiB)
sit1 Link encap:IPv6-in-IPv4
inet6 addr: fe80::5247:d90d/128 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
The sit1 v6 address looks incorrect but it is set in the ifcfg file
ifcfg-eth0
# Broadcom Corporation NetXtreme BCM5703X Gigabit Ethernet
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:0D:60:1C:08:74
IPADDR=82.71.217.13
IPV6_AUTOCONF=no
IPV6INIT=yes
IPV6ADDR=2001:470:1f08:116a::3/64
IPV6_DEFAULTGW=2001:470:1f08:116a::2
IPV6_DEFAULTDEV=sit1
NETMASK=255.255.255.192
ONBOOT=yes
~
ifcfg-sit1
DEVICE="sit1"
BOOTPROTO="none"
IPV6INIT=yes
IPV6_ADDR=2001:470:1f08:116a::2/64
IPV6TUNNELIPV4=216.66.80.26
IPV6TUNNELIPV4LOCAL="82.71.217.13"
ONBOOT=yes
If anyone could shed some light on this that would be fantastic
You have the wrong address on eth0. That address is out of your tunnel /64, but your routed /64. Check your tunnel detail page for the other subnet
yeah i spotted that just a second ago, still no joy