"Default" ethernet port not responding to SSH any more
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
"Default" ethernet port not responding to SSH any more
I have 2 NIC's on my server. I just recompiled the stock kernel and since then eth0, i cannot connect to the server via SSH, WINSCP, Webmin, or VMWARE console server. I can however do it on eth1. eth0 ip addy is what i added to dns and thats why i was using eth0. Both are static, and did not swap IP's. DNS still has the ip for eth0 and the dns name is pingable from another machine.
Im really stumped as to why this is happenning... would have figured if SSH port is listening that it would be listening on all eth's
Another thing i've noticed is that eth1 has become my "default" ethernet port. everything by default is going in or out of that port now instead of eth0.
Another thing i've noticed is that eth1 has become my "default" ethernet port. everything by default is going in or out of that port now instead of eth0.
Any idea's why that might be happening?
it could be "default" just because the other one doesn't work, is the right module loaded? i have had problems if the 2 NIC's are same model and uses the same driver.
what does "iptables -L" say?
it could be "default" just because the other one doesn't work, is the right module loaded? i have had problems if the 2 NIC's are same model and uses the same driver.
what does "iptables -L" say?
Crap, i didn't even think about that. Yes they are the same nic and use the same driver. im guessing there is no way around which one it decides as default to use at that point eh?
Not sure how to output the results of iptables-save. i was under the impression thats how you saved your iptables settings.
iptables-save fills standart output with iptables rules. If you run it alone with no parameters or redirections, you will get list of your rules. (practically the same result for this time as iptables -L)
But considering the message from putty, I think that there may be a problem with sshd.
Regarding the "same driver" issue - check lsmod, it will tell you, which driver is used. If you use some kind of hotplug manager, the modules should be loaded correctly and when you see the NICs in ifconfig, they must be loaded correctly.
iptables is not the problem.
i don't realy remember how it went with those 2 NIC's, only remeber that there were some strange problems. there is probably a way to get around this, unfortunately i can't help you.
I think i spoke to soon, but i think i am on the right track.
Once i changed the default gw it did work and then it stopped working. default gateway is still there but i still have to use the other nic's ip to connect via ssh.
some investigating i've found this, but not sure if it is relevant.
route table from slack 12 box i'm having issues with
Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
localnet * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default 10.30.0.1 0.0.0.0 UG 0 0 0 eth0
route table from slack 11 box.
Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
10.30.0.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 10.30.0.1 0.0.0.0 UG 1 0 0 eth0
granted i don't have 2 nic's in the second machine, but i do find it weird that instead of localnet it says 10.30.0.0. not sure if this is an update from 11 to 12. i've deleted the route for eth0 completely and readded it, with no changes.
I have noticed that with Slackware 12, if you have more than one NIC in a box, then the assignment of eth0 and eth1 (etc) can change from one reboot to the next. I suspect that this is due to different timings of the cards becoming available on the bus after initialising.
The solution is to assign eth0, eth1 etc to MAC addresses in /etc/udev/rules.d/network-devices.rules.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.