Programming
플랫폼별(AIX,HP,Solaris) 네트워크 확인 및 변경 명령어
좋은날
2009. 11. 25. 14:08
기본 게이트웨이 확인
netstat -rn
기본 게이트웨이 변경route add default [gateway ip]
네트워크 변경
플랫폼 | 명령어 |
AIX |
[네트워크 변경] |
HP | [네트워크 변경] - /etc/rc.config.d/netconf 수정 [DNS 변경] - /etc/resolv.conf 수정 |
Solaris | [네트워크 변경] # ifconfig hme0 down # ifconfig hme0 192.168.1.13 netmask 255.255.255.0 # ifconfig hme0 up /etc/hosts 파일을 수정함. /etc/hostname.hme0 랜카드에 적용되는 호스트명을 명시 /etc/netmask (넷마스크 변경) [DNS 변경] - /etc/resolv.conf 수정 [게이트웨이 변경] - /etc/defaultrouter 수정 |