"Route add default gw"의 두 판 사이의 차이

 
21번째 줄: 21번째 줄:


==같이 보기==
==같이 보기==
* [[route del default gw]]
* [[리눅스 route]]
* [[리눅스 route]]
* [[CentOS 기본 게이트웨이 변경]]
* [[CentOS 기본 게이트웨이 변경]]

2017년 9월 7일 (목) 11:38 기준 최신판

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 }}