LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 08-15-2007, 09:17 PM   #1
bradshoults
LQ Newbie
 
Registered: Aug 2007
Location: Virginia
Distribution: mythubuntu,ubuntu
Posts: 10

Rep: Reputation: 0
Can not share internet connection


I finally got the two ubuntu boxes to talk to each other but I am unable to get internet on the emachine. I used webmin and got it hooked up, kudos to the creators!! I want to share the internet connection with the emachine box but dont know where to start from here. I have ipforwarding, nat, and a firewall -- all setup through webmin, I just understand very little of it, hence I dont know what information to include.
 
Old 08-15-2007, 10:24 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
You may already have the internet connected computer configured from your description. You may just need to tell the e-machine that the default gateway is the LAN side NIC IP address of the first machine. You should provide more information if this doesn't work.
 
Old 08-15-2007, 10:27 PM   #3
bradshoults
LQ Newbie
 
Registered: Aug 2007
Location: Virginia
Distribution: mythubuntu,ubuntu
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jschiwal View Post
You may already have the internet connected computer configured from your description. You may just need to tell the e-machine that the default gateway is the LAN side NIC IP address of the first machine. You should provide more information if this doesn't work.
with dhcp set on the emachine how do I do that, it doesn't give me that option?
the dell has the internet on eth1 and the internal lan on eth0, I have the dhcp server setup and it appears that the emachine is getting its ip correctly. I did the ipforwarding and masquerading of eth1 as I read in a ubuntu fourm.

Last edited by bradshoults; 08-15-2007 at 10:34 PM. Reason: to provide more information
 
Old 08-15-2007, 11:10 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
You didn't mention running DHCP in your first message. Run "/sbin/ifconfig" to see if the NIC has an IP address. The DHCP client on the eMachine should update the /etc/resolv.conf file with the gateway address. This is the file that contains the nameserver (DNS) addresses. It may look similar to this:
Code:
nameserver 24.116.209.232
nameserver 24.116.0.202
nameserver 24.116.212.232
search jesnet


There may be a config option for the DHCP client where you indicate whether it can edit the hosts or resolve.conf file.
Enter "/sbin/route" to check if you have a default gateway:
Code:
/sbin/route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
jesnet          *               255.255.255.128 U     0      0        0 wlan0
link-local      *               255.255.0.0     U     0      0        0 wlan0
loopback        *               255.0.0.0       U     0      0        0 lo
default         router          0.0.0.0         UG    0      0        0 wlan0
In place of the "router", should be the name of your internet connected computer (or IP address). One oddball thing to check, is to make sure you don't have one of the computers named "localhost". If the other computer tries to reach it, it will resolve to itself instead.

I've found in the past that I needed to modprobe the "ip_conntrack" module before IP forwarding would work. Also make sure that you have the ip_nat module loaded (lsmod | grep ip_)

Last edited by jschiwal; 08-15-2007 at 11:11 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot share internet connection? drogatoo Linux - Networking 2 12-01-2006 05:24 PM
Share internet connection Braynid Linux - Newbie 12 05-27-2006 04:10 PM
Help! Cannot share my Internet connection... Domiriel Linux - Networking 2 11-25-2003 02:27 PM
how to share internet connection digihall7 Linux - Networking 2 09-23-2003 04:42 PM
How do I share the Internet connection? Valeria Linux - Networking 4 07-19-2003 12:28 PM


All times are GMT -5. The time now is 03:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration