From nobody Sat May 25 05:34:49 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 4VmVwY0FRqz5MCCd for ; Sat, 25 May 2024 05:34:53 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VmVwX5TqCz4MLX for ; Sat, 25 May 2024 05:34:52 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-36dd6110186so30666015ab.0 for ; Fri, 24 May 2024 22:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716615291; x=1717220091; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:user-agent:mime-version:date:message-id:from:from:to:cc :subject:date:message-id:reply-to; bh=KO9WviEGI69OcaYS9UrH1hET1ofajLKidB2gs3YG5XE=; b=bUwsRM2KHFNpUoML8s9qQW4xNwtgYEy7yPJrdG5OfkI2eDLE41/aLap3wAcUJ14eSH R9PBtMw5ioC3lFOLhEP92gGmd9yOSEUm8xWq6AJVUUmy/Nj4CMnJrR3xNSFvln7MaTrc 4rrGpn5est8S8YtarL+PKblDtMkvVaGcPMtQeygxhAjJJKuGg2S3avwHgjHpDYL5MRdO bI5KwOkNFQ4uwNiJMkgChRDZWJQxz4gx+7pTKZAD+MXYUQYGwWQ/6JOPRwrUD060fzc6 E3VDLJqx/UZlxX/UsDLIiWSWpT4sCKR8Cjgn81lfufQed49zxs9S7mdz66TZRrfLh81Z +tJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716615291; x=1717220091; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:user-agent:mime-version:date:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KO9WviEGI69OcaYS9UrH1hET1ofajLKidB2gs3YG5XE=; b=rgo9tNA9dR+yAgmGduf4hD0vWgv1MnvCt8s6JERVy2Gl83s3FVSZe3KexYto6Ozj03 hikHpTVzmJcRJ2FX5rqD2iOMAl5tJOjQugBtppykERJjFks9a0puW3/spn7DfbxOMhox cqhjMOfM3OXBl2pOYk68EcxSsb9vw7E6uPbnum2GF9Q0VPb+SCaeRAOLZ8HdtcUrNylF gOyZXktrGEAGWy39ZbmquGm6Vcl97h7x/eRsz+f96761EUSwQFJ3rm5AK+J19y3bzFI6 c0TbuZ2nx4uVwNjqhvURvPWrieoCySxyHGg4mk8UDEkvbEd9YNFYdvxCI0eHSMBTBUOI SKXQ== X-Forwarded-Encrypted: i=1; AJvYcCWUOzSRBCHT2Gi7r3VwwJ2SIuJm8cCfJp34xXl7KoDJH5vS9SrJlcMLuh7M8fJaMLwkI1cd7du/oUiehn6qBOeDKDTAkurP8m/Xqapr4g== X-Gm-Message-State: AOJu0YxbMeyBKRGQAYOZ0pCmukZOAH9P1MzWI83NgTzFCO5wrtAIauEG xpdsjMpdRmKFqEItEXRckcyTCJI+HYQw+hVaWl0fsZsAKh+U62EinnJobQ== X-Google-Smtp-Source: AGHT+IGd963MyU3JocggCb//vI3yFAGdfiOhN2YshSiPSxB5W8uiqZ3D7cF2+pivKnqUF8Z40Huojg== X-Received: by 2002:a05:6e02:1b01:b0:36b:f8:e884 with SMTP id e9e14a558f8ab-3737b33b4e1mr48498395ab.20.1716615291580; Fri, 24 May 2024 22:34:51 -0700 (PDT) Received: from ?IPV6:2600:1015:a030:8fa9:b998:72dd:9d88:f140? ([2600:1015:a030:8fa9:b998:72dd:9d88:f140]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-37387789d90sm3983805ab.48.2024.05.24.22.34.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 May 2024 22:34:51 -0700 (PDT) From: Steven Friedrich X-Google-Original-From: Steven Friedrich Message-ID: <3ece9c84-00ff-4b54-b169-151f77aea06b@gmail.com> Date: Sat, 25 May 2024 01:34:49 -0400 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 User-Agent: Mozilla Thunderbird Subject: Re: fibs broke route add default? To: Souji Thenria , FreeBSD Questions References: <82df5e44-440d-481b-9999-ce8b9185e4ff@gmail.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4VmVwX5TqCz4MLX On 5/24/24 21:33, Souji Thenria wrote: > 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 Thanks for your reply. I am running FreeBSD 14.1 BETA 3, but with updates from git.  No jails involved. I was trying to get rtw88 wifi driver to work, I finally figured it out.  But in the process I noticed wlan0 wasn't creating a default route, like when I enable re0 or re1. I was trying this command on the host.  I read the man page and the handbook, but they show the command as I invoked it. Anyway, since I figured out the rc.conf entries, wlan0 gets an IP adx from dhcp and creates a default route.