Programming

플랫폼별(AIX,HP,Solaris) 네트워크 확인 및 변경 명령어

좋은날 2009. 11. 25. 14:08

기본 게이트웨이 확인
netstat -rn
기본 게이트웨이 변경
route add default [gateway ip]


네트워크 변경
 플랫폼 명령어 
 AIX

[네트워크 변경]
1) smit 또는 smitty tcpip를 입력한다.
i. smit
    |-> Communications Applications and Services
    |-> Minimum Configuration & Startup
    |-> en0 등 Network interface선택 
ii. smitty tcpip 

[DNS 변경]
- /etc/resolv.conf 수정

 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 수정