1) 현재 ip-address 확인 방법

# ifconfig -a (모든 interface 확인)
# ifconfig eri0 (eri0 네트웍 카드만 확인 )
# man eri (eri 네트웍 카드를 알 수 있음.)

2) 현재 eri 네트웍 카드의 ip-address 변환 방법
# ifconfig eri0 inet 10.1.1.60

3) ethernet address 변환 방법
# ifconfig eri0 ether 0:3:ba:4e:3c:4c

4) netmask 변경
# ifconfig eri0 netmask 255.255.0.0 broadcast +

5) 네트웍 카드 enable /disable
# ifconfig eri0 down <== disable
# ifconfig eri0 up <== enable

6) 네트웍 카드 plumb /unplumb
# ifconfig eri0 unplumb <== 네트웍 카드 제거
# ifconfig eri0 plumb <== 네트웍 카드 설정

7) 네트웍 카드 초기화
# ifconfig eri0 plumb 203.234.247.60 netmask 255.255.255.0 broadcast
+ up

8) rebooting 후에도 계속 사용하고자 할 때 설정하는 파일
# vi /etc/hostname.eri0 <== 네트웍 카드 이름으로된 파일을 생성
203.234.247.60
또는
sun60

9) 만일 'sun60' 처럼 host이름으로 사용시 hosts 파일에 기록
# vi /etc/hosts
203.234.247.60 sun60

10) 가상 interface 설정 방법 (복수의 ip-address 설정)
# ifconfig eri0 addif 10.1.1.10 up
# ifconfig eri0 addif 10.1.1.11 up

11) 가상 interface 제거 방법
# ifconfig eri0:1 unplumb
또는
# ifconfig eri0 removeif 10.1.1.11

12) booting 시 자동으로 가상 Interface 설정 방법
# vi /etc/hostname.eri0
sun60 up
addif 10.1.1.1 netmask 255.255.255.0 broadcast + up
addif 10.1.1.2 netmask 255.255.255.0 broadcast + up
# init 6

from  http://serings.tistory.com/79

+ Recent posts