아래의 설정대로 할려면 이더넷카드가 3개여야 합니까?
eth0, eth1, eth1:0 <= (이렇게 3개)
eth0은 사설ip을위한 이더넷카드
eth1은 210.123.59.66을 위한 이더넷카드
eth1:0은 210.123.59.72을 위한 이더넷카드
#####################################################
이더넷카드로 하나로 이렇게 설정해도 되나요?
(이더넷카드 하나로 버츄얼 서비스 테스트를 해보고 싶어서요)
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를 등록해주고
]# ifconfig
명령으로 하면
설정된 내용을 볼 수 있는데,
]#/etc/rc.d/init.d/network restart
를 하고
]# ifconfig
명령을 하면 설정된 내용이 지워져버립니다.
(답글 기달리겠습니다.좋은
하루되세요!^^)
################### 아래의 내용 ########################
[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
|