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'm pretty much a Linux newb, so please bear with me - i just installed Slackware 10.0 on a box that's basically a bunch of parts cannibalized from elsewhere, so i can't really give hugely detailed specs. but i can detail the problem: in a nutshell, ethernet is not working. i don't even care about getting to the internet, i just want to be on my local network so my other boxes can see it. here's the details:
my router is 192.168.1.1
in initial setup, I set a static IP of 192.168.1.104, netmask 255.255.255.0
when i initially ran "ifconfig eth0," it showed the device as up, with an IP of 192.168.1.104 and broacast of 192.168.1.255
ran "ping 192.168.1.1" - got a "network is unreachable" error
then ran netconfig, and told it to use DHCP - then rebooted
tried to ping the router again, as well as another box on the network - still same "unreachable" result
here's the results of "route" (after having changed back to static IP) -
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 1 0 0 eth0
hopefully that's enough info, let me know if you need more. and thanks in advance - i've been trying to figure it out on my own, and am obviously missing something.
If your network has you set up with a static IP, why did you choose DHCP in netconfig? Try running "netconfig" as root again and choosing "Static IP", then entering all of you information. (It will ask for your IP, Gateway, and Netmask, if memory serves.)
no, the system was not assigned an IP by DHCP. Tried swapping the cable for a known good one - still no dice.
MikeZila:
i tried DHCP to see if i could get assigned an IP by my router (it's a Linksys that handles DHCP for my home network). the way the network's set up, the desktops have static IPs that are below the range that's assigned as DHCP (desktops are all 100-110, DHCP starts at 111). DHCP is used for laptops and such that plug and unplug from the network frequently.
but i tried "netconfig" again, picked "Static IP" and entered all my info - still nothing.
could it have something to do with a driver? i know nothing about drivers in Linux, but the ethernet is built into the motherboard if that makes any difference.
eth0: VIA 6103 PHY transciever found at address 1.
eth0: Using transciever found at address 1 as default
eth0: SiS 900 PCI Fast Ethernet at 0xd400, IRQ 3, 00:07:95:32:df:e2.
eth0: Media Link On 100mbps full-duplex
well, i knew this was going to happen - just for fun, i bypassed the switch i had it connected to, and connected the box straight to the router. bingo - everything works. DNS even works. i totally wish i'd checked this like a week ago - sorry for wasting everyone's time, but thank you to those who tried to help this moron .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.