$ sudo vim /etc/network/interfaces
-------------------------------------------------------------------------
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.10.100.1
netmask 255.255.0.0
gateway 10.10.0.254
#post-up route add default via 10.10.0.254 dev eth0

auto eth1
iface eth1 inet dhcp
post-up route del default dev eth1
-------------------------------------------------------------------------

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()