The ifconfig command of Linux Command Encyclopedia

The Linux ifconfig command is used to display or configure network devices.

ifconfig can set the state of network equipment, or display the current settings.

grammar

ifconfig [网络设备][down up -allmulti -arp -promisc][add<地址>][del<地址>][<hw<网络设备类型><硬件地址>][io_addr<I/O地址>][irq<IRQ地址>][media<网络媒介类型>][mem_start<内存地址>][metric<数目>][mtu<字节>][netmask<子网掩码>][tunnel<地址>][-broadcast<地址>][-pointopoint<地址>][IP地址]

Parameter description :

  • add<address> Set the IP address of the network device IPv6.
  • del<address> Delete the IP address of the network device IPv6.
  • down Shut down the specified network device.
  • <hw<network device type><hardware address> Set the type and hardware address of the network device.
  • io_addr<I/O address> Set the I/O address of the network device.
  • irq<IRQ address> Set the IRQ of the network device.
  • media<network media type> Set the media type of the network device.
  • mem_start<memory address> Set the starting address occupied by the network device in the main memory.
  • metric<number> specifies the number to be added when calculating the forwarding times of the data packet.
  • mtu<bytes> Set the MTU of the network device.
  • netmask<subnet mask> Set the subnet mask of the network device.
  • tunnel<address> Establish the tunnel communication address between IPv4 and IPv6.
  • start up

Guess you like

Origin blog.csdn.net/m0_37449634/article/details/131431746
Recommended