【发布时间】:2015-05-15 15:02:59
【问题描述】:
我有一张 LAN 卡。我已将其划分为子接口。有没有解决方案在这个接口上有不同的工作网关?我希望当 PC 无法使用第一个网关到达目的地时,它应该通过辅助网关。我使用 Ubuntu 14.04。这是我的界面配置:
auto eth0
iface eth0 inet static
address 10.0.0.25
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.88
dns-nameservers 8.8.8.8 8.8.4.4
#sub interface
auto eth0:1
iface eth0:1 inet static
address 10.0.0.26
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.99
【问题讨论】:
标签: ubuntu-14.04 ethernet gateway