From owner-freebsd-questions@FreeBSD.ORG Thu Apr 26 20:02:29 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7A66E16A408 for ; Thu, 26 Apr 2007 20:02:29 +0000 (UTC) (envelope-from beech@alaskaparadise.com) Received: from stargate.alaskaparadise.com (7-137-58-66.gci.net [66.58.137.7]) by mx1.freebsd.org (Postfix) with ESMTP id 02BB113C45A for ; Thu, 26 Apr 2007 20:02:27 +0000 (UTC) (envelope-from beech@alaskaparadise.com) Received: from localhost (localhost [127.0.0.1]) by stargate.alaskaparadise.com (Postfix) with ESMTP id 3C2DC7DC7; Thu, 26 Apr 2007 12:02:27 -0800 (AKDT) From: Beech Rintoul Organization: FreeBSD Port Maintainer To: freebsd-questions@freebsd.org Date: Thu, 26 Apr 2007 12:02:20 -0800 User-Agent: KMail/1.9.6 References: <50606.9375.qm@web58110.mail.re3.yahoo.com> In-Reply-To: <50606.9375.qm@web58110.mail.re3.yahoo.com> X-Face: jC2w\k*Q1\0DA2Q0Eh&BrP/Rt2M,^2O#R07VoT98m*>miQF9%Bi9vy`F6cPjwEe?m,)=?utf-8?q?2=0A=09X=3FM=5C=3AOE9QgZ?="xT3/n3,3MJ7N=Cfkmi%f(w^~X"SUxn>; 27NO; C+)g[7J`$G*SN>{<=?utf-8?q?O=3Bg7=7C=0A=09o=7D=265A=5D4?=@7D`=Eb@Zs1Ln814?]|k@'bG=.Ca"[|8+_.OsNAo8!#?4u MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704261202.23459.beech@alaskaparadise.com> Cc: Subject: Re: DHCP/NIC IP address contention issues X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: beech@alaskaparadise.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2007 20:02:29 -0000 On Thursday 26 April 2007, L Goodwin said: > --- Beech Rintoul wrote: > > > Beech Rintoul wrote: On > > > > Wednesday 25 > > > > April 2007, L Goodwin said: > > > > Will someone please lead me in the right > > > > direction towards > > > > > > resolving the following network issue? > > > > > > > > I just added a FreeBSD server to a LAN that > > > > consists of a router > > > > > > and 2 pc's, one of which is running Windows XP > > > > Pro and the other > > > > > > Windows Vista. The lan is connected to the > > > > Internet via a cable > > > > > > modem that goes through the router. The router > > > > is set up to be > > > > > > the DHCP server. Now it is being assigned a > > > > non-unique IP > > > > > > address. > > > > > > > > Before adding the FreeBSD box to the mix, > > > > everybody was getting > > > > > > along fine (unique IP addresses were dynamically > > > > assigned to the > > > > > > pc's). > > > > > > > > I connected the FreeBSD box to the router, > > > > selected "Configure > > > > > > additional network interfaces" from the > > > > sysinstall menu, selected > > > > > > "fxp0 Intel EtherExpress Pro/100B PCI Fast > > > > Ethernet card" from > > > > > > the top of the list and clicked "OK" to prompts > > > > to try to > > > > > > configure IPv6 and DCHP. When done, the Network > > > > Configuration > > > > > > dialog contained the following values (which I > > > > did not alter): > > > > Host: dhcppc0 > > > > Domain: (the cable provider's domain name) > > > > IPv4 Gateway: 192.168.1.1 > > > > Name server: (IP address of ISP's name server) > > > > Configuration for Interface fxp0: > > > > IPv4 Address: 192.168.1.33 > > > > Netmask: 255.255.255.0 > > > > Extra options: (blank) > > > > > > > > Note that the Host field does not match the > > > > hostname of the > > > > > > FreeBSD box, which is named "SERVER" (real > > > > creative, huh?). I > > > > > > guess I should have changed the Host field to > > > > "SERVER", eh? > > > > > > Then I got the following console messages on the > > > > FreeBSD server: > > > > 1) "Apr 25 13:33:19 SERVER kernel: arp > > > > 00:40:f4:47:fb:8e is using > > > > > > my IP address xxx.xxx.x.xx!" 2) "dhcppc0# Apr 25 > > > > 14:07:05 dhcpp0 > > > > > > kernel: arp: 00:40:f4:47:fb:8e is using my IP > > > > address > > > > > > xxx.xxx.x.xx!" > > > > > > > > I ran "ipconfig /all" on both Windows boxes and > > > > found that the > > > > > > FreeBSD box is assigned the same IP address as > > > > the Windows XP box > > > > > > (which had that IP address FIRST). Why is the > > > > FreeBSD box being > > > > > > assigned a non-unique IP address? > > > > > > 1. Check that your router's dhcp server is set up > > > > properly. > > > > > 2. Check that the windows box is not set up with a > > > > static ip. The > > > > > box could be hard coded to an ip address and your > > > > dhcp server > > > > > thinks the lease is free. > > > > > > Other than that you need to supply more info. > > > > > > Beech > > > > > > On Wednesday 25 April 2007, L Goodwin said: > > > I'll double-check the things you listed. If you > > > > can tell me what > > > > > additional info I need to supply and where to get > > > > it, I'll be happy > > > > > to oblige. Thanks... > > > > On the XP box what does the output of 'ipconfig > > /all' tell you about the DHCP lease? > > Lease Obtained: Thursday, April 26, 2007 7:36:42 AM > Lease Expires: Sunday, April 29, 2007 7:36:42 AM > (also says "Dhcp Enabled: Yes" and "Autoconfiguration > enabled: Yes") > Given these settings, I don't think I need to run > ipconfig /renew on this system... > > Note: I wasn't able to get on the Vista box to get > current ipconfig /all output. An older printout shows > "DHCP Enabled: No", but it was enabled last time I > checked. I'll check again. > > > On the FreeBSD box what is in /etc/rc.conf? > > I had a feeling I'd find something like this, but did > not know where to look): > ------------------------------------------------------ > hostname="SERVER" (this is the hostname I want to use) > ipv6_enable="YES" > sshd_enable="YES" > usbd_enable="YES" > samba_enable="YES" > > # -- sysinstall generated deltas -- > # Wed Apr 25 13:38:08 2007 > ifconfig_fxp0="DHCP" > ipv6_enable="YES" > hostname="dhcppc0." > ------------------------------------------------------ > Note that there are two each of the ipv6_enable and > hostname entries. > I assume I should remove one of each. I want to use > hostname "SERVER". If I delete this one, will it > work?: > hostname="dhcppc0." > Please advise as to what to change. > Delete any duplicates that you don't want. You should only have one entry for hostname=, same for ifconfig_fxp0=. > > On your router what is the DHCP range set to? and > > how long do the leases last before they expire? > > > > > > And from the other post it's not possible to > > "accidentally" make the FreeBSD box a DHCP server. > > You would have to install the isc-dhcpd > > port, then configure and start it. > > In any case, I verified that it's not installed. > > > If all of the above looks ok, go to /var/db and > > delete anything that says "dhclient.leases" then > > restart your machine and see if you get a new IP. > > Found dbclient.leases.fxp0 containing 2 "lease {...}" > entries and moved it to $HOME (will delete once it's > all working). You don't need to save that. A new one has already been generated. Backing up is always a good idea. > > I was surprised to find that the entries were for the > Vista system (not the XP box). I'll verify that DHCP > is enabled on the Vista box. > > One more question: When using DHCP, do I need to do > anything to enable all hosts on the LAN to know each > other by hostname (i.e., do I need to add entries to > /etc/hosts file?)? Once I reboot the FreeBSD box and > ensure that DHCP is enabled on all hosts, should I be > able to ping the Windoze systems by hostname (does not > currently work)? Adding your machines to /etc/hosts is a good idea, but bear in mind since you are using DHCP the IP addresses may change from time to time and you will need to correct the file. > > Thanks to Beech and all who responded! > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" -- --------------------------------------------------------------------------------------- Beech Rintoul - Port Maintainer - beech@alaskaparadise.com /"\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.freebsd.org/releases/6.2R/announce.html ---------------------------------------------------------------------------------------