Hi all, this is my first post to the list. I´m new in linux and want to practice a bit with it. At home i have three computers, twoo with Ms Windows and one with Linux. Every Windows machine has a NIC and the Linux machine hast two NIC´s. I connect the Windows machines to the Linux one with a UTP Cross-Over (hub to hub) direct nic to nic cable. Its more easy if you see it ... +---------------------+ +---------------------+ | WIN1 | | WIN2 | | 192.168.0.10 | | 192.168.0.11 | | 255.255.255.0 | | 255.255.255.0 | +---------------------+ +---------------------+ | | | | | | \ / \ / \ / +------------------------------------------------------------------+ |192.168.0.1 | | 192.168.0.2 | |255.255.255.0| **LINUX** | 255.255.255.0 | |Eth0 | | Eth1 | +------------------------------------------------------------------+ My question is how can i make WIN1 see WIN2 ? I´ve beeing playing around with route command but it seems not to work. Asswell i would like to know how to make the routing table start with the system; when i restart the routing tables i have entered just disapere. Thanks in advance. P.S.: If it helps, i´m using Suse Linux 6.3. And i don´t have $$$ to buy a HUB. Ahh ... , the Linux machine sees the two Ms Windows. =========================== F. Roque Ojeda Masias Servicio de Informatica Ayto. Las Palmas de Gran Canaria Tfno.: (928) 44.62.74 Email: rojeda@laspalmasgc.es ===========================
The addressing scheme you chosen is not correct. You have two networks but assign the same networ address to both. It might make more sense to assign addresses as follows, for example: WIN1 192.168.0.11/255.255.255.0 --> Linux eth0 192.168.0.1/255.255.255.0 WIN2 192.168.1.10/255.255.255.0 --> Linux eth1 192.168.1.1/255.255.255.0 WIN1 should have default gateway set to 192.168.0.1, WIN2 - to 192.168.1.1 Then windows machines can see each other. HTH, -Kastus On Tue, Mar 20, 2001 at 08:31:32AM -0000, INF - F. Roque Ojeda Masias wrote:
Hi all, this is my first post to the list. I?m new in linux and want to practice a bit with it. At home i have three computers, twoo with Ms Windows and one with Linux. Every Windows machine has a NIC and the Linux machine hast two NIC?s. I connect the Windows machines to the Linux one with a UTP Cross-Over (hub to hub) direct nic to nic cable. Its more easy if you see it ...
+---------------------+ +---------------------+ | WIN1 | | WIN2 | | 192.168.0.10 | | 192.168.0.11 | | 255.255.255.0 | | 255.255.255.0 | +---------------------+ +---------------------+ | | | | | | \ / \ / \ / +------------------------------------------------------------------+ |192.168.0.1 | | 192.168.0.2 | |255.255.255.0| **LINUX** | 255.255.255.0 | |Eth0 | | Eth1 | +------------------------------------------------------------------+
My question is how can i make WIN1 see WIN2 ? I?ve beeing playing around with route command but it seems not to work. Asswell i would like to know how to make the routing table start with the system; when i restart the routing tables i have entered just disapere. Thanks in advance.
P.S.: If it helps, i?m using Suse Linux 6.3. And i don?t have $$$ to buy a HUB. Ahh ... , the Linux machine sees the two Ms Windows.
=========================== F. Roque Ojeda Masias Servicio de Informatica Ayto. Las Palmas de Gran Canaria Tfno.: (928) 44.62.74 Email: rojeda@laspalmasgc.es ===========================
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
"INF - F. Roque Ojeda Masias" wrote:
My question is how can i make WIN1 see WIN2 ? I´ve beeing playing around with route command but it seems not to work.
It won't ever work in your setup. You're using the same network address for the two network segments, it's impossible to do routing then. All you need to do is to separate the two network segments into two network addressess and than enable routing and ip_forwarding: +---------------+ | WIN 1 | | 192.168.1.2 | | 255.255.255.0 | +-------+-------+ | | | +-------+-------+ | 192.168.1.1 | | 255.255.255.0 | | | | Linux | | | | 192.168.2.1 | | 255.255.255.0 | +-------+-------+ | | | +-------+-------+ | WIN 1 | | 192.168.2.2 | | 255.255.255.0 | +---------------+ Then you need to make sure that the routing table is properly configured, Linux should have automagicaly created created the entries when you borught the network interfaces up, check it with 'route -n', it should have entries like the following: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo If they're not there already create them with 'route add ...' Finally you have to enable ip_forwarding: ipchains -A forward -b -s 192.168.1.0/24 -d 192.168.2.0/24 -j ACCEPT echo 1 > /proc/sys/net/ipv4/ip_forward
Asswell i would like to know how to make the routing table start with the system; when i restart the routing tables i have entered just disapere.
If you confiugred the network cards using YaST it should have already put the appropriate entries in /etc/route.conf, otherwise you can edit it and add the following entries: 192.168.1.0 0.0.0.0 255.255.255.0 eth0 192.168.2.0 0.0.0.0 255.255.255.0 eth1 rgrds, Braulio Gergull
participants (3)
-
Bráulio W. Gergull
-
INF - F. Roque Ojeda Masias
-
Konstantin (Kastus) Shchuka