리눅스에서 게이트웨이 추가하기 (add gateway )
페이지 정보
작성자 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 18,388회 작성일 10-07-17 14:02본문
<상태>
랜포트 두개 eth0, eth1
eth0는 외부 인터넷, eth1은 내부 내트워크용으로만 사용
현재 라우팅 테이블 보기
$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
211.219.50.123 * 255.255.255.128 U 0 0 0 eth0
192.168.10.0 * 255.255.255.0 U 0 0 0 eth1
Destination Gateway Genmask Flags Metric Ref Use Iface
211.219.50.123 * 255.255.255.128 U 0 0 0 eth0
192.168.10.0 * 255.255.255.0 U 0 0 0 eth1
기본 게이트웨이 설정하기
$ route add default gw 211.219.50.1 eth0
확인
$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
211.219.50.123 * 255.255.255.128 U 0 0 0 eth0
192.168.10.0 * 255.255.255.0 U 0 0 0 eth1
default 211.219.50.1 0.0.0.0 UG 0 0 0 eth0
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
211.219.50.123 * 255.255.255.128 U 0 0 0 eth0
192.168.10.0 * 255.255.255.0 U 0 0 0 eth1
default 211.219.50.1 0.0.0.0 UG 0 0 0 eth0
관련링크
댓글목록
등록된 댓글이 없습니다.