我们有网络接口 eno1 并将其配置为 br1
allow-hotplug eno1
iface eno1 inet manual
auto br1
iface br1 inet static
address 208.43.222.51
network 255.255.255.248
netmask 255.255.255.0
broadcast 208.43.222.55
gateway 208.43.222.49
bridge_ports eno1
bridge_stp off
bridge_fd 0
bridge_maxwait 0
现在我们需要更多 IP,并从 ISP 208.43.221.40/29 订购了一个 /29 子网 如何使用 /etc/network/interfaces 配置它以添加到现有 br1
答案1
答案2
最后在 debian 中很简单:
auto br1
iface br1 inet static
address 208.43.222.51
network 255.255.255.248
netmask 255.255.255.0
broadcast 208.43.222.55
gateway 208.43.222.49
bridge_ports eno1
bridge_stp off
bridge_fd 0
bridge_maxwait 0
iface br1 inet static
address 208.43.221.42
network 208.43.221.40
netmask 255.255.255.248
broadcast 208.43.221.47
gateway 208.43.221.41
bridge_ports eno1
bridge_stp off
bridge_fd 0
bridge_maxwait 0
和
systemctl restart networking.service