changing from dhcp to static ip, changing hostname, etc.
Hi, I'm using FreeBsd 5.3 and I'm switching to a static ip, but am not sure of all the syntax. If not, here's what I had in my rc.conf. hostname=john ifconfig_fxp0=DHCP now I'm hoping to have a hostname of bagus.org gateway of 204.251.1.185 ip address of 204.251.1.186 netmask of 255.255.255.248 I'm guessing I need to change my resolve.conf, too. what does the 'search' line in there do? Any other considerations? Thanks, Bagus p.s. I can't for the life of me find a simple how-to-get-your-freebsd-box-online guide. The handbook seems to only have 11.3 Core Configuration which has a little bit about cluster configurations. What's up with that? I just want to get one box online! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing from dhcp to static ip, changing hostname, etc.
now I'm hoping to have a hostname of bagus.org gateway of 204.251.1.185 ip address of 204.251.1.186 netmask of 255.255.255.248 in /etc/rc.conf ifconfig_fxp0=inet 204.251.1.186 netmask 255.255.255.248 defaultrouter=204.251.1.185 hostname=bagus.org in /etc/resolv.conf dunno, what do you expect to have? olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing from dhcp to static ip, changing hostname, etc.
On 5/17/05, Bagus [EMAIL PROTECTED] wrote: Hi, I'm using FreeBsd 5.3 and I'm switching to a static ip, but am not sure of all the syntax. If not, here's what I had in my rc.conf. hostname=john ifconfig_fxp0=DHCP now I'm hoping to have a hostname of bagus.org gateway of 204.251.1.185 ip address of 204.251.1.186 netmask of 255.255.255.248 I'm guessing I need to change my resolve.conf, too. what does the 'search' line in there do? Any other considerations? Thanks, Bagus p.s. I can't for the life of me find a simple how-to-get-your-freebsd-box-online guide. The handbook seems to only have 11.3 Core Configuration which has a little bit about cluster configurations. What's up with that? I just want to get one box online! I use the following on my rc.conf: ifconfig_xl0=inet 192.168.200.8 netmask 255.255.255.0 defaultrouter=192.168.200.254 hostname=uirapuru.pinguim HTH. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing from dhcp to static ip, changing hostname, etc.
I forgot to say, my router is configured as a DNS proxy (probably the default in your setup, too), so I put its address on /etc/resolv.conf: nameserver 192.168.200.254 man resolv.conf should enlighten you about what the search option does; I don't need it, so my whole resolv.conf file consists of that single line above. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing from dhcp to static ip, changing hostname, etc.
This brings to mind a question, I've been wanting to ask: How does one get the system to read the rc.conf changes without rebooting the system? José de Paula Rodrigues wrote: On 5/17/05, Bagus [EMAIL PROTECTED] wrote: Hi, I'm using FreeBsd 5.3 and I'm switching to a static ip, but am not sure of all the syntax. If not, here's what I had in my rc.conf. hostname=john ifconfig_fxp0=DHCP now I'm hoping to have a hostname of bagus.org gateway of 204.251.1.185 ip address of 204.251.1.186 netmask of 255.255.255.248 I'm guessing I need to change my resolve.conf, too. what does the 'search' line in there do? Any other considerations? Thanks, Bagus p.s. I can't for the life of me find a simple how-to-get-your-freebsd-box-online guide. The handbook seems to only have 11.3 Core Configuration which has a little bit about cluster configurations. What's up with that? I just want to get one box online! I use the following on my rc.conf: ifconfig_xl0=inet 192.168.200.8 netmask 255.255.255.0 defaultrouter=192.168.200.254 hostname=uirapuru.pinguim HTH. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing from dhcp to static ip, changing hostname, etc.
On 5/17/05, Foo Ji-Haw [EMAIL PROTECTED] wrote: This brings to mind a question, I've been wanting to ask: How does one get the system to read the rc.conf changes without rebooting the system? Just restart the appropriate service (usually found in /etc/rc.d or /usr/local/etc/rc.d). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DHCP to Static
On Tue, May 11, 2004 at 06:11:20PM -0500, Bryan Cassidy wrote: Just went and got an extra NIC card, and ordered static ip address and upgraded my service. I have a quick question. If I am changing from dhcp to static is there anything that I need to do in order to take advantage of static or to setup static? Always had dhcp up until now. Not sure if I have to do anything to setup static. Thanks Well, you have to provide all of the configuration info usually supplied by DHCP yourself. That's not just the IP number and netmask, but includes such things as the default gateway, the IP numbers of the DNS servers you should be using, and static routes and probably a few other things as well. All of this stuff can be set by editing a few files in /etc -- /etc/resolv.conf for the DNS stuff (see resolv.conf(5) for instructions), and /etc/rc.conf for just about everything else (See rc.conf(5) and look at /etc/defaults/rc.conf for some examples). Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
Re: DHCP to Static
On Tue, May 11, 2004 at 06:11:20PM -0500, Bryan Cassidy wrote: Just went and got an extra NIC card, and ordered static ip address and upgraded my service. I have a quick question. If I am changing from dhcp to static is there anything that I need to do in order to take advantage of static or to setup static? Always had dhcp up until now. Not sure if I have to do anything to setup static. Thanks if you are getting your static ip-address from the dhcp server, it will just work. if not you will need something like this in your /etc/rc.conf: ifconfig_fxp0=inet 192.168.1.2 netmask 255.255.255.0 defaultrouter=192.168.1.1 or take a look at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html hth, toni -- Wer es einmal so weit gebracht hat, dass er nicht | toni at stderror dot at mehr irrt, der hat auch zu arbeiten aufgehoert| Toni Schmidbauer -- Max Planck | pgp0.pgp Description: PGP signature
DHCP to Static
Just went and got an extra NIC card, and ordered static ip address and upgraded my service. I have a quick question. If I am changing from dhcp to static is there anything that I need to do in order to take advantage of static or to setup static? Always had dhcp up until now. Not sure if I have to do anything to setup static. Thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]