在没有路由推送的情况下将默认路由更改为DHCP接口?


11

如何更改默认路由以使用eth1(DHCP)代替eth0(static)?我希望这是通过重新启动而持久的永久解决方案。

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         RT-C0C1C0CF879F 0.0.0.0         UG    100    0        0 eth0
10.0.0.0        *               255.255.255.0   U     0      0        0 eth0
1.1.1.0         *               255.255.240.0   U     0      0        0 eth1

我希望直接路由(eth1)为默认路由,而不是通过NAT。

使用Ubuntu 12.04

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.