From owner-freebsd-stable Sun Aug 4 9:26:53 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 3F19E37B400 for ; Sun, 4 Aug 2002 09:26:50 -0700 (PDT) Received: from amsfep14-int.chello.nl (amsfep14-int.chello.nl [213.46.243.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24DC943E6E for ; Sun, 4 Aug 2002 09:26:49 -0700 (PDT) (envelope-from wouter@pair.com) Received: from hibernate.cryolabs.net ([213.132.151.88]) by amsfep14-int.chello.nl (InterMail vM.5.01.03.06 201-253-122-118-106-20010523) with SMTP id <20020804162647.VMNY29955.amsfep14-int.chello.nl@hibernate.cryolabs.net> for ; Sun, 4 Aug 2002 18:26:47 +0200 Received: (qmail 18920 invoked from network); 4 Aug 2002 18:26:39 +0200 Received: from unknown (HELO ice.cryolabs.net) (192.168.196.1) by hibernate.cryolabs.net with SMTP; 4 Aug 2002 18:26:39 +0200 Received: from cocaine.cryolabs.net (cocaine.cryolabs.net [192.168.196.5]) by ice.cryolabs.net (Postfix) with ESMTP id 0E91535C; Sun, 4 Aug 2002 18:26:40 +0200 (CEST) Subject: Re: dhcp problems with my ISP From: Wouter Van Hemel To: "Scott M. Nolde" Cc: Terry Lambert , Bri , freebsd-stable@freebsd.org, freebsd-hackers@freebsd.org In-Reply-To: <20020804092300.B78925@smnolde.com> References: <3D4BADAC.481BB6E3@mindspring.com> <1028409791.286.9.camel@cocaine> <20020804092300.B78925@smnolde.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.7 Date: 04 Aug 2002 18:26:47 +0200 Message-Id: <1028478407.285.4.camel@cocaine> Mime-Version: 1.0 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 On Sun, 2002-08-04 at 15:23, Scott M. Nolde wrote: > 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 > Oh... that's even more simple than using arp(1). Does it set the card, or just the kernel interface? I suspect the latter... > 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