>> Delete Reply from No. 0 article
No. RE: [질문]한 서버에 ip 2개 사용하는 법좀?

등록 2001-11-20 17:23:00 By localhost     조회 2
이름 손용덕    

		: 한 서버에 아이피를 2개 셋팅해서 사용하려고 하는데
: 혹시 아시는 분은 답글을 남겨주시거나
: 이멜로 연락주시면 감사..
:
: --
: 이 곳에 서명을 적어주십시오.
: 서명
 랜카드 하나에 아이피 두개 부여하는법
rc.local에 다음과같이 추가하시고 실행하세요....
가상아이피 잡는법 임니당.....
 #setting up IP alias interfaces
echo "Setting VirtIP..."
/sbin/ifconfig lo 127.0.0.1
/sbin/ifconfig eth0 up
/sbin/ifconfig eth0 x.x.x.x(첫번째ip)
/sbin/ifconfig eth0:0 xx.xx.xx.xx(두번째ip)
#setting up the routes
/sbin/route add -net 127.0.0.0
/sbin/route add -net x.x.x.0 dev eth0
/sbin/route add -host x.x.x.x eth0
/sbin/route add -host xx.xx.xx.xx eth0:0
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved