route shows two default paths - how to remove one?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
But when next I boot up Linux, the removed default path is back. I want to remove this path as when I ping my router on 192.168.1.1, I get host unreachable:
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.106 icmp_seq=1 Destination Host Unreachable
From 192.168.1.106 icmp_seq=2 Destination Host Unreachable
From 192.168.1.106 icmp_seq=3 Destination Host Unreachable
From 192.168.1.106 icmp_seq=5 Destination Host Unreachable
From 192.168.1.106 icmp_seq=6 Destination Host Unreachable
From 192.168.1.106 icmp_seq=7 Destination Host Unreachable
Interestingly, .106 is the IP address I assigned to my eth0 NIC. This why I want to remove this path. However, AFTER executing 'route del default dev eth0', I still get the same PING error.
Only when I do 'ifconfig eth0 down' do I get the successful ping, i.e. a ping from .102.
This is not what I want to have to do however - I want all my devices up (and wlan0 on .102 as default). How do I manage this?
Check your /etc/sysconfig/network-scripts/ifcfg-eth0 file. if you find Gatway entry init, Remove that entry. just specified gatway entry in /etc/sysconfig/network. you might have entry in each of your ethXXX file in network-scripts and also in network file.
I don't have those files/folders, under Slackware 10.2.
I have sorted things by properly configuring /etc/rc.d/rc.inet1.conf, using dhcp on all NICs and assigning the IP addresses I need with DHCP_IPADDR[x]=.
The only problem now is that Linux pauses for an age when trying to DHCPCD eth0, since eth0 is not connected (but is from time to time, hence why I want it there), before progressing to DHCPCD wlan0.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.