[opensuse-amd64] How to get a wifi connection running between two Pc Linux ?
Hello all I would like to link my two laptops with a wifi network : PC n°1 : SuSE 9.2 Pro 64 bits, a wifi PC card built with chipset rt2500 (module rt2500 up to date) PC n°2 : SuSE 9.3 Pro 32 bits, a wifi PC card built with chipset rt61 (module rt61 up to date) On each PC, there are eth0 (ethernet) and ra0 (wifi) interfaces. The IP addresses are : PC n°1 : eth0 with 192.168.1.101 (mask 255.255.255.0), ra0 with 192.168.1.201 (mask 255.255.255.0), no gateway, mode Ad-Hoc and no WEP key for wifi. PC n°2 : eth0 with 192.168.1.102 (mask 255.255.255.0), ra0 with 192.168.1.202 (mask 255.255.255.0), no gateway, mode Ad-Hoc and no WEP key for wifi. On PC n°1, there is an ADSL modem, plugged on eth0 and whose IP address is 192.168.1.1. About firewall, ra0 is put in internal area without protection on each PC. Normally by doing a ping -I ra0 192.168.1.202 from PC n°1, I should get an answer ... like by an ethernet cable link. But NO !!! I get this : ping -I ra0 192.168.1.202 PING 192.168.1.202 (192.168.1.202) from 192.168.1.101 ra0: 56(84) bytes of data. From 192.168.1.201: icmp_seq=2 Destination Host Unreachable From 192.168.1.201 icmp_seq=2 Destination Host Unreachable From 192.168.1.201 icmp_seq=3 Destination Host Unreachable From 192.168.1.201 icmp_seq=4 Destination Host Unreachable From 192.168.1.201 icmp_seq=6 Destination Host Unreachable That's curious. No better effect with a gateway 192.168.1.201 put on PC n°1. Am I forgetting something in network configuration ? If I put a name in ESSID for PC n°1 for example, from the other PC I can see the name. So it seems that wifi on each PC is OK but something is missing or is not properly working. Any idea ?? A problem of firewall ? I put ra0 of each PC in internal area, so it should not be a problem at this level. But .... Thanks Pascal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-amd64+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-amd64+help@opensuse.org
El dc 31 de 01 del 2007 a les 20:56 +0100, en/na patheve va escriure:
Hello all
I would like to link my two laptops with a wifi network : PC n°1 : SuSE 9.2 Pro 64 bits, a wifi PC card built with chipset rt2500 (module rt2500 up to date) PC n°2 : SuSE 9.3 Pro 32 bits, a wifi PC card built with chipset rt61 (module rt61 up to date)
On each PC, there are eth0 (ethernet) and ra0 (wifi) interfaces. The IP addresses are : PC n°1 : eth0 with 192.168.1.101 (mask 255.255.255.0), ra0 with 192.168.1.201 (mask 255.255.255.0), no gateway, mode Ad-Hoc and no WEP key for wifi. PC n°2 : eth0 with 192.168.1.102 (mask 255.255.255.0), ra0 with 192.168.1.202 (mask 255.255.255.0), no gateway, mode Ad-Hoc and no WEP key for wifi.
Hello, You should use different network addresses for your wifi link. You have two different interfaces connected to the same network 192.168.1.x, your operating system doesn't know where to send packets to. Try: PC1 - eth0 - 192.168.1.2/24 --> modem ( 192.168.1.1 ) -> Internet - ra0 - 10.0.0.1/24 routes on PC1: network 192.168.1.0/24 dev eth0 network 192.168.2.0/24 via 10.0.0.2 network 0/0 via 192.168.1.1 PC2 - ra0 - 10.0.0.2/24 - eth0 - 192.168.2.1/24 routes on PC2 network 192.168.2.0/24 dev eth0 network 0/0 via 10.0.0.1 First of all, configure both ra0 interfaces and get ping working from both computers to 10.0.0.x interfaces. Later configure connection to the internet from PC1, and finally: Configure PC1 to masquerade 192.168.2.x traffic. hope this helps,
On PC n°1, there is an ADSL modem, plugged on eth0 and whose IP address is 192.168.1.1. About firewall, ra0 is put in internal area without protection on each PC.
Normally by doing a ping -I ra0 192.168.1.202 from PC n°1, I should get an answer ... like by an ethernet cable link. But NO !!! I get this : ping -I ra0 192.168.1.202 PING 192.168.1.202 (192.168.1.202) from 192.168.1.101 ra0: 56(84) bytes of data. From 192.168.1.201: icmp_seq=2 Destination Host Unreachable From 192.168.1.201 icmp_seq=2 Destination Host Unreachable From 192.168.1.201 icmp_seq=3 Destination Host Unreachable From 192.168.1.201 icmp_seq=4 Destination Host Unreachable From 192.168.1.201 icmp_seq=6 Destination Host Unreachable
That's curious. No better effect with a gateway 192.168.1.201 put on PC n°1. Am I forgetting something in network configuration ? If I put a name in ESSID for PC n°1 for example, from the other PC I can see the name. So it seems that wifi on each PC is OK but something is missing or is not properly working. Any idea ?? A problem of firewall ? I put ra0 of each PC in internal area, so it should not be a problem at this level. But ....
Thanks
Pascal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-amd64+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-amd64+help@opensuse.org
-- --- Jordi Bruguera i Cortada <jordi@grn.es> Consultor en Programari Lliure LPIC1-ID: 000001116 Linux User #21587 --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-amd64+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-amd64+help@opensuse.org
participants (2)
-
Jordi Bruguera i Cortada
-
patheve