以下为校区ACM实验室多拨脚本,使用了macvlan模块,具体策略路由和连接标记等思路就不解释了. #! /bin/bash getip() { |grep -o -e 'inet addr:[^ ]*' | grep -o -e '[^:]*$' } ip link add link br0 address ::3e:aa:bb:xx dev veth0 type macvlan ip link add link br0 address ::3e:aa:bb:yy dev veth1 type…
/etc/sysctl.conf: # Controls source route verification net.ipv4.conf.default.rp_filter = # Allows to have multiple network interfaces on the same subnet net.ipv4.conf.default.arp_filter = net.ipv4.conf.default.arp_ignore = sysctl -p,再参照multiwan前文配置脚本…