Re: Loss of default route
- In reply to: Doug Hardie : "Loss of default route"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 13 Feb 2025 10:08:29 UTC
On Thu, Feb 13, 2025 at 3:36 AM Doug Hardie <bc979@lafn.org> wrote: > > I am setting up a new server and anytime that "service" is run, it deletes the default route. I don't have this problem on any other server. Using 14.2-RELEASE. The network interface has a fixed IP address. There are no indications in messages of issues with the network interface. Even a service xxx stop where xxx does not exist removes the default route. > > root@checkout:/home/doug # netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Netif Expire > default 10.0.1.1 UGS ue0 > 10.0.0.0/16 link#2 U ue0 > 10.0.1.212 link#1 UHS lo0 > 127.0.0.1 link#1 UH lo0 > > root@checkout:/home/doug # service ntp stop > ntp does not exist in /etc/rc.d or the local startup > directories (/usr/local/etc/rc.d), or is not executable > root@checkout:/home/doug # !net > netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Netif Expire > 10.0.0.0/16 link#2 U ue0 > 10.0.1.212 link#1 UHS lo0 > 127.0.0.1 link#1 UH lo0 > > > /etc/rc.conf includes: > defaultrouter="10.0.1.1" > > If I kill ntpd manually and then start it manually without service, the default route remains and ntpd finds its peers. > > -- Doug > > Anything in your logs or the kernel buffer? The default route disappearing is akin to an interface disappearing and reappearing. Outside of that, /usr/sbin/service is a shell script. You can add a '-x' to the shebang and record its output to see specifically what it's doing. ~Paul -- __________________ :(){ :|:& };: