From nobody Sat May 25 01:33:45 2024 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 4VmPZY1zQKz5LmVT for ; Sat, 25 May 2024 01:33:57 +0000 (UTC) (envelope-from mail@souji-thenria.net) Received: from alisa.souji-thenria.net (alisa.souji-thenria.net [188.68.37.165]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4VmPZW5f6zz56Yy for ; Sat, 25 May 2024 01:33:55 +0000 (UTC) (envelope-from mail@souji-thenria.net) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=souji-thenria.net; s=20231116; t=1716600826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n4Jt29VZsI5g7x2Up5qvDfmrOweMubjJYHr0Kn+1+p8=; b=L0VlWU85RvSWYggEvUfhwVAv1mmxKWptikEhlAOWPG3OpwygwRUjftRiKiXGw7dMbKXOIO MIFjjJxvrXeocCdAf6R1MKRp9IPpA1i1EklqH67LfM0EQji27Axa22IEQbppld0F/MDkuQ nXLFj2poc1V0NxZmq1zQ7uPdWs6sXEE4rbKtuI+jkyRj5NC3D0pF3rAh2Y02p614cyGBGX JiyY5s6JoD4GkGlJzEu3uS41Ee3MUbnbC9EDGFCTjk59wFo62sSlgffr4H10e9fpfCgYMa 3sHcTUCz5pWNbtz08fW/1nOT0FKPI8oBmLW/y6j4/OzPY8UidIX/1z+GgwcFP1lqqcgagE QjR/CK5X9p9NZW+O+MEgNkjm816m/RALX1CVULAQQtrLA56m0tY34v3E4oKBhNkuX5l0kp eY2JHmjv9cx56upWAsYhNxA3Dunda1S7EiNnA93OtAHnIs25DukF+2epCfKrtE2LNoWbmB rdR0x8+rZEd1kz+KNj0iGQGo5jBBxtyjVAxK1tmhOPyVSLlM1kIrz5YaZc7/++X7y9MNmh +UzsL2giX+FfkA+nTKkVM5cYYY2e5mOzm+coLqvgiYYSLPeS6HZHXOCE8Kd1J6viD4QDe8 1fBJnHHkbnyYK7LkRGoyox/mB0UybAjmA0Tdp8m/+k6HLqnsIYWOs= Received: by alisa.souji-thenria.net (OpenSMTPD) with ESMTPSA id 02d2e358 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 25 May 2024 03:33:46 +0200 (CEST) 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=Flowed Date: Sat, 25 May 2024 02:33:45 +0100 Message-Id: Subject: Re: fibs broke route add default? From: "Souji Thenria" To: "Steven Friedrich" , "FreeBSD Questions" X-Mailer: aerc 0.17.0 References: <82df5e44-440d-481b-9999-ce8b9185e4ff@gmail.com> In-Reply-To: <82df5e44-440d-481b-9999-ce8b9185e4ff@gmail.com> 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:197540, ipnet:188.68.32.0/20, country:DE] X-Rspamd-Queue-Id: 4VmPZW5f6zz56Yy On Sat May 25, 2024 at 2:08 AM BST, Steven Friedrich wrote: > route add default 192.168.1.1 returns an error: > > add net default: gateway 192.168.1.1 fib 0: Invalid argument > > This command is taken from the route man page. > > How can I fix this? Hi Steven, You need to provide a bit more context/information like: What version of FreeBSD are you using? In what kind of environment (e.g. on the host itself or in a jail) are you executing the command? If you run the command from inside a jail, you would need to use VNET; otherwise, you can't edit the routes. Regards, Souji