Date: Mon, 7 Jan 2019 19:28:10 +0300 From: Odhiambo Washington <odhiambo@gmail.com> To: "James B. Byrne" <byrnejb@harte-lyne.ca> Cc: User Questions <freebsd-questions@freebsd.org> Subject: Re: FreeBSD-11.2 routing and networks Message-ID: <CAAdA2WMY9S_YNp752YU35Yub7hqUNi_cpYT-aj1mk12z7j=kJw@mail.gmail.com> In-Reply-To: <1e5a2c5bdc65f1cf8e2c5d12d6cec983.squirrel@webmail.harte-lyne.ca> References: <1a466d730772d5ceb62ddfb204c92db5.squirrel@webmail.harte-lyne.ca> <CAAdA2WOmxwN=JQw0=9X8KeVqbEWaMaMKv3gNHNhyE4SbR737uw@mail.gmail.com> <1e5a2c5bdc65f1cf8e2c5d12d6cec983.squirrel@webmail.harte-lyne.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
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 ^[^#] :-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WMY9S_YNp752YU35Yub7hqUNi_cpYT-aj1mk12z7j=kJw>
