root@zetawiki:~# vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet dhcp
post-up route add default gw 192.168.0.1
root@zetawiki:~# ifdown eth1 && ifup eth1
Internet Systems Consortium DHCP Client 4.2.4
... (생략)
root@zetawiki:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth1
route add default gw 게이트웨이주소 장치명
root@zetawiki:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 1 0 0 eth1
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth1
root@zetawiki:~# route add default gw 192.168.0.2 eth1
root@zetawiki:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 1 0 0 eth1
default 192.168.0.2 0.0.0.0 UG 0 0 0 eth1