Skip header
 

ifconfig

Use the "ifconfig" command to display and configure IP addresses, subnet masks, or broadcast addresses using TCP/IP. Also use this command to display default gateway addresses using TCP/IP.

View settings

msh> ifconfig

IPv4 configuration

msh> ifconfig "interface_name" "address"

  • If you did not enter an interface name, it is automatically set to the Ethernet interface.

  • wlan can be specified only when the IEEE 802.11 interface is installed.

Interface name

Interface configured

ether

Ethernet Interface

wlan

IEEE 802.11 interface

The following explains how to configure an IPv4 address 192.168.15.16 on the Ethernet interface.

msh> ifconfig ether 192.168.15.16

IPv6 configuration

msh> ifconfig "interface_name" inet6 "address" "prefixlen[1–128]"

The following explains how to configure an IPv6 address to 2001:DB8::100 with a prefix length of 64 on the Ethernet interface.

msh> ifconfig ether inet6 2001:DB8::100 64

Netmask configuration

msh> ifconfig "interface_name" netmask "address"

The following explains how to configure a subnet mask 255.255.255.0 on the Ethernet interface.

msh> ifconfig ether netmask 255.255.255.0

Broadcast address configuration

msh> ifconfig "interface_name" broadcast "address"

Changing the interface

msh> ifconfig "interface" up

Note

  • To get the above addresses, contact your network administrator.

  • Use the default configuration if you cannot obtain setting addresses.

  • The IP address, subnet mask and broadcast address are the same as those for the Ethernet interface and IEEE 802.11 interface.

  • TCP/IP configuration is the same for both the Ethernet and IEEE 802.11 interface. If interfaces are changed, the new interface inherits the configuration.

  • Use "0x" as the initial two letters of a hexadecimal address.