A
André Carlim
Guest
I have two VLAN interfaces, one of which should only respond to IPv4 and the other only IPv6, but I can not do this, can anyone help me?
The interface that should only respond to IPv4 is named vlan908 and I already did it in it:
echo 1 > /proc/sys/net/ipv6/conf/vlan908/disable_ipv6
echo 0 > /proc/sys/net/ipv6/conf/vlan908/forwarding
echo 0 > /proc/sys/net/ipv6/conf/vlan908/autoconf
echo 0 > /proc/sys/net/ipv6/conf/vlan908/accept_ra
echo 0 > /proc/sys/net/ipv6/conf/vlan908/accept_ra_pinfo
echo 0 > /proc/sys/net/ipv6/conf/vlan908/accept_ra_defrtr
echo 0 > /proc/sys/net/ipv6/conf/vlan908/accept_ra_rtr_pref
echo 0 > /proc/sys/net/ipv6/conf/vlan908/accept_redirects
echo 0 > /proc/sys/net/ipv6/conf/vlan908/dad_transmits
And the interface that should only respond to IPv6 is named vlan909 and I did it in it:
ip link set dev vlan909 arp off
In the vlan908 interface I still get the IPCM6:
04:18:d6:f1:40:35 > 33:33:ff:23:02:53, ethertype IPv6 (0x86dd), length 86: 2001:12f8::223:56 > ff02::1:ff23:253: ICMP6, neighbor solicitation, who has 2001:12f8::223:253, length 32
And in the vlan909 interface I still get some ARP packages:
04:18:d6:f1:40:35 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Request who-has 187.16.221.12 tell 187.16.223.56, length 46
Remembering that 04:18:d6:f1:40:35 is the MAC of my router. Anyway, I do not know what else to do.
The interface that should only respond to IPv4 is named vlan908 and I already did it in it:
echo 1 > /proc/sys/net/ipv6/conf/vlan908/disable_ipv6
echo 0 > /proc/sys/net/ipv6/conf/vlan908/forwarding
echo 0 > /proc/sys/net/ipv6/conf/vlan908/autoconf
echo 0 > /proc/sys/net/ipv6/conf/vlan908/accept_ra
echo 0 > /proc/sys/net/ipv6/conf/vlan908/accept_ra_pinfo
echo 0 > /proc/sys/net/ipv6/conf/vlan908/accept_ra_defrtr
echo 0 > /proc/sys/net/ipv6/conf/vlan908/accept_ra_rtr_pref
echo 0 > /proc/sys/net/ipv6/conf/vlan908/accept_redirects
echo 0 > /proc/sys/net/ipv6/conf/vlan908/dad_transmits
And the interface that should only respond to IPv6 is named vlan909 and I did it in it:
ip link set dev vlan909 arp off
In the vlan908 interface I still get the IPCM6:
04:18:d6:f1:40:35 > 33:33:ff:23:02:53, ethertype IPv6 (0x86dd), length 86: 2001:12f8::223:56 > ff02::1:ff23:253: ICMP6, neighbor solicitation, who has 2001:12f8::223:253, length 32
And in the vlan909 interface I still get some ARP packages:
04:18:d6:f1:40:35 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 60: Request who-has 187.16.221.12 tell 187.16.223.56, length 46
Remembering that 04:18:d6:f1:40:35 is the MAC of my router. Anyway, I do not know what else to do.