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 just managed to install my new 2.6.13 kernel on my Slackware box, but, just like before, my internet still fails to work. I have 2 NICs in my PC:
On eth0 a NIC which works fine, if I plug that one in, run netconfig and put in the desired information.
On eth1 a Marvell Yukon NIC (1GB, supported by the Kernel). If I switch to that one, run netconfig, it fails to boot.
I downloaded a dhcp package and configured the client, I think, using some tuto's I googled for.
So, when the dhcp package starts up during boot, it tells me it receives the IP address 192.168.1.1...lol. Ofcourse, it doesn't work.
These are some files that you might need to help me out:
pazkaw:
If you have eth0 & eth1, both on the same ip subnet, then slack will try to use eth0 by default. This is proven by looking at your routing tables.
Please post output of
Code:
route -n
So, they may in fact both be working, however, when you move the ethernet cable from eth0 to eth1, and ping the router/internet, it's trying to transmit those packets out your eth0 interface, because that's what the routing table is telling it to do.
To add a second Nic card to a system, running Slackware, folow these steps:
1. Add the card and boot the system.
2. go to /etc/rc.d/rc.inet1.conf and edit the file.
...
Added the card (it already was, but did it again to make sure...can't hurt) and edited the rc.inet1.conf file as described. No luck...
Quote:
Originally Posted by WindowBreaker
pazkaw:
If you have eth0 & eth1, both on the same ip subnet, then slack will try to use eth0 by default. This is proven by looking at your routing tables.
Please post output of
Code:
Code:
route -n
So, they may in fact both be working, however, when you move the ethernet cable from eth0 to eth1, and ping the router/internet, it's trying to transmit those packets out your eth0 interface, because that's what the routing table is telling it to do.
Hmmm could be the problem, and seems a very reasonable explanation... this is the output of the route -n command you asked for:
Code:
Kernel IP routing table
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.1 0.0.0.0 UG 0 0 0 eth0
Don't know whether this output is good or bad... Uhmm... please help!
Notice how "eth0" is listed under the Iface column of the "route -n" output? If there was also an entry for eth1 as there should be, I believe (not sure) it would try to use both when pinging. That means as it is, linux will only send packets destined for that destination (192.168.1.0 network) out thru the eth0 interface.
Do the following:
Code:
ifconfig eth1 <ip.add.re.ss>
Now, if
Code:
route -n
still doesn't show an ethry, with eth1 as the Iface, then do:
Code:
route add -net 192.168.1.0 dev eth1
to add the route manually.
Confirm the route was added with:
Code:
route -n
Then move ethernet cable to eth1, and
ping <router.ip.add.ress>
If still not working, then post output of "route -n" after adding the above route.
will try to use eth0 for all external access. It will forward all packets destined for the Internet, to your router/gateway (192.168.1.1), thru interface eth0. If you unplugged eth0 and want to use eth1 instead, you need to update your default route, and change the interface to eth1.
Optional:
Update:
Sth. else: Every time I shutdown my machine, it complains "SIOCADDRT: File already exists"...think it's a message from my DHCP server package I installed, but I'm not sure.
Also, every time I reboot my machine, the previous made configurations to route -n disappear, and I have to do the process as described by WindowBreaker ^^^ all over again.
When I try to add 192.168.1.0 instead of 192.168.1.1 as default gateway, it complains: "SIOCADDRT: Network is unreachable"...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.