Use the "ifconfig" command to view and configure TCP/IP (IP address, subnet mask, broadcast address, default gateway address) for the machine.
View settings
msh> ifconfig
IPv4 configuration
msh> ifconfig "interface_name" "address"
Interface name |
Interface configured |
---|---|
ether |
Ethernet 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
To get the above addresses, contact your network administrator.
Use the default configuration if you cannot obtain setting addresses.
Use "0x" as the initial two letters of a hexadecimal address.