Networking Forums

Networking Forums > Computer Networking > Linux Networking > Help with intermediate net configuration

Reply
Thread Tools Display Modes

Help with intermediate net configuration

 
 
Paulo da Silva
Guest
Posts: n/a

 
      07-20-2010, 09:34 PM
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
 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      07-21-2010, 07:33 AM
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.
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can you identify the intermediate nodes along the path using ping ONLY aamircheema@gmail.com Linux Networking 4 08-03-2006 07:22 PM
Configuration Help John Imp Wireless Internet 2 08-20-2004 03:54 PM
Help! How can I to install a NDIS-Intermediate-driver unter Win98/Me AUTOMATICALLY? AndreasRu@t-online.de Windows Networking 0 04-30-2004 12:30 PM
Help! How can I to install a NDIS-Intermediate-driver unter Win98/Me AUTOMATICALY? AndreasRu@t-online.de Windows Networking 0 04-30-2004 12:28 PM
MN-700 Log Configuration? Dan Broadband Hardware 1 02-04-2004 12:35 AM



1 2 3 4 5 6 7 8 9 10 11