ifconfig

configure a network interface

Change the mac address of eth0 and disconnect the interface, execute ifconfig eth0 up to start the interface
copy
210
36
ifconfig eth0 down hw ether 00:00:00:00:00:02Change the mac address of eth0 and disconnect the interface, execute ifconfig eth0 up to start the interface

details |

Options:

  • ifconfig downifconfig
    This flag causes the driver for this interface to be shut down.
  • ifconfig hwifconfig
    Set the hardware address of this interface, if the device driver supports this operation. The keyword must be followed by the name of the hardware class and the printable ASCII equivalent of the hardware address. Hardware classes currently supported include ether (Ethernet), ax25 (AMPR AX.25), ARCnet and netrom (AMPR NET/ROM).