ifconfig Flashcards
ifconfig
ifconfig is used to configure the kernel-resident network interfaces.
![](https://s3.amazonaws.com/brainscape-prod/system/cm/313/485/202/a_image_thumb.png?1591558571)
ifconfig
- a, display all interfaces currently available.
- s, display a short list.
- v, verbose
interface, The name of the interface
ifconfig interface [aftype]
up, Activates interface
down, Shuts down interface
[-]arp, Enable or disable ARP
[-]promisc, On/Off promiscuous mode of interface.
[-]allmulti, On/Off all-multicast mode.
mtu N, Sets MTU of interface.
ifconfig interface [aftype]
dstaddr addr, Set remote IP address for point-to-point(pointopoint keyword can be used.)
netmask addr, Set the IP network mast for interface.
add addr/prefixlen, Add IPv6 address to interface.
del addr/prefixlen, Remove IPv6 address to interface.
tunnel ::aa.bb.cc.dd, Create a new SIT(IPv6-in-IPv4) device, tunnelling to give dest..
irq addr, Set the interrupt line used by dev.
io_addr addr, Set the start addr in I/O space for this dev.
mem_start addr, Set the start address for shared memory.
media type, Set the physical port or medium type.
[-]broadcast [addr], Set broadcast addr.
[-]pointopoint [addr], Enables point to point on interface.
hw class address, Set the hardware address.
multicast, Set the multicast flag.
address, The IP address to assign interface.
txqueuelen length, Set the length of the transmit queue.