- About ifconfig : To configure a network interface
- It comes from “net-tools-1.60” package.
- Configuration Files:
/proc/net/socket
/proc/net/dev
/proc/net/if_inet6 - Path: /sbin/ifconfig
Examples:
1. To see all the interfaces on the system
$ ifconfig -a |
2. To see all the interface stats
$ ifconfig -s $ ifconfig -s eth1 |
3. To add the IPv6 address to the interface
$ ifconfig eth1 add |
4. To delete the IPv6 address to the interface
$ ifconfig eth1 add |
5. To create a new SIT device
$ ifconfig eth5 tunnel :: |
6. To set the interrupt line used by the device
$ ifconfig eth1 -irq addr |
7. To set the start address in I/O space for this device
$ ifconfig eth1 io_addr addr |
8. To Set the start address for shared memory used by this device
$ ifconfig eth1 mem_start addr |
9. To Set the physical port or medium type to be used by the device
$ ifconfig eth1 media type |
10. To Set the hardware address of this interface
$ ifconfig eth1 hw class address |
11. To Set the multicast flag on the interface
$ ifconfig eth1 multicast |
12. To set the IP address to the interface
$ ifconfig eth1 address 192.168.27.100 |
To Set the length of the transmit queue of the device
$ ifconfig eth1 txqueuelen length