From nobody Thu Feb 13 10:08:29 2025 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YtrVf5ns5z5nHJJ for ; Thu, 13 Feb 2025 10:08:42 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YtrVf3sh4z3SPD for ; Thu, 13 Feb 2025 10:08:42 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5de3c29e9b3so1066798a12.3 for ; Thu, 13 Feb 2025 02:08:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739441321; x=1740046121; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7/YRUUF4/vN6IWGNudVUOGpFSzQmka8nBIMUuHxL6zc=; b=Ix8WhFww6co6AtGeqniWS1u9DZimetAUvwyp+Dn0osc1pwIlNq4hg90Pm/sQsO53rL vQSLp+wA6GvgySCM8A7xX2VBIKbFNaNwudRnx6ffPrw/IBW7XXTMRUeLXpFlYaDbWjuf XwRjIt/480wy6seXFihy1razrAU4TgdZugSZetYYVU2PODM2nytRAkc2QLeNps4cL4LK NiJphShBL78PCsz4UohflJ7ihgZVFPhUq3F6PgBx6ja8gaV5PbyqkFNao9kITuAWv0nH fzgqZ8hUoHbHDB+lpdpRqIFK0njSd82Tqral9rx42ljy0lxUF3XmKDgXUuFi+oYhdAJF T0GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739441321; x=1740046121; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7/YRUUF4/vN6IWGNudVUOGpFSzQmka8nBIMUuHxL6zc=; b=ZfIBXiZmM0u+PmdlGoGyaFQJcrj81cTxqUIvWLj7+emsXvsuM8/l/FZAk9xfNR1hv6 pMsHPgKsxh2J9niVIC69ZCVtdOUBqixOFtDgDYyrV4HNW4BL0gUPNY8LDtEA3ichDmbz fPDitviAAqcRztXoyPDTE8hOvG1fZzv7KQxKn17lFODo7OnDdgaiwkMfo928w6XFswTn y3ScLeInh6zc0WUrKufp+xtmYHL9sELn9zoUDVEA9Thh4ezEuNRZy23BoOiqlOWdBxIY uzIRPhT9gaJkwUT+UxUo81l7sv5izgqmxaDouhWQdJhoBORZN3mbXlsxn40oOF5XiEEH qogA== X-Gm-Message-State: AOJu0YzGc51hoq8Dusc/ylv04f4YFbyGEI+S0eZx+PQVAIuazMax1OiH ixPqMEvyxh5I2gh2pqM2A02mYOikfFjjm6vK4cXpI5OavDHWvLA9BsoCzUgU32CW2jvSBFHN99o 3X8WM7Wyw6VVpDRf+q+M7v0LQMjLOTFw= X-Gm-Gg: ASbGnct7V9mwjxztC7WVOFZy58nZMq8zD18LRuQy/f3ko7V5PUgMzgXgXioj58fgXJJ GjnSnm0vzr9UjTT5pwAZqynR6gcheI10MJ74OdJuYv2E9oD6Nit6OZp3xCdO3twvtluuT1Zo= X-Google-Smtp-Source: AGHT+IGHQCXawTAxVni3Sz66xg0wkZZ1yZikXIajTWvRgjafvJjN1cYapL5Cq4R26VbU6vwemHP7vxO+tnG9v5EjbbE= X-Received: by 2002:a05:6402:5253:b0:5dc:1f35:56a with SMTP id 4fb4d7f45d1cf-5dec9d66e44mr1840494a12.5.1739441320743; Thu, 13 Feb 2025 02:08:40 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: <79B78816-3979-4110-87F6-B26BD0075B2B@sermon-archive.info> In-Reply-To: <79B78816-3979-4110-87F6-B26BD0075B2B@sermon-archive.info> From: Paul Procacci Date: Thu, 13 Feb 2025 05:08:29 -0500 X-Gm-Features: AWEUYZk6mxj6gMKuA1t0htWWV_OqR8wyaA_IN7A1_NA8z_oMi2jmw3myYtc6NY8 Message-ID: Subject: Re: Loss of default route To: Doug Hardie Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4YtrVf3sh4z3SPD X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] On Thu, Feb 13, 2025 at 3:36=E2=80=AFAM Doug Hardie wrote: > > I am setting up a new server and anytime that "service" is run, it delete= s 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 servi= ce 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=3D"10.0.1.1" > > If I kill ntpd manually and then start it manually without service, the d= efault 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 --=20 __________________ :(){ :|:& };: