ifconfig command
Use this command to configure the Ethernet interface.
Use the ifconfig command to display the current Ethernet interface configuration. To change the Ethernet interface configuration, type the options, followed by the values. To change the interface configuration, you must have at least Adapter Networking and Security Configuration authority.
Syntax:
ifconfig [ethernet_number] [-options]
Example:
dhcpinfo eth1 -b
Option | Description | Values |
---|---|---|
-state | Interface state | disabled, enabled |
-c | Configuration method | dhcp, static, dthens (dthens corresponds to the try dhcp server, if it fails use static config option on the web interface) |
-ghn | Obtain hostname from DHCP | disabled, enabled |
-i | Static IP address | Address in valid format. |
-g | Gateway address | Address in valid format. |
-s | Subnet mask | Address in valid format. |
-n | Host name | String of up to 63 characters. The string can include letters, digits, periods, underscores, and hyphens. |
-auto | Autonegotiation setting, which determines whether the Data rate and Duplex network settings are configurable | true, false |
-vlan | Enable or disable the VLAN tagging | enabled, disabled |
-vlanid | VLAN ID | Numeric value between 1 and 4094. |
-r | Data rate | 10, 100, 1000 |
-d | Duplex mode | full, half |
-m | MTU | Numeric between 60 and 1500. |
-l | LAA | MAC address format. Multicast addresses are not allowed (the first byte must be even). |
-b | Burned-in MAC Address (read only) | |
-dn | Domain name (read only) | |
-ipv6 | IPv6 state | disabled, enabled |
-ipv6static | Static IPv6 state | disabled, enabled |
-i6 | Static IP address | Static IP address for Ethernet channel 0 in IPv6 format. |
-p6 | Address prefix length | Numeric value between 1 and 128. |
-g6 | Gateway or default route | IP address for the gateway or default route for Ethernet channel 0 in IPv6. |
-dhcp6 | IPv6 DHCP mode | enabled, disabled |
-sa6 | IPv6 Stateless mode | enabled, disabled |
-lla | Link-local address (read only) | |
-ncsi | NCSI NIC port selection | nic[x]:port[y] Note Use comma as the delimiter if there are two or more settings. |
-nic | Switch NIC mode1 | shared, dedicated, shared:nic[x]2 |
-failover2 | Failover mode | none, shared, shared:nic[x] |
-nssync3 | Network setting synchronization | enabled, disabled |
-address_table | Table of automatically-generated IPv6 addresses and their prefix lengths (read only) Note The option is visible only if IPv6 and stateless auto-configuration are enabled. | |
Note
|
Example:
system> ifconfig eth0 -c static -i 192.168.70.133
These configuration changes will become active after the next reset of the IMM.
system>
Give documentation feedback