[사랑2]님이 남기신 글:
>아래의 설정대로 할려면 이더넷카드가 3개여야
합니까?
>eth0, eth1, eth1:0 <= (이렇게 3개)
>
>eth0은 사설ip을위한 이더넷카드
>eth1은 210.123.59.66을 위한 이더넷카드
>eth1:0은 210.123.59.72을 위한 이더넷카드
>
---------->
3개가 아닌 2개만 있으면 됩니다.
>#####################################################
>
>이더넷카드로 하나로 이렇게 설정해도 되나요?
>(이더넷카드 하나로 버츄얼 서비스 테스트를 해보고
싶어서요)
>eth0 211.175.108.123은 현재 ip주소고
>
>나머진 사설ip
>eth0:0 192.168.10.3
>eth0:1 192.168.10.4
>eth0:2 192.168.10.5
>
----------->
가능은 합니다.
그러나 다른 테스트 클라이언트 컴퓨터에서는
내부 IP 주소를 설정하여 테스트해야 합니다.
권장방법은 가능한 네트워크가 다른 IP 주소는
따라 하나의 이더넷에 설정하는 것이 좋습니다.
>그리고 이런 ip로 문서대로 설정해주면 됩니까?
>그런데, 사설ip를 등록해주고
>]# ifconfig
>명령으로 하면
>설정된 내용을 볼 수 있는데,
>
>]#/etc/rc.d/init.d/network restart
>를 하고
>]# ifconfig
>명령을 하면 설정된 내용이 지워져버립니다.
>
>(답글 기달리겠습니다.좋은
하루되세요!^^)
>
------------->
ifconfig, route 명령으로 네트워크를 설정하면
그 내용은 메모리로 올라갑니다.
/etc/rc.d/init.d/network restart
이 명령은 /etc/sysconfig/network-scripts/ifcfg-eth*
파일에 설정된 네트워크 설정을 내리고 그 설정대로
다시 올리는 방법입니다. 따라서 ifconfig, route 명령으로
설정한 네트워크 정보가 모두 사라집니다.
즉,
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth0:0
/etc/sysconfig/network-scripts/ifcfg-eth0:1
/etc/sysconfig/network-scripts/ifcfg-eth0:2
파일을 생성하여 입력해주고
/etc/rc.d/init.d/network restart
명령을 내리면 됩니다.
>
>
>
>
>
>################### 아래의 내용 ########################
>[san2(at)www san2]$ /sbin/ifconfig
>eth0 Link encap:Ethernet HWaddr 00:10:4B:18:17:77
> inet addr:192.168.10.3 Bcast:192.168.10.255
Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:1297308 errors:6 dropped:0 overruns:0 frame:7
> TX packets:9037 errors:0 dropped:0 overruns:0 carrier:0
> collisions:404 txqueuelen:100
> Interrupt:9 Base address:0xe800
>
>eth0:0 Link encap:Ethernet HWaddr 00:10:4B:18:17:77
> inet addr:192.168.10.4 Bcast:192.168.10.255
Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> Interrupt:9 Base address:0xe800
>
>eth0:1 Link encap:Ethernet HWaddr 00:10:4B:18:17:77
> inet addr:192.168.10.5 Bcast:192.168.10.255
Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> Interrupt:9 Base address:0xe800
>
>eth1 Link encap:Ethernet HWaddr 00:A0:C9:0C:89:A5
> inet addr:210.123.59.66 Bcast:210.123.59.255
Mask:255.255.255.0
>
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:1121139 errors:0 dropped:0 overruns:0 frame:9
> TX packets:35404 errors:1 dropped:0 overruns:0 carrier:2
> collisions:732 txqueuelen:100
> Interrupt:3 Base address:0x210
>
>eth1:0 Link encap:Ethernet HWaddr 00:A0:C9:0C:89:A5
> inet addr:210.123.59.72 Bcast:210.123.59.255
Mask:255.255.255.0
>
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> Interrupt:3 Base address:0x210
>
>lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:3924 Metric:1
> RX packets:1294 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1294 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
========================================
|