::: SYSTEM :::/└ ::: SOLARIS :::

Sun Solaris IP Set

호딩이 2009. 7. 21. 16:36

** IP 설정
# ifconfig -a // 새로운 디바이스를 확인 
# ifconfig elxl0 plumb // 새로운 디바이스를 붙인다 
# ifconfig elxl0 192.168.0.3 // ip를 넣는다. 
( # ifconfig elxl0 192.168.0.3 netmasks 255.255.255.0 up )

# ifconfig elxl0 up // ip를 붙인다 
# ifconfig -a // 확인을 한다 
# netstat -rn // route table을 확인 
# route add net default 192.168.0.1 // gateway를 붙인다. 
# netstat -rn // 세팅이 잘 되었는지 확인한다 
# ping 168.126.63.1 // test를 한다.

*** 관련 FILE 
ip --> /etc/hosts
subnet --> /etc/netmasks
gw --> /etc/defaultrouter

*** 도메인 서버 세팅
nsswitch.conf파일의 hosts: 부분을 찾아 dns를 추가해준다 
# vi /etc/nsswitch.conf
hosts:      files dns

# vi /etc/resolv.conf
domain xxxx.com
nameserver 168.126.63.1 # 한국통신의 DNS 서버이다.
nameserver 168.126.63.2


꺄르르르 이제야 알았다 --;