Hi there, I searched a way to activate new interface/network settings after changes to /etc/rc.conf (defaultrouter, interface aliases, etc.). I found the /etc/netstart script, which does what i want. In the script i found a comment, which says, that this script is obsoleted by /etc/rc.network, but i (well, actually locate) can't find this file anywhere. I then browsed the cvs to search for this script. I found in src/etc/rc.d/ the "network" script, which seems able to handle my network reconfiguration demands. Yet, bravely copying it to /etc/rc.d and executing it, does not work. It produces warnings like: WARNING: $flushroutes is not set properly - see rc.conf(5). or WARNING: $auto_ifconfig is not set properly - see rc.conf(5) and the default route is not set. (yeah, i read rc.conf as advised, but i still have no clue where to set this variables). So, maybe there is a cause this script is not installed? What is the correct way to reconfigure the network (besides ifconfig and friends :)? the system: FreeBSD freebsd.local 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #1: Sat Mar 26 19:24:16 CET 2005 root@freebsd.local:/usr/obj/usr/src/sys/ATLAS i386 thanks in advance -- Martin
On Saturday 26 March 2005 21:03, Martin Jakob wrote:> I searched a way to activate new interface/network settings after changes > to /etc/rc.conf (defaultrouter, interface aliases, etc.). I found the > /etc/netstart script, which does what i want. In the script i found a > comment, which says, that this script is obsoleted by /etc/rc.network, but > i (well, actually locate) can't find this file anywhere. > > I then browsed the cvs to search for this script. > I found in src/etc/rc.d/ the "network" script, which seems able to handle > my network reconfiguration demands. Yet, bravely copying it to /etc/rc.d > and executing it, does not work. It produces warnings like: > WARNING: $flushroutes is not set properly - see rc.conf(5). or > WARNING: $auto_ifconfig is not set properly - see rc.conf(5) > and the default route is not set. > (yeah, i read rc.conf as advised, but i still have no clue where to set > this variables). > So, maybe there is a cause this script is not installed?It seems that your /etc/defaults/rc.conf is outdated - as is your /etc/rc.d collection. You might want to try to update /etc with the help of mergemaster(8). Be sure to pass the -i flag to install missing files in /etc/rc.d> What is the correct way to reconfigure the network (besides ifconfig and > friends :)? > > the system: > FreeBSD freebsd.local 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #1: Sat Mar 26 > 19:24:16 CET 2005 root@freebsd.local:/usr/obj/usr/src/sys/ATLAS i386-- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050326/132e912d/attachment.bin
Hi Max, thanks for your answer.> > my network reconfiguration demands. Yet, bravely copying it to /etc/rc.d > > and executing it, does not work. It produces warnings like: > > WARNING: $flushroutes is not set properly - see rc.conf(5). or > > WARNING: $auto_ifconfig is not set properly - see rc.conf(5) > > and the default route is not set. > > (yeah, i read rc.conf as advised, but i still have no clue where to set > > this variables). > > So, maybe there is a cause this script is not installed? > > It seems that your /etc/defaults/rc.conf is outdated - as is your > /etc/rc.d > collection. You might want to try to update /etc with the help of > mergemaster(8). Be sure to pass the -i flag to install missing files > in /etc/rc.d >Yesterday i cvsuped (RELENG_5) and started a "make world". I also let run "mergemaster -i", it updated some files and installed the new file "rc.bsdextended". To rule out a someway mangled source tree i made a clean checkout of "/usr/src" and build the world again, but "/etc/rc.d/network" was not installed. I looked in cvs again and found, that this script is not linked to the build in "/usr/src/etc/rc.d/Makefile". In Fri Aug 29 13:25:08 2003 there was also some cleaning up in this file (rev 1.25), the scripts "network1" "network2" "network3" were removed. I dont know if this actual "/etc/rc.d/network" script is an artifact of this clean sweep, but the latest changes to this file were made after August 2003, so i dont think so. As for the "/etc/defaults/rc.conf" file, i have Revision 1.212.2.13 which is the latest version tagged as RELENG_5. Also using Revision 1.243 the script failed with theses warnings, and i dont have a idea where to set these variables. Is actually someone using the script "/etc/rc.d/network"? Greetings Martin
Dag-Erling Smørgrav
2005-Mar-31 06:49 UTC
file /usr/src/etc/rc.d/network is not installed
"Martin Jakob" <mjct@buerotiger.de> writes:> I searched a way to activate new interface/network settings after changes to > /etc/rc.conf (defaultrouter, interface aliases, etc.). I found the > /etc/netstart script, which does what i want. In the script i found a > comment, which says, that this script is obsoleted by /etc/rc.network, but i > (well, actually locate) can't find this file anywhere.The comment is incorrect. Just ignore it and run /etc/netstart. DES -- Dag-Erling Sm?rgrav - des@des.no