changing a nic's mac address, freebsd6

2006-04-19 Thread Dave

Hello,
   I've got an rl0 nic on a freebsd6 machine that i need to change it's mac 
address on a tempoary basis. I will want to change it back when my testing 
is complete. I read this was feasible with opbnbsd, and was wondering if the 
capability was available in fbsd6? Also, does it matter which tempoary mac 
address i give the card?

Thanks.
Dave.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: changing a nic's mac address, freebsd6

2006-04-19 Thread Fabian Keil
Dave [EMAIL PROTECTED] wrote:

 I've got an rl0 nic on a freebsd6 machine that i need to change
 it's mac address on a tempoary basis. I will want to change it back
 when my testing is complete. I read this was feasible with opbnbsd,
 and was wondering if the capability was available in fbsd6? Also,
 does it matter which tempoary mac address i give the card?

You can use ifconfig rl0 ether $NEWMAC to change the mac address,
ether has been around for a while and doesn't require FreeBSD 6.x.

You're free to choose any address you like, but most of the time
taking a free one (not already taken in your network) makes sense.

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: changing a nic's mac address, freebsd6

2006-04-19 Thread David Kelly
On Wed, Apr 19, 2006 at 08:33:53AM -0400, Dave wrote:
 Hello,
I've got an rl0 nic on a freebsd6 machine that i need to change it's mac 
 address on a tempoary basis. I will want to change it back when my testing 
 is complete. I read this was feasible with opbnbsd, and was wondering if 
 the capability was available in fbsd6? Also, does it matter which tempoary 
 mac address i give the card?

Presumably if one needed to change a MAC address one would already know
the MAC address one needed to change to. Otherwise make sure you are not
using an address currently in use on your network or the next router
over. Probably best to increment your current MAC by one.

Once Upon A Time I initialized a cable modem connection at a remote
office using my Mac PowerBook then replaced it with a FreeBSD machine
dedicated to serve as that office's router, firewall, and VPN gateway.
Rather than reinitialize the cable modem service with the FreeBSD
interface's MAC I left it using my PowerBook's MAC. The detriment was I
could no longer use my PowerBook in that office because it confused the
FreeBSD machine which saw another using its MAC address.

To set the MAC address before any other networking starts (such as DHCP)
create /etc/start_if.interface name

#/bin/sh
ifconfig interface name lladdr 00:11:22:33:44:55

If you make up an address the first octet probably should be 0 as there
are bits in that field which have special meaning.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: changing a nic's mac address, freebsd6

2006-04-19 Thread Anth Courtney
Dave,

On 4/19/06, Dave [EMAIL PROTECTED] wrote:
 Hello,
I've got an rl0 nic on a freebsd6 machine that i need to change it's mac
 address on a tempoary basis.

You can do this with ifconfig and the link parameter.

i.e

# /sbin/ifconfig rl0 link $NEWMACADDRESS

cheers,

Anth
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]