View previous topic :: View next topic |
Author |
Message |
igor948 Junior Member
Joined: 08 Dec 2010 Posts: 19
|
Posted: Wed Jan 17, 2018 4:10 am Post subject: Default Gateway/NIC issue |
|
|
I was working on my rack and tripped over the power cable unplugging my server. Upon booting back up, the server will not talk to the default gateway. I can ping the eth0 assigned IP address, but it will not ping the gateway. Everything appears to exist properly in the conf file. I've replaced cable and changed the switch port just in case. The proper setting appear in ifconfig. Any ideas? Or should I just re-install the OS? |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Sat Jan 20, 2018 5:50 pm Post subject: |
|
|
Sorry for the late reply, didn't see the new message earlier...
What's the output of "route"
Is your default gateway there?
Also output of "ifconfig -a" or "ip link"
You can try to re assign the gateway with
Code: | route add default gw <your-gateway> |
Can you ping the machine from outside...?
No need to reinstall anything by the way
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
igor948 Junior Member
Joined: 08 Dec 2010 Posts: 19
|
|
Back to top |
|
igor948 Junior Member
Joined: 08 Dec 2010 Posts: 19
|
Posted: Wed Jan 24, 2018 4:14 pm Post subject: |
|
|
I did the "route add" command, but nothing changed. |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Wed Jan 24, 2018 10:14 pm Post subject: |
|
|
ip link shows state down, meaning there is no link...
What "ethtool eth0" & "ethtool eth3" says?
Does it detect link?
You have only 2 network cards ? eth0 and eth3 can you confirm the hardware addresses?
Also you can confirm the correct ethernets from udev rules at
/etc/udev/rules.d/70-persistent-net.rules
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
igor948 Junior Member
Joined: 08 Dec 2010 Posts: 19
|
Posted: Wed Jan 24, 2018 11:56 pm Post subject: |
|
|
Thanks for the help. It appears that my motherboard just died. So I get to rebuild and re-install anyway. I appreciate your time |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Fri Jan 26, 2018 9:57 pm Post subject: |
|
|
If it's the NIC only, just replace the NIC, if it's the MB, well that's a bummer, I know the feelling I replace a lot of motherboards on mine, but as I said before no need to reinstall anything, just swap motherboards and boot SMS.
You need to edit /etc/udev/rules.d/70-persistent-net.rules only after booting, to rename eth device as it will shown as eth4 and eth5 probably since eth0 and eth3 are from old motherboard.
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
|