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 have two network cards in my machine. From what I've read in the RFCs, it should be possible to provide an internet connection to my girlfriends laptop (M$ lossdoze XP (is my contempt showing?)), by providing her with a seperate IP and routing all packets w. that IP to her machine.
Am I right? What would I google for? Please provide me with a relevant pointer.
Jonas, you've clearly read to Smart Questions guide you pointed another user to earlier.
I guess the question is this... do you want her to have a world-resolvable IP? Does your ISP permit multiple IPs/connection? Most cable companies do (or used to anyway), DSL and dial-up did not.
If not, you need Network Address Translation (NAT/IP Forwarding). This is a very common request for linux to perform. You need iptables with NAT and conntrack support. If you want her to obtain an IP via dhcp, you'll also need a DHCP server. I'd be happy to provide more details on this solution if needed.
If they do allow multiple "real" IPs per account, then you could just put the two machines on a switch/hub. Or set up ethernet bridging, if you'd rather she went through your machine.
I have contacted my ISP (I couldn't find answer on their website).
I have found several dhcp servers w. synaptic, but installed none--I can only really test them when the other machine is here.
I have also googled for iptables NAT conntrack, but haven't found a way to determine if my kernel supports it. How do I determine this?
I read a bunch of docs on bridging; among others that it's not recommended to do it in 2.6 kernels (which I use). Comments on this? How do I determine if I can do ethernet bridging?
In case I didn't make it clear, I want to use the internet at the same time as my gf.
Could you refer me to the document that suggests bridging is bad with 2.6 kernels? I'm just curious about that.
Anyway, to check if your kernel supports it, look under Device Drivers > Networking Support > Networking Options > Network Packet Filtering > IP Netfilter Configuation in the kernel config. It's well hidden. The options are named CONFIG_IP_NF_* in the kernel .config.
originally said by Eric Cartman
I would if I could, you son-of-a-bitch
I tried looking through my history, by didn't find it. It also seemed weird to me at read-time.
I'm running a stock (i.e. not self-compiled) debian kernel. I found /usr/src/linux -> kernel-source-2.6.8 (which I'm running) and connection tracking is enabled in its config. I can't remember installing any kernel-source nor modifying conntrack, so I can't say how relevant my observation is.
Is there a way to determine whether or not my current kernel supports it, using the image/exectuable only?
And just to make it perfectly clear: both options (NAT/bridge) will allow me to use `teh intarweb' at the same time as the other computer?
I assume you've deduced that my ISP only provides me w. one ethernet plug (otherwise, I'd have tried plugging my gf into the other).
I've checked with my ISP: I *can* grab two IPs, so I'm probably going to do that. I found an ethernet bridging howto, explaining how to enable it in terms even *I* can understand . Consider that subproblem solved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.