From owner-freebsd-questions@freebsd.org Mon Jan 7 16:28:51 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 27DA11497795 for ; Mon, 7 Jan 2019 16:28:51 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2F70B6C539 for ; Mon, 7 Jan 2019 16:28:50 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mail-wm1-x342.google.com with SMTP id m1so1460616wml.2 for ; Mon, 07 Jan 2019 08:28:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KivQM6FwKNZ22nmJkKwhjbvqwbDxaqMGqpsSUFxdrpQ=; b=bllKRg7UvvfC3c5/2PgKXn7ni1YIxNEeB5cG5fg33GWXTTloTRAtqbuZJcJ+tjJACf 6viKz89m1LlKh5rxEtIF0YyJShlfMUQDEusGPxao8qe6uE8UHOd999jHj+lULwmEPJvd FRbJyihO2xnkTJ3pDwfmKIMSx+4luU+0KqJdrrr/1I2apVXf0FfRI5ZaptBT+Xfq7KnB pN3+05He7DmPvyGrylgVqOAOoN0QCSD8LMnAPQoqDAt4uWhoNwJM9oOAx7xUm80PeKYd 0zgT0OCTPebw7dvx7/e136vo2DuVGw67QE237Gn+KnFI8qiZbpdmewXTuNyXKlfh2Y1b g9RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KivQM6FwKNZ22nmJkKwhjbvqwbDxaqMGqpsSUFxdrpQ=; b=bagj6J+4GrEHa7j4okgAon/RwAKk8FIr0K5Q3VQZNW98CgR8J7IE8sjt4v/JhjQ5YW 1EQcfkIkNdJA0DXImLVALynWvmjxZ9Hjv+DPF/2Tlnq14zcrkjexmBg/ozNNaU0hrExY /m4cCivhVMEh3ubmbIbdnPMxssJzVwhperY4yirNtt/tqxvZJYvB8ti6WK4a5uFbGNCH yO6p9CWDzatbUcFWv2ZE8ltknujoU5W+7oXgMxKzIoS8Kvt6HMgn7pzMRq3bkiHHk3oF D2iJmJdq0q1J4ha/gfcaNkcGlbavKLzfzZU2nii6fMpYLX4gxyZVALCcRUvonejILfYx 1oWQ== X-Gm-Message-State: AJcUukf8VDw2rZI4z2e6+mewm9iztiAEZ7G0PowOHvT7/1JqPnnjvXYg CIWel/g6oFC8LPIFxFsMKQK1F6mGNlnuTMHxJ/g= X-Google-Smtp-Source: ALg8bN7dsKoM2iaHIJyQD9YzwU/1NdpVRidweDh1PaeVFY5WUo/zEs+N3LDVWgpY3zHd6gLaETLnrs3Xh5SZlugETIU= X-Received: by 2002:a7b:c4cb:: with SMTP id g11mr9275900wmk.149.1546878528845; Mon, 07 Jan 2019 08:28:48 -0800 (PST) MIME-Version: 1.0 References: <1a466d730772d5ceb62ddfb204c92db5.squirrel@webmail.harte-lyne.ca> <1e5a2c5bdc65f1cf8e2c5d12d6cec983.squirrel@webmail.harte-lyne.ca> In-Reply-To: <1e5a2c5bdc65f1cf8e2c5d12d6cec983.squirrel@webmail.harte-lyne.ca> From: Odhiambo Washington Date: Mon, 7 Jan 2019 19:28:10 +0300 Message-ID: Subject: Re: FreeBSD-11.2 routing and networks To: "James B. Byrne" Cc: User Questions X-Rspamd-Queue-Id: 2F70B6C539 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=bllKRg7U; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of odhiambo@gmail.com designates 2a00:1450:4864:20::342 as permitted sender) smtp.mailfrom=odhiambo@gmail.com X-Spamd-Result: default: False [-3.78 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.29)[-0.293,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.4.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-0.48)[ip: (1.25), ipnet: 2a00:1450::/32(-1.90), asn: 15169(-1.68), country: US(-0.08)]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2019 16:28:51 -0000 On Mon, 7 Jan 2019 at 19:18, James B. Byrne via freebsd-questions < freebsd-questions@freebsd.org> wrote: > > > On Mon, January 7, 2019 11:06, Odhiambo Washington wrote: > > On Mon, 7 Jan 2019 at 19:01, James B. Byrne via freebsd-questions < > > freebsd-questions@freebsd.org> wrote: > > > >> I am working on a FreeBSD-11.2p17 host where I must change the IP > >> address and gateway frequently to carry out tests. Following making > >> such changes I have tried resetting the network interfaces and > >> routing tables by use of the command: > >> > >> service netif restart && service routing restart & > >> > >> However, I have discovered that this does not have the desired > >> effect and I am reduced to restarting the host system to make > >> such changes. > >> > >> Is there something else I should be doing? > >> > >> > > When you are physically on the machine's console, this is easy: > > Assume your interface is called em0 > > > > > > ifconfig em0 down > > ifconfig em0 inet n.n.n.n netmask z.z.z.z up > > route add default y.y.y.y > > > > Then run your tests. > > When you reboot, the IP/MASK/ROUTE specified in rc.conf takes effect > > > > As it happens, for the moment this case is true, I do have console > access. However, the configuration testing that I am doing locally > will need to be applied to a remote host at some point, and the > console will not be an option. Is there no way to make FreeBSD reset > the network connection and routing tables remotely? I must say I don't understand what exactly you need to achieve with a remote system. I would create an alias address and route that statically for testing. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-)