우선 상황을 말씀드리겠습니다.
제 피씨와 회사 리눅스가 있습니다.
이 둘을 한 네트웍상에 묶으려합니다.
즉 같은 서브넷으로 묶으려하는 것인데요..
우선 제 피씨는
Ethernet adapter 로컬 영역 연결:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.111
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
이구요
리눅스는
[root@LINUX sysconfig]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:56:40:1B:F4
inet addr:192.168.0.113 Bcast:192.168.0.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:164799 errors:0 dropped:0 overruns:0 frame:0
TX packets:9648 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:10 Base address:0x10a0
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:624 errors:0 dropped:0 overruns:0 frame:0
TX packets:624 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
[root@LINUX sysconfig]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window
irtt Iface
192.168.0.113 0.0.0.0 255.255.255.255 UH 0 0
0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0
0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0
0 eth0
[root@LINUX sysconfig]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
192.168.0.113 * 255.255.255.255 UH 0 0
0 eth0
192.168.0.0 * 255.255.255.0 U 0 0
0 eth0
127.0.0.0 * 255.0.0.0 U 0 0
0 lo
default 192.168.0.1 0.0.0.0 UG 0 0
0 eth0
입니다.
리눅스와 피씨 모두에서 인터넷은 잘~되구요.
랜카드는 둘다 하나씩 사용합니다.
여기서 보면 netmask가 255.255.255.0,255.255.255.255로서 서로
다르게 나와있어서 피씨의 netmask를 255.255.255.255로 바꾸려하니 에러가
납니다.
결국 리눅스의 netmask를 255.255.255.0으로 바꾸었으나 ./network restart
를 하면
적용이 되지 않구요...ㅜ.ㅜ
같은 네트웍으로 묶는 방법좀 가르쳐주세요..
고수님들 많은 조언 부탁드립니다.
이것때문에 정말 고생하고 있습니다..
읽어주셔서 감사드리구요.
좋은 하루 되세요~