Diff for /wikisrc/tutorials/faking_a_mac_address.mdwn between versions 1.1 and 1.2

version 1.1, 2011/11/21 03:22:58 version 1.2, 2012/02/05 07:14:36
Line 1 Line 1
 Since 5.0 NetBSD supports changing the MAC address.  Since 5.0 NetBSD supports changing the MAC address. 
   
 Add a link-layer address to an Ethernet:  Add a link-layer address to an Ethernet: 
          
     # ifconfig sip0 link 00:11:22:33:44:55      # ifconfig sip0 link 00:11:22:33:44:55
          
   
 Add and activate a link-layer address:  Add and activate a link-layer address: 
          
     # ifconfig sip0 link 00:11:22:33:44:55 active      # ifconfig sip0 link 00:11:22:33:44:55 active
          
   
      
 This should give some idea:  This should give some idea: 
          
          
     ifconfig bridge0 create      ifconfig bridge0 create
     ifconfig bridge0 up      ifconfig bridge0 up
     ifconfig vr0 up      ifconfig vr0 up
     brconfig bridge0 add vr0      brconfig bridge0 add vr0
     ifconfig tap0 create      ifconfig tap0 create
     sysctl -w net.link.tap.tap0=00:00:de:ad:be:ef      sysctl -w net.link.tap.tap0=00:00:de:ad:be:ef
     ifconfig tap0 up      ifconfig tap0 up
     brconfig bridge0 add tap0      brconfig bridge0 add tap0
          
   
 Now you can get an ip if from dhcp with the fake MAC:  Now you can get an ip if from dhcp with the fake MAC: 
          
     dhclient tap0      dhclient tap0
          
   
 ##  See also  ##  See also 
   
   * [ifconfig(8)](http://netbsd.gw.com/cgi-bin/man-cgi?ifconfig+8+NetBSD-current)    * [ifconfig(8)](http://netbsd.gw.com/cgi-bin/man-cgi?ifconfig+8+NetBSD-current)

Removed from v.1.1  
changed lines
  Added in v.1.2


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb