Re: Fedora27: Cannot set the default network route

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

 



On 02/03/18 00:29, Terry Barnaby wrote:
> I tied using "ip route" it had the same effect.

[root@f27k ~]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 enp0s3
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 enp0s3

[root@f27k ~]# route del default gw 192.168.1.1
[root@f27k ~]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 enp0s3

[root@f27k ~]# route add default netmask 255.255.255.0 gw 192.168.1.1
[root@f27k ~]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.1.1     255.255.255.0   UG        0 0          0 enp0s3
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 enp0s3


>
> On 02/02/18 14:21, Bill Shirley wrote:
>> Use 'ip' and add the dev parameter:
>> ip route add default 173.xxx.yyy.zzz dev ccast
>>
>> man route:
>> NOTE
>>        This program is obsolete. For replacement check ip route.
>>
>> Bill
>>
>> On 2/2/2018 8:42 AM, Terry Barnaby wrote:
>>> A strange one this. I was trying to change the default route of a machine for
>>> testing a different gateway.
>>>
>>> I ran:
>>>
>>> route del default gw <gateway1>
>>>
>>> route add default gw <gateway2>
>>>
>>> However the second command did not add the route and I could not add the old
>>> default route back. There were no errors on stdout or in /var/log/messages.
>>>
>>> Now I found that if there is already a default route you can add another one, so
>>> could do a:
>>>
>>> route add default gw <gateway2>
>>>
>>> route del default gw <gateway2>
>>>
>>> And these worked fine. It seems you cannot set a default route if there isn't one
>>> set.
>>>
>>> Any ideas ?
>>>
>>> _______________________________________________
>>> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
>>> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
>>
>>
>>
>> _______________________________________________
>> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
>> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
>
>
>
>
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx


-- 
A motto of mine is: When in doubt, try it out

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux