You are not logged in.

#1 2016-07-01 13:46:30

everyone
Member
Registered: 2015-12-13
Posts: 4

Multiple network cards and access their networks

I have two network connections, Static IP Wired and DHCP Wireless. Wired is used for local LAN, it has an address range of 192.168.100.0/24 and a default gateway of 192.168.100.100. My IP is 192.168.100.200 The gateway leads to another network with address range of 10.1.1.0/24, which hosts some services used across the LAN. Under normal circumstances this connection doesn't have internet access.

Wireless connection has internet access, an adress range of 192.168.0.0/24 and a default gateway of 192.168.0.1.

I can have both connections turned on, but if I do, I cannot access services hosted on LAN. If I turn off Wireless connection, then Wired takes over and I can access LAN-hosted services, but consequently not the internet.

How do I configure Arch so that I can have both Wired and Wireless connections active with unrestricted access to both resources on the internet and in local LAN? I use NetworkManager but if NM doesn't allow such feat then I can set up any other network service supported in Arch.

Offline

#2 2016-07-01 14:34:45

Abaddon
Member
From: Poland
Registered: 2004-05-03
Posts: 249

Re: Multiple network cards and access their networks

Set static route to 10.1.1.0/24 via 192.168.100.100.


Gnome - The weakest link!
Linux, *not* GNU/Linux!

Offline

#3 2016-07-01 14:37:02

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: Multiple network cards and access their networks

Abaddon is correct.  see man ip-route


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2016-07-04 11:46:24

everyone
Member
Registered: 2015-12-13
Posts: 4

Re: Multiple network cards and access their networks

ip route add 10.1.1.0/24 via 192.168.100.100

that did it, thank you Abaddon, ewaller.

Offline

Board footer

Powered by FluxBB