cannot delete IPv6 default gateway
- by NulledPointer
The commands below should be pretty self-explanatory. Please note that the route for which i get failure is obtained by RA and has very less expiry ( e Flag in UDAe).
@vm:~$ ip -6 route
2001:4860:4001:800::1002 via fe80::20c:29ff:fe87:f9e7 dev eth1 proto static metric 1024
2001:4860:4001:800::1003 via fe80::20c:29ff:fe87:f9e7 dev eth1 proto static metric 1024
2001:4860:4001:800::1005 via fe80::20c:29ff:fe87:f9e7 dev eth1 proto static metric 1024
2001:4860:4001:803::100e via fe80::20c:29ff:fe87:f9e7 dev eth1 proto static metric 1024
fd00:ffff:ffff:fff1::/64 dev eth1 proto kernel metric 256 expires 2592300sec
fe80::/64 dev eth1 proto kernel metric 256
default via fe80::20c:29ff:fe87:f9e7 dev eth1 proto static metric 1
default via fe80::20c:29ff:fe87:f9e7 dev eth1 proto kernel metric 1024 expires 1776sec
@vm:~$
@vm:~$
@vm:~$
@vm:~$ sudo route -6 delete default gw fe80::20c:29ff:fe87:f9e7
@vm:~$ ip -6 route
2001:4860:4001:800::1002 via fe80::20c:29ff:fe87:f9e7 dev eth1 proto static metric 1024
2001:4860:4001:800::1003 via fe80::20c:29ff:fe87:f9e7 dev eth1 proto static metric 1024
2001:4860:4001:800::1005 via fe80::20c:29ff:fe87:f9e7 dev eth1 proto static metric 1024
2001:4860:4001:803::100e via fe80::20c:29ff:fe87:f9e7 dev eth1 proto static metric 1024
fd00:ffff:ffff:fff1::/64 dev eth1 proto kernel metric 256 expires 2592279sec
fe80::/64 dev eth1 proto kernel metric 256
default via fe80::20c:29ff:fe87:f9e7 dev eth1 proto kernel metric 1024 expires 1755sec
@vm:~$
@vm:~$
@vm:~$ sudo route -6 delete ::/0 gw fe80::20c:29ff:fe87:f9e7 dev eth1
SIOCDELRT: No such process
@vm:~$
@vm:~$
@vm:~$ route -n6
Kernel IPv6 routing table
Destination Next Hop Flag Met Ref Use If
2001:4860:4001:800::1002/128 fe80::20c:29ff:fe87:f9e7 UG 1024 0 0 eth1
2001:4860:4001:800::1003/128 fe80::20c:29ff:fe87:f9e7 UG 1024 0 0 eth1
2001:4860:4001:800::1005/128 fe80::20c:29ff:fe87:f9e7 UG 1024 0 0 eth1
2001:4860:4001:803::100e/128 fe80::20c:29ff:fe87:f9e7 UG 1024 0 0 eth1
fd00:ffff:ffff:fff1::/64 :: UAe 256 0 0 eth1
fe80::/64 :: U 256 0 0 eth1
::/0 fe80::20c:29ff:fe87:f9e7 UGDAe 1024 0 0 eth1
::/0 :: !n -1 1 349 lo
::1/128 :: Un 0 1 3 lo
fd00:ffff:ffff:fff1:a00:27ff:fe7f:7245/128 :: Un 0 1 0 lo
fd00:ffff:ffff:fff1:fce8:ce07:b9ea:389f/128 :: Un 0 1 0 lo
fe80::a00:27ff:fe7f:7245/128 :: Un 0 1 0 lo
ff00::/8 :: U 256 0 0 eth1
::/0 :: !n -1 1 349 lo
@vm:~$
UPDATE: Another question is whats the use of link local address as the default route?