[ol]auto enp35s0
iface enp35s0 inet static
address 116.202.1.199/26
gateway 116.202.1.193
up route add -net 116.202.1.192 netmask 255.255.255.192 gw 116.202.1.193 dev enp35s0
iface enp35s0 inet6 static
address 2a01:4f8:1:ffff::2/64
gateway fe80::1
auto vmbr0
iface vmbr0 inet static
address 116.202.1.199
netmask 255.255.255.192
gateway 116.202.1.193
bridge-ports enp35s0
bridge-stp off
bridge-fd 0
bridge_maxwait 0
iface vmbr0 inet6 static
address 2a01:4f8:1:ffff::2
netmask 64
gateway fe80::1
bridge_ports enp35s0
bridge_stp off
bridge_fd 0
只要添加下面的IP就失联,求大佬解决。
auto vmbr1
iface vmbr1 inet static
address 10.100.0.1
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
bridge_maxwait 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.100.0.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.100.0.0/24' -o vmbr0 -j MASQUERADE
[/ol]复制代码