From owner-freebsd-questions Sat Sep 25 8:33:18 1999 Delivered-To: freebsd-questions@freebsd.org Received: from unix.megared.net.mx (megamail.megared.com.mx [207.249.162.252]) by hub.freebsd.org (Postfix) with ESMTP id 7F6D814EDB for ; Sat, 25 Sep 1999 08:33:06 -0700 (PDT) (envelope-from ales@megared.net.mx) Received: from ales (ales.megared.net.mx [207.249.163.251]) by unix.megared.net.mx (8.9.3/8.9.3) with SMTP id KAA44770; Sat, 25 Sep 1999 10:30:57 -0500 (CDT) (envelope-from ales@megared.net.mx) Message-ID: <014901bf076b$1d90fec0$fba3f9cf@megared.net.mx> Reply-To: "Alejandro Ramirez" From: "Alejandro Ramirez" To: "Doug" , "John" Cc: References: <4.1.19990921215707.0095e2e0@unix01.voicenet.com> <4.1.19990924200720.0097a430@unix01.voicenet.com> Subject: RE: /etc/rc.conf restart Date: Sat, 25 Sep 1999 10:31:58 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, If you want to change the netmask of an interface on your server, you can try the ifconfig command and make changes on the fly, test them, and if they work as you thought, make them permanent by modifying the /etc/rc.conf file ex: ifconfig xl0 inet 10.10.9.125 netmask 255.255.255.248 and dont forget to make the propper changes to your routing table, in case you need them. netstat -r to see your routing table, "man route" to see how to make propper changes to the routing table. Have Fun... Ales ----- Original Message ----- From: John To: Doug Cc: Sent: Friday, September 24, 1999 7:09 PM Subject: Re: /etc/rc.conf restart > This is exactly the kind of answer I was actually looking for... the whole > point of what I was trying to achieve was to make changes, have them > recognized, all without bumping users off the system, and all without > having to run the hardware through repeated reboots if my changes failed... > > For more details, what I was curious about trying to do was to add a > netmask to the lo0 line in the file to see what affect that would have. > But, I wanted the system to read the change without a reboot if possible. > Perhaps you might even be able to comment on if this is even possible? I'm > actually trying to trouble shoot a new install of samba, but I'm not giving > up on trying to cure it myself yet =) > > Thanks for the help!!! --John > > At 12:42 PM 9/22/99 -0700, Doug wrote: > >On Tue, 21 Sep 1999, John wrote: > > > >> Welcome to the next of my "it seems like the answer would be so simple" > >> questions... > >> > >> Is there a way to get the system to re-read /etc/rc.conf without a > >> shutdown/reboot? > > > > Given that none of the answers you've had so far really addressed > >your question, I'll give it a stab. The correct answer is, "It depends." > >Namely, it depends on what you want re-read. There are certain things that > >can only be done at boot time, and for those the "drop to single user and > >restart" option is fine, but that's just a fancy way of telling you to > >reboot your system since you can't do any (ok, not much) useful work in > >single user mode. > > > > What you really want to do is find out how the system handles the > >option(s) you are trying to reset during the boot process. For that the > >easiest way to learn is to do: > > > >cd /etc > >grep "thing you want to know about" * > > > >This will tell you what script that item is handled in, and show you how > >the system deals with it. Then in almost all cases you can figure out how > >you can reset that option without having to reboot. It may take some > >detective work, and perhaps some trial and error, but it's rarely > >_necessary_ to reboot a freebsd system just to change a few options, and > >it's frequently not desirable to do so either. > > > > If after you've struggled with it for a while you still can't > >figure it out, ask about the options you need help with here, and > >generally someone who is knowledgeable about it can help. Include details > >of where/how you looked, and what you tried so that the person answering > >can avoid duplicating your efforts. > > > >Hope this helps, > > > >Doug > >-- > >"My mama told me, my mama said, 'don't cry.' She said, 'you're too young a man > >to have as many women you got.' I looked at my mother dear and didn't even > >crack a smile. I said, 'If women kill me, I don't mind dyin!'" > > > > - John Belushi as "Joliet" Jake Blues, "I Don't Know" > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message