[CentOS] Can't reach Internet
reynierpm at gmail.com
reynierpm at gmail.com
Sun Aug 31 21:20:20 UTC 2014
On Sun, Aug 31, 2014 at 4:44 PM, Ed Donahue III <liberaled at gmail.com> 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?
More information about the CentOS
mailing list