Prev: What is the proper ownership, group and permission for the files under /var/named?
Next: Mobile connection
From: Paulo da Silva on 20 Jul 2010 17:34 Hi! I have a wifi wpa2 network with 3 PCs - PC1, PC2 e PC3 configured and working with local fix IPs (192.168.1.10,11,12), router gw 192.168.1.1. Now I want to add a 4th PC, PC4, to PC3 using a eth cable (no wifi). PC1 wlan0 <--------....-------+ | PC2 wlan0 <--------....-------+---> router | PC3 wlan0 <--------....-------+ eth0 <---------+ | PC4 eth0 <---------+ I was not able to bridge wlan0 and eth0! Don't know why. I used the same commands to bridge 2 eth0 and it worked but failled when one port was wlan0. So I am thinking to use two subnets (netmask 255.255.254.0). Pls. correct me if I am wrong ... Let's do PC3 eth0 192.168.2.12 and PC4 eth0 192.168.2.13 for ex. On PC4: ifconfig eth0 192.168.2.13 up route add default gw 192.168.2.12 What commands should I issue on PC3? ifconfig eth0 192.168.2.12 up ???? Thank you very much for any help/comments. Paulo
From: Pascal Hambourg on 21 Jul 2010 03:33
Hello, Paulo da Silva a écrit : > > I have a wifi wpa2 network with 3 PCs - PC1, PC2 e PC3 configured and > working with local fix IPs (192.168.1.10,11,12), router gw 192.168.1.1. > > Now I want to add a 4th PC, PC4, to PC3 using a eth cable (no wifi). > > PC1 wlan0 <--------....-------+ > | > PC2 wlan0 <--------....-------+---> router > | > PC3 wlan0 <--------....-------+ > eth0 <---------+ > | > PC4 eth0 <---------+ > > I was not able to bridge wlan0 and eth0! Don't know why. I used the same > commands to bridge 2 eth0 and it worked but failled when one port was wlan0. Maybe your wireless adapter does not allow spoofing of the source MAC address. <http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge#It_doesn.27t_work_with_my_Wireless_card.21> > So I am thinking to use two subnets (netmask 255.255.254.0). Why this netmask ? > Pls. correct me if I am wrong ... > Let's do PC3 eth0 192.168.2.12 and PC4 eth0 192.168.2.13 for ex. > On PC4: > ifconfig eth0 192.168.2.13 up Note that if you don't specify a netmask ifconfig uses the classful mask by default (192 is class C so 255.255.255.0). > route add default gw 192.168.2.12 > > What commands should I issue on PC3? > ifconfig eth0 192.168.2.12 up Yes. You should add a route to subnet 192.168.2.0/24 via 192.168.1.12 on the router too, so routing works in both directions. |