NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Change MAC address in 4.0?



On Sat, 16 Feb 2008 10:14:29 -0500
Steven Sartorius <ssartor%bellatlantic.net@localhost> wrote:

> Hi,
> 
> I just recently had Verizon FIOS internet installed (20/5, not bad!)  
> and now I'm trying to get it to play nicely with my 4.0 home server.   
> When Verizon installs FIOS they give you an enormous brick of a  
> router, an Actiontec ML424WR.  Rather than be forced to use this I  
> just want to continue to have my NetBSD box handle firewall and NAT  
> duties.  FIOS (at least my install) is DHCP based so I'm able to pull  
> an IP address from Verizon by plugging the Cat5e from the ONT into  
> the WAN port on the Actiontec.  I'm unable to do this with my NetBSD  
> box:
> 
> Feb 16 00:22:34 shuttle dhclient: DHCPDISCOVER on vr0 to  
> 255.255.255.255 port 67 interval 4
> Feb 16 00:22:38 shuttle dhclient: DHCPDISCOVER on vr0 to  
> 255.255.255.255 port 67 interval 5
> Feb 16 00:22:43 shuttle dhclient: DHCPDISCOVER on vr0 to  
> 255.255.255.255 port 67 interval 14
> Feb 16 00:22:57 shuttle dhclient: DHCPDISCOVER on vr0 to  
> 255.255.255.255 port 67 interval 12
> Feb 16 00:23:09 shuttle dhclient: DHCPDISCOVER on vr0 to  
> 255.255.255.255 port 67 interval 15
> Feb 16 00:23:24 shuttle dhclient: DHCPDISCOVER on vr0 to  
> 255.255.255.255 port 67 interval 11
> Feb 16 00:23:35 shuttle dhclient: No DHCPOFFERS received.
> Feb 16 00:23:35 shuttle dhclient: No working leases in persistent  
> database - sleeping.
> 
> Reading some of the posts on dslreports suggests that some people  
> have been able to pull an IP from Verizon by cloning the MAC address  
> of the router.  How can I do this in NetBSD 4.0?  A quick google  
> turned up nothing useful -- some mention of 'netgraph' in FreeBSD but  
> nothing for NetBSD.  Doesn't look like the NetBSD version of  
> 'ifconfig' has the 'ether' option....
> 
> Any help much appreciated.
> 
> thanks,
> 
> Steve
> 

You can bridge together vr0 with a tap interface, like this:

ifconfig bridge0 create
ifconfig bridge0 up
ifconfig vr0 up
brconfig bridge0 add vr0
ifconfig tap0 create
sysctl -w net.link.tap.tap0=00:00:de:ad:be:ef
ifconfig tap0 up
brconfig bridge0 add tap0
dhclient tap0


Home | Main Index | Thread Index | Old Index