Date: Thu, 11 Feb 2021 06:50:45 +0700 From: Eugene Grosbein <eugen@grosbein.net> To: Pete French <petefrench@ingresso.co.uk>, FreeBSD Stable Mailing List <freebsd-stable@freebsd.org> Subject: Re: DHCP and chnaging the MAC address on a network card Message-ID: <490e4b11-b79c-5346-2da5-d6e08e590dc6@grosbein.net> In-Reply-To: <ffdbd6db-7788-3934-760e-82a32f2edecf@ingresso.co.uk> References: <ffdbd6db-7788-3934-760e-82a32f2edecf@ingresso.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
11.02.2021 6:26, Pete French wrote: > I have a machine runnign 12-STABLE, which gets its upstream IP address from my ISP using DHCP over a cable modem. What I just tried to do was to set the MAC address on that interface at boot time, but if I do that then it no longer acquires a DHCP address from the upstream. > > Is there something going on here I dont understand ? > > The interfaces are 'bge' and I have a file called /etc/start_if.bge0 whcih contains: > > /sbin/ifconfig $1 ether d0:bf:9c:46:a3:7c > > and this works (have tried it on bge1 and another machine) in changing the MAC address. But if i do that on the DHCP interface then it doesnt get an IP address. > > Any hints ? > > -pete. > > PS: reason am doing this is my ISP will (in future) be able to give me a static IP address basd on the MAC address. Which is lovely, but I have a spare server I use when this one goes down, so was hoping to have the same MAC address if I boot the same drive, to avoid any issues caused by the MAc address chnaging if I chnage the hardware. But it doesnt work. :) Try changing your command a bit: /sbin/ifconfig $1 ether d0:bf:9c:46:a3:7c up
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?490e4b11-b79c-5346-2da5-d6e08e590dc6>