Date: Mon, 9 Dec 2002 23:57:55 -0800 (PST) From: Josh Brooks <user@mail.econolodgetulsa.com> To: freebsd-questions@freebsd.org Subject: how do I add this route without rebooting ? Message-ID: <20021209235113.N77087-100000@mail.econolodgetulsa.com>
next in thread | raw e-mail | index | archive | help
Hi, Currently my rc.conf looks like this: ifconfig_fxp0="inet 198.78.1.1 netmask 255.255.255.248" ifconfig_fxp1="inet 10.10.10.192 netmask 255.255.255.224" ifconfig_fxp1_alias0="inet 10.10.20.0 netmask 255.255.255.0" static_routes="route1 route2" route_route1="10.10.10.193 198.78.1.1" route_route2="10.10.20.1 198.78.1.1" So far so good. Now I want to add a new network, and I have changed it so it now looks like this: ifconfig_fxp0="inet 198.78.1.1 netmask 255.255.255.248" ifconfig_fxp1="inet 10.10.10.192 netmask 255.255.255.224" ifconfig_fxp1_alias0="inet 10.10.20.0 netmask 255.255.255.0" ifconfig_fxp1_alias1="inet 10.20.30.0 netmask 255.255.255.0" static_routes="route1 route2 route3" route_route1="10.10.10.193 198.78.1.1" route_route2="10.10.20.1 198.78.1.1" route_route3="10.20.30.1 198.78.1.1" So i have added another alias, and another route. Now, here's the question - in the past when I have done this, I have just rebooted the machine and let these settings in rc.conf do everything. This time, however I cannot reboot - I need to stay up and running. So, I add the new IP with: ifconfig fxp1 alias 10.20.30.0 netmask 255.255.255.0 but what is the command to do what I have listed above for rc.conf for adding the third static route ? thanks! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021209235113.N77087-100000>