You are not logged in.

#1 2014-12-06 10:34:32

NewWorld
Member
Registered: 2010-02-15
Posts: 33

Wired and Wireless Can't Work Simultaneously [Solved]

My setup: I have a router upstairs connected to the internet to which I connect wirelessly. I bought a router downstairs that's not connected to the internet, but whose purpose is to allow 100Mbit transfers between Linux PC and Windows PC via ethernet.

Problem: I can't connect to both wired and wireless simultaneously, i.e. if I connect to wireless with Wicd I have internet access but can't ping Windows PC, but if I connect to wired with Wicd I can ping the Windows PC but no internet.

Linux PC wired static IP: 192.168.178.50
Linux PC wireless static IP: 192.168.178.70

If I connect to wired wireless Wicd `route -n` shows:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.178.1   0.0.0.0         UG    0      0        0 wlan0
192.168.178.0   0.0.0.0         255.255.255.0   U     0      0        0 wlan0

If I connect to wireled with Wicd `route -n` shows:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.178.51  0.0.0.0         UG    0      0        0 eth0
192.168.178.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0

Here is where I got up to and don't know what to try next and I would really appreciate some ideas:

1) I connect to wireless with Wicd.
2) Run

# ip addr add 192.168.178.50/24 dev eth0  # Give IP to eth0
# route add default gw 192.168.178.51 metric 1 dev eth0 # Try to make gateway the same as when I connect to wired with Wicd

`route -n` now looks like this:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.178.1   0.0.0.0         UG    0      0        0 wlan0
0.0.0.0         192.168.178.51  0.0.0.0         UG    1      0        0 eth0
192.168.178.0   0.0.0.0         255.255.255.0   U     0      0        0 wlan0
192.168.178.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0

and `ip addr` looks like this:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:1d:09:41:d3:00 brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.50/24 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::21d:9ff:fe41:d300/64 scope link
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:1f:3c:a3:6b:18 brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.70/24 brd 192.168.178.255 scope global wlan0
       valid_lft forever preferred_lft forever
    inet6 fe80::21f:3cff:fea3:6b18/64 scope link
       valid_lft forever preferred_lft forever

At this point I still can't ping the Windows PC (whose wired IP is 192.168.178.30), but I have internet access, and, weirdly, Wicd now shows I'm connected to wired.

Any and all advice is welcome.

Last edited by NewWorld (2014-12-06 15:22:28)

Offline

#2 2014-12-06 11:29:42

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,532

Re: Wired and Wireless Can't Work Simultaneously [Solved]

I've set a server which one side is connected to internet wiressly and the other side is connected wired to an AP. The difference compared your is that I used NetworkManager.
Beside that small issue, I set up to internet sharing as per wiki
For wicd, you may see its wiki, but I think you should instruct wicd to disregard wired setup and do it manually.


do it good first, it will be faster than do it twice the saint wink

Offline

#3 2014-12-06 11:36:08

NewWorld
Member
Registered: 2010-02-15
Posts: 33

Re: Wired and Wireless Can't Work Simultaneously [Solved]

TheSaint wrote:

I've set a server which one side is connected to internet wiressly and the other side is connected wired to an AP. The difference compared your is that I used NetworkManager.
Beside that small issue, I set up to internet sharing as per wiki
For wicd, you may see its wiki, but I think you should instruct wicd to disregard wired setup and do it manually.

I suppose I wasn't clear enough. Both Windows PC and Linux PC are connected wirelessly to the Internet-connected router upstairs. The router downstairs is only to link the 2 PCs with ethernet cables so that I can have fast transfer-speeds between them; the downstairs router does not need to be connected to the internet.

Offline

#4 2014-12-06 11:51:26

ploub
Member
Registered: 2007-05-16
Posts: 134

Re: Wired and Wireless Can't Work Simultaneously [Solved]

IIRC the wired & wireless networks should be on different subnets - e.g give the wired network an IP address of 192.168.179.x. See the wiki - https://wiki.archlinux.org/index.php/In … IP_address

Offline

#5 2014-12-06 15:21:57

NewWorld
Member
Registered: 2010-02-15
Posts: 33

Re: Wired and Wireless Can't Work Simultaneously [Solved]

ploub wrote:

IIRC the wired & wireless networks should be on different subnets - e.g give the wired network an IP address of 192.168.179.x. See the wiki - https://wiki.archlinux.org/index.php/In … IP_address

Bravo! Bravo! This led me to the solution. Thank you; you recovered me from the bad mood I was in all day because of this smile

Here is the setup I have now, to help people in the future:

Wired Router settings
IP Address: 192.168.179.2
Subnet mask: 255.255.255.0
Default gateway: 192.168.179.1

Wireless Router settings
Don't know; I don't have access. From the settings below you can deduce that the router's IP is 192.168.178.1

Linux PC Wireless settings in Wicd
IP Address: 192.168.178.70
Subnet mask: 255.255.255.0
Default gateway: 192.168.178.1

Linux PC Wired settings in Wicd (I don't connect to eth0 through Wicd, but when I connect through the command line, Wicd shows that I'm connected to the wired, so maybe these settings DO have some effect)
IP Address: 192.168.179.52
Subnet mask: 255.255.255.0
Default gateway: 192.168.179.1

Windows PC Wireless settings (I didn't set these; it's just what `ipconfig /all` shows)
IP Address: 192.168.178.44
Subnet mask: 255.255.255.0
Default gateway: 192.168.178.1

Windows 7 PC Wired settings in Wicd (Set these by going Control Panel > Network and Sharing Center > Change Adapter Settings > Right-click the Ethernet device > Properties > Select "Internet Protocol Version 4" and click "Properties" > Click on the radio button "Use the following IP Address" in the "General" tab)
IP Address: 192.168.179.60
Subnet mask: 255.255.255.0
Default gateway: 192.168.179.2
Interface metric: 2 (In the same "General" tab, click on "Advanced". I have to set this otherwise I didn't have internet access on the Windows PC when the ethernet was plugged in)


Once you have the Windows side set up (you can access the internet and your wired router's web interface), on the Linux PC: connect to the wireless router with Wicd, then type:

ip addr add 192.168.179.50/24 dev eth0

to assign your ethernet device an IP on the wired subnet. This is what `route -n` looks like for me now:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.178.1   0.0.0.0         UG    0      0        0 wlan0
192.168.178.0   0.0.0.0         255.255.255.0   U     0      0        0 wlan0
192.168.179.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0

Offline

#6 2014-12-06 17:20:30

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,532

Re: Wired and Wireless Can't Work Simultaneously [Solved]

NewWorld wrote:

The router downstairs is only to link the 2 PCs with ethernet cables so that I can have fast transfer-speeds between them; the downstairs router does not need to be connected to the internet.

You even don't need a router to connect only 2 PCs Just a CAT5 cable will suffice. Modern PCs will adjust them self without the need of cross cable. In case of doubts, better the cross cable.


do it good first, it will be faster than do it twice the saint wink

Offline

#7 2014-12-06 17:34:13

NewWorld
Member
Registered: 2010-02-15
Posts: 33

Re: Wired and Wireless Can't Work Simultaneously [Solved]

TheSaint wrote:
NewWorld wrote:

The router downstairs is only to link the 2 PCs with ethernet cables so that I can have fast transfer-speeds between them; the downstairs router does not need to be connected to the internet.

You even don't need a router to connect only 2 PCs Just a CAT5 cable will suffice. Modern PCs will adjust them self without the need of cross cable. In case of doubts, better the cross cable.

Oh, cool; didn't know that. I'll try that out later.

Offline

Board footer

Powered by FluxBB