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 am really bothered from this i cant configure the 2 nics to share the internet.... and i allready changed the sysctl.conf file to
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
please help... i have one nic reeving the internet and working good and the other one cant see anything...
It isn't clear what you are trying to do. Assuming that you trying to share one computer's internet connection with other computer(s), you will need to do much more than merely enable ip forwarding. The following should give you an idea of the process - http://www.ubuntugeek.com/sharing-in...in-ubuntu.html
There may be GUI tools that can help you. The first that springs to mind is Firestarter.
Last edited by nonamenobody; 03-22-2010 at 07:57 AM.
Reason: Forgot to mention Firestarter
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
depends on what you mean, are you trying to
a) attach both nics to the internet simultaneously
or
b) one nic to the internet and one to a lan and share the connection?
the second option is much more useful and can be done using iptables or some gui firewall program like firestarter
the first would require nic bonding http://www.cyberciti.biz/tips/linux-...interface.html but unless you had more then one modem/router it would more then likely be pointless since you wouldn't get any more performance then your modem allowed anyways
As nonamenobody, ericson007, and frieza all said, you can definitely have two NICs.
But exactly how to configure them ... depends completely on WHAT YOU WANT TO DO. And you haven't told us at all what your goal is.
As jefro said: if all you want to do is "access the Internet": you're probably better off just using one or the other NIC, and leaving the other one alone until you actually need it for something.
depends on what you mean, are you trying to
a) attach both nics to the internet simultaneously
or
b) one nic to the internet and one to a lan and share the connection?
the second option is much more useful and can be done using iptables or some gui firewall program like firestarter
the first would require nic bonding http://www.cyberciti.biz/tips/linux-...interface.html but unless you had more then one modem/router it would more then likely be pointless since you wouldn't get any more performance then your modem allowed anyways
---yaaaah one nic to the internet and the other is connected to a switch to share the connection--- ...... the qustion is ? ? ? ? how to make the other nic shares the connection i am stuck in this issue for like 4 days with no solution but the 2 nic's can ping each other only
i have 4 pcs one of them have a static ip and have two NIC cards connected to it,one NIC is connected to the internet and the other NIC connected to a switch that the other 3 pc's connected to.... now can anyone get me or get what i mean sorry for ma bad english
The specific details will vary depending on your distro, your LAN topology, and your preferences. But you should be able to get going with any of the above links.
okay thnx guys for your help.... now i have internet on the other pc's buti cant open any web site or ping to google....... but ican open skype or msn or stuff like that ...... i think i need to open the port 80 on the main pc that forward the connection.... but how to do that ? ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.