SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm quiet new to Slackware and was wondering if NetworkManager could be used to act as a router. I want to connect my pc (with NetworkManager) to my Andriod phone via wifi and have my Ethernet card for other Pc's to connect to.
I'm quiet new to Slackware and was wondering if NetworkManager could be used to act as a router. I want to connect my pc (with NetworkManager) to my Andriod phone via wifi and have my Ethernet card for other Pc's to connect to.
Thanks...
This would work:
PC (with wifi) >-----> Android phone (with "tethering" capability) >-----> Internet
But in that case your PC (running NetworkManager) would not be acting as a router, the phone would.
It seems like you're saying you want your PC to route your phone's connection...?
Maybe you could be more precise in describing your goal? Feel free to draw us pictures ;-)
Thanks for the replies, sorry been away for a few days. jostber, I've read that article which was helpful, but I have to connect to WPA on my Android phone so will have to look at setting up wpa_supplicant. STDOUBT, here's a little diagram...
d34dmau5,
That's a real non-standard way of creating a LAN.
Connecting your machines via a proper (dedicated) router and using a switch is really
the way to go. If you can't afford that extra hardware, and you want to connect both
machines to the glorious internet and also be able to share files between laptop<->pc,
you should be able to use the droidphone as a wireless "router". If it hands out more than one IP address, it should let the machines communicate.
You could also look into an ethernet "crossover cable" for a direct connection. Not sure about the
software/configs required since I haven't done it but once before on a lark. Again, non-standard.
Thanks for the replies, sorry been away for a few days. jostber, I've read that article which was helpful, but I have to connect to WPA on my Android phone so will have to look at setting up wpa_supplicant. STDOUBT, here's a little diagram...
I've done that. I set up the wireless connection in rc.inet1.conf (this will run wpa_supplicant for you... you should not have to configure it or rc.wireless.conf). I also set up the Ethernet port to give it a static IP of 192.168.1.1. Then I edited /etc/dnsmasq.conf with interface=eth0, and dhcp-range=192.168.1.2,192.168.1.20,12h (i.e. more than enough if a switch or hub is attached). Then I made /etc/rc.d/rc.dnsmasq executable.
That's all it takes. If you only have one machine you'll be attaching to the Ethernet, you probably won't need a special cable. All ports now support Auto-MDIX, which automatically crosses over the connection if needed. You only need a crossover cable for really old gear.
Thanks pat, I didn't realise editing rc.wireless would mean I wouldn't need to configure wpa_supplicant....so I really don't need NetworkManager even if I just use it so a standalone desktop. I was just using it because I've never used wpa_supplicant before. I've never used dnsmasq before so I'll have to read up on that.
Alas, if your android device is acting as the access point for your slack install, then you *can* use network manager to extend your wan via your ethernet port.
Edit your wired connection, under the ipv4 (or ipv6) tab, select *shared to other computers* under method, et voila! you have an new subnet generated by nm and shared to your wired friends....
Looking at /etc/rc.d/rc.wireless.conf I don't see anything for wpa encryption, only wep?
Do I enter my wpa passphrase there?
As I mentioned before, you shouldn't edit rc.wireless.conf at all. Everything can be set up in rc.inet1.conf. There are examples near the bottom of the file. You *can* use rc.wireless.conf, but it's harder to work with.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.