Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2005 16:47:08 +0700
From:      Bachilo Dmitry <root@solink.ru>
To:        freebsd-hackers@freebsd.org
Subject:   Re: network settings
Message-ID:  <200509191647.09339.root@solink.ru>
In-Reply-To: <432E86D5.7000109@redry.net>
References:  <D8CDC6DA-840B-47BD-AFFC-D653AB21E280@redry.net> <200509190935.36658.root@solink.ru> <432E86D5.7000109@redry.net>

next in thread | previous in thread | raw e-mail | index | archive | help
=F7 =D3=CF=CF=C2=DD=C5=CE=C9=C9 =CF=D4 =F0=CF=CE=C5=C4=C5=CC=D8=CE=C9=CB 19=
 =F3=C5=CE=D4=D1=C2=D2=D8 2005 16:37 eoghan =CE=C1=D0=C9=D3=C1=CC(a):
> Bachilo Dmitry wrote:
>  > =F7 =D3=CF=CF=C2=DD=C5=CE=C9=C9 =CF=D4 =F7=CF=D3=CB=D2=C5=D3=C5=CE=D8=
=C5 18 =F3=C5=CE=D4=D1=C2=D2=D8 2005 22:10 eoghan =CE=C1=D0=C9=D3=C1=CC(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=3D"inet <your_ip> netmask <your netmask>"'
>  > defaultrouter=3D"<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=3D"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=3D"192.168.65.4"
gateway_enable=3D"YES"
hostname=3D"storage.solink.office"
ifconfig_rl0=3D"inet 192.168.1.1  netmask 255.255.255.0"
ifconfig_rl1=3D"inet 192.168.66.166 netmask 255.255.240.0"
inetd_enable=3D"YES"
keymap=3D"ru.koi8-r"
keyrate=3D"fast"
linux_enable=3D"YES"
mousechar_start=3D"3"
moused_enable=3D"YES"
saver=3D"logo"
scrnmap=3D"koi8-r2cp866"
sshd_enable=3D"YES"
usbd_enable=3D"YES"

And here is mine from notebook:

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


As you can see on the first one i heve static IP and default router specifi=
ed,=20
and on the second i have dynamic parameters.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509191647.09339.root>