Solaris
Solaris ifconfig Example (ifconfig 설정 예)
CecilDeSK
2006. 2. 23. 14:29
반응형
ifconfig
system의 network을 재설정했으나 rebooting이 불가능할 경우에는 ifconfig를 써서 확인할 수 있다.
1. ifconfig -a 로 network card interface를 확인한 후
2. ifconfig xxx0 plumb 로 network card를 올린후에
3. ifconfig xxx0 ip address up 으로 network interface에 ip address를 물립니다.
4. ifconfig -a 로 제대로 setting이 됐는지 확인하고. 제대로 되었으면
5. netstat -rn으로 gateway를 setting 합니다.
6. route add net default gateway address 하면 됩니다.
|
ex) # ifconfig -a
lo0: flags=849
inet 127.0.0.1 netmask ff000000
le0: flags=863
inet 211.217.224.128 netmask ffffff00 broadcast 211.217.224.255
# ifconfig le0 down (기존의 카드를 죽이고)
# ifconfig le0 unplumb (기존의 카드를 뗀 후)
# ifconfig -a (새로운 디바이스를 찾아서)
# ifconfig hme0 plumb (새로운 디바이스를 붙이고)
# ifconfig hme0 211.233.233.123 (ip를 넣은 후)
# ifconfig hme0 up (ip를 붙인다 )
# ifconfig -a (확인을 한 다음에..)
# netstat -rn (route table을 보고 )
# route add net default 211.233.233.1 (gateway를 붙인다.)
# netstat -rn (세팅이 잘 되었는지 확인하고)
# ping 211.217.224.128 ( test를 하면 끝...)
반응형