: 하나의 리눅스서버에 여러개의 NIC을 설치하고는
: 각각의 NIC에 다른 service들을
: 하게 하려면 어찌하여야 할까요?
:
: 즉, eth0 에는 gateway로 하고
: eth1 에는 NFS를 서비스하고
: eth2 에는 ftp서비스를 하고
: eth3 에는 http서비스를 하게 하려면 말이죠.....^^;
아 물론 되지요...
일단 /etc/hosts안에 다음과 같이 설정이 되어 있다고 가정하고
192.168.1.1 hostname.domain hostname ; eth0 용
192.168.10.1 hostname-1.domain hostname-1 ; eht1 용
192.168.20.1 hostname-2.domain hostname-2 ; eth2 용
192.168.30.1 hostname-3.domain hostname-3 ; eth3 용
eth0를 gateway로 하고 싶으면 /etc/sysconfig/network 안에
GATEWAYDEV="eth0" 라고 써주면 되고.
eth1으로 NFS를 하고 싶으면 마운트할때
# mount -t nfs hostname-1.domain:/tmp /tmp
식으로 eth1에 걸린 호스트네임으로 마운트하면 되고
ftp를 eth2로 접속하고 싶으면
# ftp hostname-2.domain 과 같이 하면 되고
http를 eth3으로 하고 싶으면
httpd.conf등에서 hostname-3.domain 을 호스트네임으로
정해주면 됩니다.