[root@ns♥PowerRoot♥/chroot]# ifconfig -a ==> 현재 네트워크 정보 조회
ifconfig up or down : 네트워크 활성화 및 비활성화.
[root@ns♥PowerRoot♥/chroot]# ifconfig eth0 61.251.13.216 netmask 255.255.255.0 broadcast 255.255.255.255 up
[root@ns♥PowerRoot♥/chroot]# route -ne ==> 현재 시스템 게이트웨이 상태 조회
[root@ns♥PowerRoot♥/chroot]# route add -net <네트워크 주소> netmask <넷매스크 값> dev <인터페이스 이름> 라우팅 정보 추가
[root@ns♥PowerRoot♥/chroot]# route del -net <네트워크 주소> netmask <넷매스크 값> dev <인터페이스 이름> 라우팅 정보 삭제
[root@ns♥PowerRoot♥/chroot]# route add default gw <기본 게이트웨이 주소> dev <인터페이스 이름> 기본 게이트웨이 추가
[root@ns♥PowerRoot♥/chroot]# route del default gw <기본 게이트웨이 주소> dev <인터페이스 이름> 기본 게이트웨이 삭제
[root@ns♥PowerRoot♥/chroot]# netstat -apo ==> 일반적인 네트워크 소켓 정보 모니터 조회
[root@ns♥PowerRoot♥/chroot]# netstat -atupc ==> 네트워크 상태 알아보기. ==> -a : 연결된 모든 소켓 출력. -t : tcp 연결 소켓 출력 -u : udp 소켓 출력
-p : 소켓과 연결된 프로그램 출력 -c : 연속적 출력 -r : 라우팅 테이블 출력 -i : 인터페이스 테이블 출력
[root@ns♥PowerRoot♥/chroot]# netconfig ==> Gnu 모드에서 자동 설정해 주는 도구이다
[root@ns♥PowerRoot♥/chroot]# hostname ns.yeeyee.pe.kr ==> 호스트명을 명령을 통해 입력.
##### 수동으로 호스트명을 입력한다. 아래처럼
[root@ns♥PowerRoot♥/chroot]# cat << OS >> /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=linuxsunny.pe.kr
OS
##### 자신의 IP와 게이트웨이를 설정한다.
[root@ns♥PowerRoot♥/chroot]# cat << OS >> /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.3
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
OS
##### 호스트를 설정 한다. 아래처럼 ^^
[root@ns♥PowerRoot♥/chroot]# cat << OS >> /etc/hosts
192.168.0.3 linuxsunny.pe.kr sunny
#192.168.0.3 linuxsunny.pe.kr taeyong
#192.168.0.3 linuxsunny.pe.kr log
OS
##### 네임 서버명을 설정한다.
[root@ns♥PowerRoot♥/chroot]# vi /etc/resolv.conf
search local
nameserver 164.124.101.2
nameserver 211.238.160.25
#### 변경된 설정내용을 다시 읽어들이기 위해 서버데몬을 다시 시작한다.
[root@ns♥PowerRoot♥/chroot]# service network restart
'🌟2017년 이전 포스팅 모음 🌟 > 💞Linux OS💞' 카테고리의 다른 글
메모리 관리와 램 디스크 제작 (0) | 2011.05.14 |
---|---|
시스템 권한 설정과 전체 퍼미션 정책 설정 (0) | 2011.05.14 |
hostsentry 설치와 설정 (0) | 2011.05.14 |
portsentry 설치와 설정 (0) | 2011.05.14 |
XP 마운틴 한글 지원 설정 (0) | 2011.05.14 |