route add default gw

1 개요[ | ]

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
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth1

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}