Re: Can't reach Internet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, Aug 31, 2014 at 4:44 PM, Ed Donahue III <liberaled@xxxxxxxxx> wrote:

> $ route -n
>
> the one listed as gateway is your default route.
>


Ok, since my default route is bad,

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
0.0.0.0         192.168.3.1     0.0.0.0         UG    1024   0        0
eno33555200
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
eno16780032
192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0
eno33555200

I tried this two ways:

1) */etc/sysconfig/network*
 Add line GATEWAY=192.168.1.1

Restart the newtork service:
# service network restart
Restarting network (via systemctl):                        [  OK  ]

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
0.0.0.0         192.168.3.1     0.0.0.0         UG    1024   0        0
eno33555200
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
eno16780032
192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0
eno33555200

Still no changes

2) */etc/sysconfig/network-scripts/ifcfg-eno16777728*
 Add line GATEWAY=192.168.1.1

Restart the newtork service:
# service network restart
Restarting network (via systemctl):                        [  OK  ]

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
0.0.0.0         192.168.3.1     0.0.0.0         UG    1024   0        0
eno33555200
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
eno16780032
192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0
eno33555200

Still no changes

What I'm doing wrong? Every time I do a network change/configuration I need
to restart the complete OS in order changes to take effect, why?
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux