В сообщении от Понедельник 19 Сентябрь 2005 16:37 eoghan написал(a):
> Bachilo Dmitry wrote:
>  > В сообщении от Воскресенье 18 Сентябрь 2005 22:10 eoghan написал(a):
>  >
>  > You should write all the stuff to /etc/rc.conf (see man rc.conf for
>
> that), but
>
>  > in my opinion if you actually did /stand/sysinstall many times, your
>
> rc.conf
>
>  > "got cancer" if i can say so, because it writes the changes all the
>
> time in
>
>  > rc.conf not deleting previous. You should just write once something
>  > like:
>  >
>  > ifconfig_xl0="inet <your_ip> netmask <your netmask>"'
>  > defaultrouter="<your gateway>"
>  >
>  > and write down to the /etc/resolve.conf:
>  >
>  > nameserver <your ISP's DNS>
>  >
>  >
>  > or simply write down to /etc/rc.conf:
>  > ifconfig_xl0="DHCP"
>
> Thanks for the info. i did have a look through the rc.conf and it sure
> does look like its written the settings many times. Does anyone have a
> sample of a clean rc.conf? Also, my network assign ip's to each pc on
> the network. I noticed in the conf the ip was specified, which can
> change... is there any way of doing this in the rc.conf?
> Eoghan

Here's mine /etc/rc.conf from work's router (shorted):

defaultrouter="192.168.65.4"
gateway_enable="YES"
hostname="storage.solink.office"
ifconfig_rl0="inet 192.168.1.1  netmask 255.255.255.0"
ifconfig_rl1="inet 192.168.66.166 netmask 255.255.240.0"
inetd_enable="YES"
keymap="ru.koi8-r"
keyrate="fast"
linux_enable="YES"
mousechar_start="3"
moused_enable="YES"
saver="logo"
scrnmap="koi8-r2cp866"
sshd_enable="YES"
usbd_enable="YES"

And here is mine from notebook:

font8x14="cp866-8x14"
font8x16="cp866b-8x16"
font8x8="cp866-8x8"
hostname="notebook.bochasnet.academ.local"
ifconfig_rl0="DHCP"
keymap="ru.koi8-r"
keyrate="fast"
linux_enable="YES"
mousechar_start="3"
moused_enable="YES"
saver="logo"
scrnmap="koi8-r2cp866"
sshd_enable="YES"
usbd_enable="YES"


As you can see on the first one i heve static IP and default router specified, 
and on the second i have dynamic parameters.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to