[Ilugc] One Day One GNU/Linux Command (IFCONFIG)

  • From: sbharathi@xxxxxxxxxxxxx (Bharathi Subramanian)
  • Date: Fri Jul 25 09:44:35 2008

In OO Impress, during presentation, we can get White screen by 
pressing 'W' key and Black screen by pressing 'B' or '.' key. 
To get back the slide screen, just press the same key again.

One Day One GNU/Linux Command
=============================

ifconfig - CONFIGure a `network' InterFace

Summary :

Ifconfig is used to display/configure the kernel-resident network
interfaces. 

Example:

$ ifconfig -- Show info abt the active network interfaces like IP
              Address, MAC address, Subnet mask, and status.

$ ifconfig -a -- Show the status of active and inactive interfaces.

# ifconfig eth0 down -- Deactivate/Shutdown the eth0 interface.

# ifconfig eth0 up -- Activate the eth0 interface.

# ifconfig eth0 192.168.1.100 netmask 255.255.255.0 up -- Activate an
                                   interface with specific IP address.

# ifconfig eth0:0 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.255

# ifconfig eth0:1 192.168.1.102 netmask 255.255.255.0 -- Creating
       Alias for eth0, ie Assign more than one IP address to eth0.

# ifconfig eth0 arp -- Enable the use of the ARP protocol on eth0.

# ifconfig eth0 -arp -- Disable the use of the ARP protocol on eth0.

# ifconfig eth0 promisc -- Enable the promiscuous mode on eth0.

# ifconfig eth0 hw ether 06:05:04:03:02:01 -- Change eth0 MAC address.

# ifconfig eth0 mtu 1412 -- Change Max Transfer Unit of eth0.

Read : man ifconfig

NOTE:
1) Deactivate the interface before changing the IP/MAC.
2) Note down the original MAC, Otherwise Reboot needed 
   to get back the original MAC Address.

HTH :)
--
Bharathi S

Other related posts:

  • » [Ilugc] One Day One GNU/Linux Command (IFCONFIG) - Bharathi Subramanian