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.
#dns-* options are implemented by the resolvconf package, if installed
dns-nameserver 192.168.2.1
As far as ifconfig is concerned, It appears to be working.
I fear i have set something up wrong, for web-browsing, Ping, and netstat all confirm i am not actually getting internet connectivity.
route -n prints:
Code:
Destination Gateway Genmask flags metric ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 Lo
0.0.0.0 192.168.1.118 0.0.0.0 UG 0 0 0 eth0
The IP address i am receiving the eth0 connection from is
correctly 192.168.2.1
It is coming to the gentoo box via a macbook pro with 'ethernet sharing' turned on as a service. So i assumed that i would put that IP address as the 'router' in this case, since the gentoo box is only being served a connection from the macbook pro, opposed to the actual router.
I am sorry. that was incorrect. I am not on the actual computer, so i am typing from a different station.
the current configuration has been simplified down to this /etc/conf.d/net file:
Then 192.168.2.1 should be the gateway, no?
What is connected to
192.168.1.118 ?
How is the setup from your network?
internet <=> 192.168.2.1 <=> 192.168.2.120
This doesn't seem correct
config_eth0=( "192.168.120/24" )
make sure you stay in the same subnet for all addresses.
why do you use
192.168.1.* and 192.168.2.*
192.168.1.118 was just the IP i picked for default gateway.
the gentoo box is receiving ethernet connection from a macbook pro which is sharing it's ethernet-connection. the IP the macbook pro gives to share ethernet with is 192.168.2.1
I was told in the #Gentoo-AMD IRC channel that this:
config_eth0=( "192.168.120/24" )
was a correct way for gentoo.
However, i am not 100% clear on how TCP/IP works sometimes. So are you saying that the client IP of 192.168.1.118 cannot use gateway 192.168.2.1?
thanks to your last post, i appear to have made progress, but still cannot use portage or web-browser. I changed static IP to
192.168.2.120, and now can ping the IP 192.168.2.1
additionally, I can also pick up the gentoo box on the IP-Scanner from the macbook pro server, which i have not been able to do ever, until now.
Also, i no longer think it is a bad NIC, because pinging 127.0.0.1 from the gentoo box.
It is quite odd that it seems all signal say this machine should be getting internet access, yet for all purposes it is still unable to.
this is an odd result, but pinging that IP you posted just returns a line like it is doing something, but the cursor doesnt complete a blink, it just freezes before it blinks once, and then it just times-out, but never gives any error message or confirmation of anything.
Is there a DNS server configured at 192.168.2.1 ?
what is the output from
Code:
telnet 192.168.2.1 53
Try to use the DNS server from your provider.
Do you have a connection from the other client on 192.168.1.119 ?
If yes, how is the network configured on that computer?
telnet must not be emerged or something. doesnt yield any results.
there is a dns server at 192.168.2.1, it is the IP address for ethernet-sharing on the macbook pro. 192.168.1.119 is the macbook pro's own IP address on the LAN.
the macbook pro is wirelessly connected to a wrt150N Linksys, which is connected to a comcast cable-internet router.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.