rota de exclusão IPv6

1

Algumas vezes eu brinquei com as rotas IPv6 e fiz confusão :) Essa é minha tabela de roteamento

root@banana:~# route -6
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
2a02:c7d:ca1b:6d00::/64        ::                         UAe  256 0     0 eth0
2a02:c7d:ca1b:6d01::/64        ::                         UAe  256 0     0 eth0
fe80::/64                      ::                         U    256 0     0 eth0
::/0                           ::                         U    1   0     0 eth0
::/0                           fe80::20f:34ff:feac:fa49   UGDAe 1024 0     0 eth0
::/0                           ::                         !n   -1  1 73439 lo
::1/128                        ::                         Un   0   1 15647 lo
2a02:c7d:ca1b:6d00:d250:99ff:fe53:f2fc/128 ::                         Un   0   1  3615 lo
2a02:c7d:ca1b:6d01:d250:99ff:fe53:f2fc/128 ::                         Un   0   1   678 lo
fe80::d250:99ff:fe53:f2fc/128  ::                         Un   0   1 17417 lo
ff00::/8                       ::                         U    256 0     0 eth0
::/0                           ::                         !n   -1  1 73439 lo

Basicamente, eu quero apenas o padrão contra eth0 e remover o restante contra o loopback

Quando eu tento excluí-los, recebo este erro

root@banana:~# route -A inet6 del default via fe80::20f:34ff:feac:fa49
Usage: inet6_route [-vF] del Target
       inet6_route [-vF] add Target [gw Gw] [metric M] [[dev] If]
       inet6_route [-FC] flush      NOT supported
root@banana:~# route -A  inet6_route del default via fe80::20f:34ff:feac:fa49
Unknown address family 'inet6_route'.

Agora, quero limpar minha tabela de roteamento porque parece que meu servidor não tem uma rota

root@banana:~# ping6 2001:4860:4860::8888
PING 2001:4860:4860::8888(2001:4860:4860::8888) 56 data bytes
From 2a02:c7d:ca1b:6d01:d250:99ff:fe53:f2fc icmp_seq=1 Destination unreachable: Address unreachable
From 2a02:c7d:ca1b:6d01:d250:99ff:fe53:f2fc icmp_seq=2 Destination unreachable: Address unreachable
From 2a02:c7d:ca1b:6d01:d250:99ff:fe53:f2fc icmp_seq=5 Destination unreachable: Address unreachable
From 2a02:c7d:ca1b:6d01:d250:99ff:fe53:f2fc icmp_seq=6 Destination unreachable: Address unreachable
From 2a02:c7d:ca1b:6d01:d250:99ff:fe53:f2fc icmp_seq=7 Destination unreachable: Address unreachable
^C
--- 2001:4860:4860::8888 ping statistics ---
10 packets transmitted, 0 received, +5 errors, 100% packet loss, time 8999ms

Alguma sugestão?

    
por Federi 28.10.2015 / 17:25

1 resposta

2

Eu tentaria

ip -6 route del 2a02:c7d:ca1b:6d01:d250:99ff:fe53:f2fc dev lo0

ou

route -A inet6 del 2a02:c7d:ca1b:6d01:d250:99ff:fe53:f2fc

obviamente 2a02:c7d:ca1b:6d01:d250:99ff:fe53:f2fc é um host externo (sendo o mac d0:50:90:53:f2:fc ), seu tráfego não é roteado para lo0 .

    
por 01.12.2015 / 12:16

Tags