So on a new install I was just sitting there and wondering .. what did I do wrong .. why do I keep getting those errors:
# ping lordvan.com
connect: Network is unreachable
then I realized something when checking the output of route -n
:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 enp96s0f0
192.168.0.254 0.0.0.0 255.255.255.255 UH 2 0 0 enp96s0f0
It should be:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.254 0.0.0.0 UG 2 0 0 enp96s0f0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 enp96s0f0
Turns out I had forgotten something quite simple, yet important: add "default via <router IP>"
to /etc/conf.d/net
.. So after changing it from
routes_enp96s0f0="192.168.0.254"
to
routes_enp96s0f0="default via 192.168.0.254"
and restarting the interface everything works just fine ;)
Silly mistake, easy fix .. can be a pain to realize what went wrong though .. maybe someone will make the same mistake and find this blog post hopefully to fix it faster than me ;)
Share on Twitter Share on Facebook
Comments
There are currently no comments
New Comment