From owner-freebsd-questions@freebsd.org Mon Jan 7 16:07:01 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 B7BD31496F27 for ; Mon, 7 Jan 2019 16:07:00 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (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 C89326B719 for ; Mon, 7 Jan 2019 16:06:59 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mail-wm1-x330.google.com with SMTP id g67so1436222wmd.2 for ; Mon, 07 Jan 2019 08:06:59 -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=9Z//w6XAuG7Ulv/4U3XAaG+IL3SKggvahUxHGCoYAAE=; b=U/Hi92sXyZhrmK24EwUDl0Irqmvmc+NFClpj6xmCtjNZUftDSzEeykkp2Ag/akUsPI 7aJ8BSqhSDlBEpJUWBGV97XqRGoz66hPjGeG/PFK/d9+NWSGCiL1cjjWir3zN9n7I4Tq uSOxf9FCwXp/Vvnmtu82MZm6u7jmCNnqrsegetX92whB24My/ZUmRX5eZYLmgbKGOZ6g UlrkNWHSOi+/L+AfwTCMdL1nb6Jvp1aoZEez0drK7/iTzTIE2hNXC3bQhTn8n/9I5rsc rEp10LuG8FwGAxEzRMqFK0dV5MbAyMAFO6uP3zxuYdBZkSxjMJjRMMH4IMboxYmblxbp 3JPQ== 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=9Z//w6XAuG7Ulv/4U3XAaG+IL3SKggvahUxHGCoYAAE=; b=fvBelt8OV3WEuH7CDWyOzWyfanPj14vsG6ZlF5mMXYlg7nzD9kHKG6P9jtYTCVe9tS FjWFHVgZbxo35borPavja+V6weza/3xiqRRHEmD+qxZUUnzQdTMb8Gp3I9DCqeSS7MLY maB+Fqvs+o9Vs3Yoo85Vcvd0wUXuV4I2OKv8BBRNSCnW+Sh9IFXny5ngnzyBuyIK1Hym BOS3J8bv+hlSaNqsaEhWDBar1Qb2nei/YwSPOttG1tY4wY81UBjb2gAcv2ZYBhxyrGdV 61COa+joED1WHtQTAYuY5wjU5bzzGK1swjt6I1bTWT/BZtDjplCU9v5NWs/xXGYKn6jI gsJQ== X-Gm-Message-State: AJcUukcmMyAmfVb8+zPKEXOW66C0NqNZK2AGQqWql0BPkQZ5BcDR/pI4 T7zd2IKr3bcgb7IsGDYOmUjnJnprNNOL0hme4WVx9g== X-Google-Smtp-Source: ALg8bN4YNO6WKPLlf6aEU4KWZnEGcOdpvbF4tq+15i56RTp+zphiG8/K/a4r09sQ8/IDk5xl0UMWghs1OYr97XV4uBM= X-Received: by 2002:a7b:c24c:: with SMTP id b12mr8334458wmj.29.1546877218603; Mon, 07 Jan 2019 08:06:58 -0800 (PST) MIME-Version: 1.0 References: <1a466d730772d5ceb62ddfb204c92db5.squirrel@webmail.harte-lyne.ca> In-Reply-To: <1a466d730772d5ceb62ddfb204c92db5.squirrel@webmail.harte-lyne.ca> From: Odhiambo Washington Date: Mon, 7 Jan 2019 19:06:20 +0300 Message-ID: Subject: Re: FreeBSD-11.2 routing and networks To: "James B. Byrne" Cc: User Questions X-Rspamd-Queue-Id: C89326B719 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=U/Hi92sX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of odhiambo@gmail.com designates 2a00:1450:4864:20::330 as permitted sender) smtp.mailfrom=odhiambo@gmail.com X-Spamd-Result: default: False [-6.57 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,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.95)[-0.954,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)[0.3.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(-2.61)[ip: (-9.39), 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:07:01 -0000 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 -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-)