- if you set it, you delete it.
-- System -> System Setting > Network Connection
* CUI setting is used
- /etc/network/interfaces
auto eth1
iface eth1 inet static
address 192.168.77.10
netmask 255.255.255.0
gateway 192.168.77.1
dns-nameservers 192.168.77.1
metric 1
auto eth0
iface eth0 inet static
address 172.24.xxx.yyy
netmask 255.255.248.0
metric 10
up route add -net 172.24.xxx.0 netmask 255.255.248.0 gw 172.24.xxx.1 eth0
down route del -net 172.24.xxx.0 netmask 255.255.248.0 gw 172.24.xxx.1 eth0
up route add -net 172.24.zzz.0 netmask 255.255.248.0 gw 172.24.xxx.1 eth0
down route del -net 172.24.zzz.0 netmask 255.255.248.0 gw 172.24.xxx.1 eth
- sudo aptitude install resolvconf
-- resolvconf :
- sudo /etc/init.d/networking restart
* reference
0 件のコメント:
コメントを投稿