1. root로 login한 후 아래와 같이 ifconfig 명령을 실행 : rebooting 하지 않고 변경하는 방법
예) 현재 사용하는 network interface가 le0이고 IP address는 210.123.100.1이며
변경된 subnetmask 값이 255.255.255.128(ffffff80) 인 경우
# ifconfig le0 inet 210.123.100.1 netmask 0xffffff80(255.255.255.0)
# ifconfig le0 down ----> le0 interface를 down
# ifconfig le0 up ----> le0 interface를 up
# ifconfig -a ----> 모든 interface를 display
2. /etc/netmasks 화일에는 아래와 같이 지정
# vi /etc/netmasks
210.123.0.0 255.255.255.128
/etc/netmasks 화일에 지정할 경우 첫 칼럼에 정의하는 network address는 original network address를 명기해야 한다.
3. /etc/hosts 화일에서 IP 변경
# vi /etc/hosts
# Internet host table
#
127.0.0.1 localhost
203.232.111.123 main loghost
--- loghost 의 IP를 변경
4. /etc/defaultrouter 화일에 router 설정
# cat > /etc/defaultrouter
203.232.111.253
5. rebooting 하지 않고 router 설정
# route add default 203.232.111.253 1
# route delete default 203.232.111
6. DNS client setting
# cat > /etc/resolv.conf
domain chch-c.ac.kr
nameserver 203.232.111.3
# vi /etc/nsswitch.conf
passwd: files
group: files
hosts: files dns
networks: files
protocols: files
rpc: files
# nslookup ---> dns service 확인
예) 현재 사용하는 network interface가 le0이고 IP address는 210.123.100.1이며
변경된 subnetmask 값이 255.255.255.128(ffffff80) 인 경우
# ifconfig le0 inet 210.123.100.1 netmask 0xffffff80(255.255.255.0)
# ifconfig le0 down ----> le0 interface를 down
# ifconfig le0 up ----> le0 interface를 up
# ifconfig -a ----> 모든 interface를 display
2. /etc/netmasks 화일에는 아래와 같이 지정
# vi /etc/netmasks
210.123.0.0 255.255.255.128
/etc/netmasks 화일에 지정할 경우 첫 칼럼에 정의하는 network address는 original network address를 명기해야 한다.
3. /etc/hosts 화일에서 IP 변경
# vi /etc/hosts
# Internet host table
#
127.0.0.1 localhost
203.232.111.123 main loghost
--- loghost 의 IP를 변경
4. /etc/defaultrouter 화일에 router 설정
# cat > /etc/defaultrouter
203.232.111.253
5. rebooting 하지 않고 router 설정
# route add default 203.232.111.253 1
# route delete default 203.232.111
6. DNS client setting
# cat > /etc/resolv.conf
domain chch-c.ac.kr
nameserver 203.232.111.3
# vi /etc/nsswitch.conf
passwd: files
group: files
hosts: files dns
networks: files
protocols: files
rpc: files
# nslookup ---> dns service 확인
'프로그래밍Tips' 카테고리의 다른 글
오라클 설치 후 작업들 몇가지...한글설정, 환경변수, 암호변경, 기본생성정보 (0) | 2005.09.22 |
---|---|
해킹 방지를 위해 아파치 서버 정보 숨기기 (2) | 2005.09.15 |
오라클 OC4J INSTALL, START AND SHUTDOWN (2) | 2005.09.05 |