반응형
시스템에 새로운 ethernet interface(le, hme, qfe, qe)를 추가하고 시스템이 이를 인식하게 하려면 /etc directory 밑에 hostname.xxN [N : 은 인터페이스 넘버] 화일을 만든 후 시스템
을 reconfigure 하도록 rebooting 한다.
각 ethernet interface 이름은 network card에 따라 다음과
같이 지정됩니다.
Ethernet : le
Fast Ethernet v1.0 : be
Fast Ethernet v2.0 : hme
Quard Ethernet : qe
Quard fast Ethernet : qfe
/etc/hostname.xxN 화일
시스템이 rebooting되는 동안에 /etc/rcS.d/S30rootusr.sh
화일이 실행 되면서 /etc/hostname.*의 화일의 내용을 읽어
이 화일 안에 들어있는 IP address 혹은 hostname으로 각
network interface를 enable 시킨다.
/etc/hostname.xxN은 아래와 같이 형태로 화일 이름을 만들면
됩니다.
xx : network interface의 이름을 나타낸다.
N : 몇번째 network interface인지를 나타낸다.
예) 1. hme interface를 2개 설치 했을때;
/etc/hostname.hme0와 /etc.hostname.hme1 화일을
만듭니다.
2. le interface 1개를 사용하다가 qe interface를 2개 추가
했을때;
/etc/hostname.le0 는 기존에 만들어져 있을 것이며
/etc/hostname.qe0와 /etc.hostname.qe1 화일을 만든다.
/etc/hostname.xxN 화일 안에는 "xxN" interface 에서 사용할
IP address나 이에 해당하는 hostname(/etc/hosts 화일에 등록
된 이름)을 넣습니다.
위 사항이 끝나면 시스템을 rebooting 하도록 합니다
# reboot -- -r 다음과 같이 하면 리부팅 하면서
시스템은 reconfig 하게 됩니다
[상기 글은 SUN Micorsystems에서 참조 하였습니다]
반응형