Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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 do not need any specific help yet just to know if it is possible to
Configuring network interfaces in linux to have one network interfaces
say my wifi connection on my laptop to get an ip address from the dhcp server running on my router and then with or with out a crossover cable configure a second network interfaces the ethernet jack on the laptop to plug in to another pc and give it an ip of sorts so it can connect to the wifi network through the laptop they have this for windows it is called ICS but I am having no luck finding the information on the subject for linux, I have not actually been looking just but from what I remember a while back I could not find out it there is a way to do it
yes or no awnser is fine i just wanna know if it can be done
In GNU/Linux I believe it's just called "routing" & is so commonplace it doesn't need a fancy FUD name. There is a chance that M$ ICS is actually bridging, & while that is not so commonplace, it still doesn't need a sheeple oriented name.
I have never gotten ICS to work, but then it wasn't a high priority -- I have always run the boxen on my LAN to the 'Net through a router/firewall with wire. I don't think I have ever run one through another on the way to the main router.
If ICS passes DHCP requests through to the main router, then (I believe) that is bridging. The key Q is whether the both the ICS providing PC & the 1 connected to it wind up on the same sub-net.
I assume:
This is what you're trying to do: Router ~ ~ ~ ~ ~ Laptop===PC
('~' = radio, '=' = cable)
(The router NATs & therefore also functions as your firewall.)
The PC is located where it's not convenient to run an ethernet cable to the Router.
Because you will engage 2 interfaces on the Laptop, it will also acting as a router xor a bridge; albeit between 2 very simple networks. From the point of view of network topology, it would be much simpler to wire P directly to R, but (3) makes that impractical.
If you route, the one thing that I know is crucial in your situation is to turn on port forwarding on L:
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
This code must be executed at each boot & should be put in the appropriate init script. This advice may or may not apply to bridging.
Here is a link to help you w/ bridging:
www. google. com/linux? q =linux+%22bridge+mode%22
I also ran an LQ search on '"bridge mode"', you might want to do that too. One of the most promising threads I saw was: www. linuxquestions. org/questions/showthread.php ?t=467967&highlight=bridge+mode.
While the thread itself turned out to be be not really on point to your Q, the 5 "Similar Threads" list at the bottom had some promising looking leads.
Post back w/ what you do & how it works out, it's an interesting problem.
yes or no awnser is fine i just wanna know if it can be done
This is a router. You only need a DHCP server daemon and the correct firewall (IPTABLES) script, to do NATting. I've done it w/ two different distros, as this is the exact type of Internet connection I use on a daily basis....Jet
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.