Portál AbcLinuxu, 5. května 2025 03:09
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 31.31.73.17 netmask 255.255.255.0 network 31.31.73.0 broadcast 31.31.73.255 gateway 31.31.73.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 46.28.104.68 #dns-search hamqth.com iface eth0 inet6 static pre-up modprobe ipv6 address 2a02:2b88:2:1::5d8:1 netmask 64 gateway 2a02:2b88:2:1::1ip -6 route:
2a02:2b88:2:1::/64 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 4294967295 fe80::/64 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 4294967295 default via 2a02:2b88:2:1::1 dev eth0 metric 1 mtu 1500 advmss 1440 hoplimit 4294967295ifconfig:
eth0 Link encap:Ethernet HWaddr 52:54:00:00:05:d8 inet addr:31.31.73.17 Bcast:31.31.73.255 Mask:255.255.255.0 inet6 addr: 2a02:2b88:2:1::5d8:1/64 Scope:Global inet6 addr: fe80::5054:ff:fe00:5d8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:72955976 errors:0 dropped:1031957 overruns:0 frame:0 TX packets:10367584 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:9736847472 (9.7 GB) TX bytes:4430692763 (4.4 GB) Interrupt:10 Base address:0x8000 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:28583818 errors:0 dropped:0 overruns:0 frame:0 TX packets:28583818 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8470664866 (8.4 GB) TX bytes:8470664866 (8.4 GB) tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:172.16.0.1 P-t-P:172.16.0.2 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:1159313 errors:0 dropped:0 overruns:0 frame:0 TX packets:1399678 errors:0 dropped:99 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:152448315 (152.4 MB) TX bytes:1252005245 (1.2 GB)iptables:
#IPV6 ip6tables -F ip6tables -P INPUT DROP ip6tables -P OUTPUT ACCEPT ip6tables -P FORWARD DROP ip6tables -A INPUT -i lo -j ACCEPT ip6tables -A INPUT -p ipv6-icmp -j ACCEPT ip6tables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT ip6tables -A INPUT -m state --state INVALID -j DROP ip6tables -A INPUT -p tcp --dport 80 -j ACCEPT ip6tables -A INPUT -j REJECT --reject-with icmp6-adm-prohibiteduname -a:
Linux vm1496 2.6.32-35-server #78-Ubuntu SMP Tue Oct 11 16:26:12 UTC 2011 x86_64 GNU/LinuxDále jsem zjistil zajímavou věc. Pokud IPV6 chcípne, nejde ani ping6 na default gateway, ale ping6 na 2a02:2b88:2:1::146:1 (další moje VPS) projde bez problémů. Pokud zkusím traceroute6 na výše uvedenou adresu, je to na jeden hop. Netuším proč. Nenapadá vás, prosím, kde by mohl být problém? Díky za váš čas. Petr
Řešení dotazu:
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.