Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-22-2010, 07:13 AM
|
#1
|
|
LQ Newbie
Registered: Mar 2010
Posts: 12
Rep:
|
configure 2 nic's to share the internet
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...
|
|
|
|
03-22-2010, 07:48 AM
|
#2
|
|
Member
Registered: Oct 2002
Posts: 138
Rep:
|
Quote:
Originally Posted by zewolfen
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
|
|
|
|
03-22-2010, 01:23 PM
|
#3
|
|
Member
Registered: Sep 2004
Distribution: CentOS 6.2
Posts: 133
Rep:
|
Check out http://www.aboutdebian.com they have graphics and settings for creating virtual hosts on one NIC... i.e. 2 ip's both on one interface.
|
|
|
|
03-22-2010, 01:37 PM
|
#4
|
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 2,905
|
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
Last edited by frieza; 03-22-2010 at 01:40 PM.
|
|
|
|
03-22-2010, 04:32 PM
|
#5
|
|
Guru
Registered: Mar 2008
Posts: 8,556
|
The problem is that 2 nic's will not help most people. The rules of tcp/ip limit routes. Only one nic will end up being used.
|
|
|
|
03-22-2010, 05:31 PM
|
#6
|
|
Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,861
Rep: 
|
Hi -
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.
IMHO .. PSM
|
|
|
|
03-23-2010, 08:39 AM
|
#7
|
|
LQ Newbie
Registered: Mar 2010
Posts: 12
Original Poster
Rep:
|
Quote:
Originally Posted by frieza
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
|
|
|
|
03-23-2010, 08:49 AM
|
#8
|
|
LQ Newbie
Registered: Mar 2010
Posts: 12
Original Poster
Rep:
|
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 
|
|
|
|
03-27-2010, 11:28 AM
|
#10
|
|
LQ Newbie
Registered: Mar 2010
Posts: 12
Original Poster
Rep:
|
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 ? ?
|
|
|
|
03-28-2010, 02:07 PM
|
#11
|
|
LQ Newbie
Registered: Mar 2010
Posts: 12
Original Poster
Rep:
|
hello ?
hello ?
|
|
|
|
04-20-2010, 03:58 AM
|
#12
|
|
Member
Registered: Sep 2004
Distribution: CentOS 6.2
Posts: 133
Rep:
|
Use something like firewall builder that will show you graphically which ports are allowed and denied, that sounds like your firewall setup.
|
|
|
|
04-20-2010, 04:17 AM
|
#13
|
|
Member
Registered: Apr 2009
Location: Perth, Australia
Distribution: Ubuntu/CentOS
Posts: 208
Rep:
|
If you want more help, run these commands and post the output to us:
iptables-save
ifconfig
route -n
cat /proc/sys/net/ipv4/ip_forward
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:32 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|