Как я могу сделать LAN на 192.168.1.xxx
(eth2
) передачи пакетов к другой LAN (eth0
) 10.42.0.19
(Win7 ПК)?
Оба LAN подключены к Ubuntu ПК. Я могу проверить с помощью ping-запросов от ПК, подключенного с eth0
к ПК, подключенному с eth2
. Однако я не могу проверить с помощью ping-запросов от ПК, подключенного с eth2
к ПК, подключенному с eth0
.
Вы видите tracert
может завершиться на пути, но не другом пути. Как заставить это работать?
Этот путь от второго Win7 работает к первому Win7:
C:\Users\scott>tracert 192.168.200.36
Tracing route to WIN7 [192.168.200.36]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms SCOTT-P5QC [10.42.0.1]
2 <1 ms <1 ms <1 ms wr850g.hr.cox.net [192.168.1.1]
3 25 ms 24 ms 31 ms WIN7 [192.168.1.100]
4 18 ms 17 ms 40 ms WIN7 [192.168.200.36]
Trace complete.
Этот путь от первого Win7 до второго Win7 повреждается:
C:\Users\scott>tracert 10.42.0.19
Tracing route to 10.42.0.19 over a maximum of 30 hops
1 52 ms 1 ms 1 ms hubrouter.westell.com [192.168.200.1]
2 43 ms 98 ms 45 ms 192.168.1.1
3 45 ms 105 ms 24 ms SCOTT-PC [192.168.1.102]
4 SCOTT-PC [192.168.1.102] reports: Destination protocol unreachable.
Trace complete.
От первого Win7 до работ маршрутизатора Ubuntu:
C:\Users\scott>tracert 10.42.0.1
Tracing route to SCOTT-P5QC [10.42.0.1]
over a maximum of 30 hops:
1 105 ms <1 ms 4 ms hubrouter.westell.com [192.168.200.1]
2 19 ms 17 ms 33 ms 192.168.1.1
3 35 ms 34 ms 5 ms SCOTT-P5QC [10.42.0.1]
Trace complete.
netstat
маршруты в маршрутизаторе Ubuntu:
scott@scott-P5QC:~$ netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default wr850g.hr.cox.n 0.0.0.0 UG 0 0 0 eth2
10.42.0.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth2
Ручная копия расположения LAN:
Я также отправил этот вопрос на Форумах Ubuntu
Решено установкой webmin
. Затем использовал его для сброса iptables
. Серьезно, отличный инструмент для администрирования брандмауэра.
webmin
сказал мне, что в iptables
было 2 правила, которые он не мог понять, поэтому я сохранил iprules
в файл, сделал сброс, и все 3 ПК могут обмениваться файлами.
Брандмауэр defacto работает все время, используя iptables
. Поэтому они должны быть изменены.
scott@scott-P5QC:~$ sudo dpkg -i webmin_1.580_all.deb
Selecting previously unselected package webmin.
(Reading database ... 229686 files and directories currently installed.)
Unpacking webmin (from webmin_1.580_all.deb) ...
Setting up webmin (1.580) ...
Webmin install complete. You can now login to xxxxxxxxxxxxxxxxxxx
as root with your root password, or as any user who can use sudo
to run commands as root.
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Чтобы показать, как это выглядит:
Источник - Ubuntu Geek