From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 19 09:47:15 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2211816A41F for ; Mon, 19 Sep 2005 09:47:15 +0000 (GMT) (envelope-from root@solink.ru) Received: from ns.itam.nsc.ru (ns.itam.nsc.ru [194.226.179.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6327043D45 for ; Mon, 19 Sep 2005 09:47:13 +0000 (GMT) (envelope-from root@solink.ru) Received: from site.lan (itut.itam.nsc.ru [194.226.179.2]) by ns.itam.nsc.ru (8.13.1/8.12.8) with ESMTP id j8J9lBwt017750 for ; Mon, 19 Sep 2005 16:47:11 +0700 Received: from bocha.solink.office ([192.168.66.166]) (authenticated bits=0) by site.lan (8.12.11/8.12.11) with ESMTP id j8J9l6sm028268 for ; Mon, 19 Sep 2005 16:47:06 +0700 From: Bachilo Dmitry Organization: SoLink To: freebsd-hackers@freebsd.org Date: Mon, 19 Sep 2005 16:47:08 +0700 User-Agent: KMail/1.8 References: <200509190935.36658.root@solink.ru> <432E86D5.7000109@redry.net> In-Reply-To: <432E86D5.7000109@redry.net> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200509191647.09339.root@solink.ru> Subject: Re: network settings X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2005 09:47:15 -0000 =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 netmask "' > > defaultrouter=3D"" > > > > and write down to the /etc/resolve.conf: > > > > nameserver > > > > > > 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.