Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi mfrydl,

You should fix your DHCP server to give out the correct default router!

But if there is some other reason, try this:

1) do a "ifconfig" to find out the name of your network card. It will be something like "enp6s0" or "eno2".

2) as root, create and/or edit /etc/sysconfig/network and add your gateway and gatewaydev. Mine looks like:

FORWARD_IPV4=true
GATEWAY=xx.yy.aa.bb
GATEWAYDEV=name

change the IP and the device to your system's default router and name you found with the ifconfig command.

3) restart your interface:

ifdown name; ifup name

sub name for the name you found with ifconfig

You may have to reboot, but I don't think so.

HTH, -T