From owner-freebsd-stable Sun Aug 4 6:23:12 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24D1437B400; Sun, 4 Aug 2002 06:23:06 -0700 (PDT) Received: from smnolde.com (c-24-98-61-182.atl.client2.attbi.com [24.98.61.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8DFE43E5E; Sun, 4 Aug 2002 06:23:05 -0700 (PDT) (envelope-from scott@smnolde.com) Received: from [192.168.10.7] (helo=bsd.smnolde.com) by smnolde.com with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 3.36 #1) id 17bLLc-0005DK-00; Sun, 04 Aug 2002 09:23:04 -0400 Received: from scott by bsd.smnolde.com with local (Exim 3.33 #1) id 17bLLY-0005Bz-00; Sun, 04 Aug 2002 09:23:00 -0400 Date: Sun, 4 Aug 2002 09:23:00 -0400 From: "Scott M. Nolde" To: Wouter Van Hemel Cc: Terry Lambert , Bri , freebsd-stable@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: dhcp problems with my ISP Message-ID: <20020804092300.B78925@smnolde.com> References: <3D4BADAC.481BB6E3@mindspring.com> <1028409791.286.9.camel@cocaine> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <1028409791.286.9.camel@cocaine>; from wouter@pair.com on Sat, Aug 03, 2002 at 11:23:11PM +0200 X-GPG_Fingerprint: 0BD6 DDB4 2978 EB60 E0C8 33F2 BC34 9087 D869 AB48 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Wouter Van Hemel(wouter@pair.com)@2002.08.03 23:23:11 +0000: > On Sat, 2002-08-03 at 12:17, Terry Lambert wrote: > > Bri wrote: > > > Hi I have a Cable and have a Cable Modem for my internet connection of which > > > you use dhcp to obtain an IP address great but this only seems to work > > > successfully on a Windows machine I've registered all the other mac > > > addresses of unix boxes and Apple macs I have and they seem to have alot of > > > difficulty obtaining IP addresses. Especially the UNIX machines which run > > > FreeBSD 4.5-RELEASE or 5.0-CURRENT on sparc64 at the moment the sparc64 box > > > which is a Sun Ultra 5 which is the worst for detecting an IP with dhclient. > > > > > > What I would really like to know is what does the windows dhcp do > > > differently than say dhclient. > > > > > > I would be very interested to know as I would like a UNIX machine that can > > > maintain and IP address. > > > > Use the same exact NIC. > > > > Wouldn't it be possible to change the mac address? A friend of mine used > this method once to obtain a new ip address from the server when he was > being DoS'ed on his home ip by some irc kiddies. > > Ofcourse, you'd have to change the other cards' mac too, if possible. > > > [...] > > > > Regards, > > wouter > here's the way to change the MAC on freeBSD. I had to do it a few days ago. No big deal, this is VERY simple. A little background: If you read /etc/rc.network you'll find, before the ethernet interfaces are started a particular file is sought in /etc: start_if.nic: for ifn in ${network_interfaces}; do if [ -r /etc/start_if.${ifn} ]; then . /etc/start_if.${ifn} eval showstat_$ifn=1 fi So, for me it was /etc/start_if.fxp1. What I had to put in this file was the command to change the MAC to the MAC of the old NIC. #!/bin/sh # force fxp1 on dual card to 00:a0:cc:28:89:82 ifconfig fxp1 ether 00a0cc288982 And that took care of it. I don't need to call my cable co to reprovision the cablemodem for each computer. I just change the MAC at the FreeBSD firewall. And that's how you do it in FreeBSD. - Scott -- Scott Nolde GPG Key 0xD869AB48 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message