You are not logged in.
I took a look around, and this seemed to be the best place for this question.
I have two networks, one is my main network (with internet), and the second is a local sandbox with vulnerable machines (no internet).
Is there a way to connect my laptop (with two wifi cards) to both networks at the same time? My goal is to have internet access from the main network, and be able to test/access machines on the sandbox from the same machine.
The IP of the main network is 192.168.1.1 and the sandbox is 192.168.10.1
I have tried setting up static IPs for both interfaces, but it seems that my default card is set to the other wireless interface.
Thank you for the help!
Offline
There's... a forum area for networking. Why choose GNU/Linux Discussion?
Also you're missing important information. Firstly, how are you connecting to the network(s) in the first place? There's a variety of tools which do this, so that's some pretty information right from the start which is missing.
Also yes, this is in fact possible. Can't say anything else due to a lack of information in your post.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
There's... a forum area for networking. Why choose GNU/Linux Discussion?
Also you're missing important information. Firstly, how are you connecting to the network(s) in the first place? There's a variety of tools which do this, so that's some pretty information right from the start which is missing.
Also yes, this is in fact possible. Can't say anything else due to a lack of information in your post.
Sorry, I thought that was only for questions that were related to arch, packages, or the install. I can request to have this moved there if that is the correct place for it.
I have two wireless NICs. Do you know what other information is required? There are two different SSIDs, and two different gateways. I have static IPs set up on both of the connections to each network.
Offline
It could be that your default route needs changing.
When connected to both networks can you post the output of...
ip route show
Offline
It could be that your default route needs changing.
When connected to both networks can you post the output of...
ip route show
:~# ip route show
default via 192.168.10.1 dev wlan1 proto static metric 600
default via 192.168.1.1 dev wlan0 proto static metric 601
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.12 metric 600
192.168.10.0/24 dev wlan1 proto kernel scope link src 192.168.10.101 metric 600
Offline
Your laptop is connected to both networks at the same time. In fact, you don't even need 2 cards for that because linux happily assigns multiple IP addresses to one network interface (card).
If you wonder why you can't access the internet from your laptop, it's because you have low-metric default route to the 192.168.10.0/24 network which has no internet connection...
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
<snip> linux happily assigns multiple IP addresses to one network interface (card). <snip>
Can you please direct to the wiki page or any other litarature/links where one can peruse this matter in more detail?
Thanks!
Offline
Leonid.I wrote:<snip> linux happily assigns multiple IP addresses to one network interface (card). <snip>
Can you please direct to the wiki page or any other litarature/links where one can peruse this matter in more detail?
man ip-address
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