我用 Zerotier 二层桥接了多个异地的网络,但是我发现每个设备都分配不同运营商的 IPv6 。
例如被桥接的两个异地的网络分别是电信、联通的,那么每个设备都会获得 240e 、2408 前缀的 IPv6 ,这并不是我想要的效果,我希望每个设备只能获得所在运营商的 IPv6 。
我找到了丢弃 IPv4 DHCP 的方法。
drop
not ethertype ipv4
and not ethertype arp
and not ethertype ipv6
;
drop ethertype ipv4
and ipprotocol udp
and sport 68
and dport 67
;
drop ethertype ipv4
and ipprotocol udp
and sport 67
and dport 68
;
但是当我修改成这样以丢弃 IPv6 DHCP ,我发现没有效果。
drop ethertype ipv6
and ipprotocol udp
and sport 547
and dport 546
;
drop ethertype ipv6
and ipprotocol udp
and sport 546
and dport 547
例如被桥接的两个异地的网络分别是电信、联通的,那么每个设备都会获得 240e 、2408 前缀的 IPv6 ,这并不是我想要的效果,我希望每个设备只能获得所在运营商的 IPv6 。
我找到了丢弃 IPv4 DHCP 的方法。
drop
not ethertype ipv4
and not ethertype arp
and not ethertype ipv6
;
drop ethertype ipv4
and ipprotocol udp
and sport 68
and dport 67
;
drop ethertype ipv4
and ipprotocol udp
and sport 67
and dport 68
;
但是当我修改成这样以丢弃 IPv6 DHCP ,我发现没有效果。
drop ethertype ipv6
and ipprotocol udp
and sport 547
and dport 546
;
drop ethertype ipv6
and ipprotocol udp
and sport 546
and dport 547