ifconfig command
Use this command to configure the Ethernet interface.
Type ifconfig eth0 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.
Note
In a Flex System, the VLAN settings are managed by a Flex System CMM and cannot be modified on the IMM.
The following table shows the arguments for the options.
Option | Description | Values |
---|---|---|
-b | Burned-in MAC Address (read-only and not configurable) | |
-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) |
-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. |
-r | Data rate | 10, 100, auto |
-d | Duplex mode | full, half, auto |
-m | MTU | Numeric between 60 and 1500. |
-l | LAA | MAC address format. Multicast addresses are not allowed (the first byte must be even). |
-dn | Domain name | Domain name in valid format. |
-auto | Autonegotiation setting, which determines whether the Data rate and Duplex network settings are configurable | true, false |
-ghn | Obtain hostname from DHCP | disabled, enabled |
-nic | switch NIC mode1 | shared, dedicated, shared:nixX2 |
-failover2 | Failover mode | none, shared, shared:nicX |
-nssync3 | Network setting synchronization | enabled, disabled |
-address_table | Table of automatically-generated IPv6 addresses and their prefix lengths Note The option is visible only if IPv6 and stateless auto-configuration are enabled. | This value is read-only and is not configurable. |
-ipv6 | IPv6 state | disabled, enabled |
-lla | Link-local address Note The link-local address only appears if IPv6 is enabled. | The link-local address is determined by the IMM. This value is read-only and is not configurable. |
-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 | DHCPv6 state | enabled, disabled |
-sa6 | IPv6 stateless autoconfig state | enabled, disabled |
-vlan | Enable or disable the VLAN tagging | enabled, disabled |
-vlanid | Network packet identification tag for the IMM | Numeric value between 1 and 4094. |
Note
|
Syntax:
ifconfig eth0 [options]
options:
-state interface_state
-c config_method
-i static_ipv4_ip_address
-g ipv4_gateway_address
-s subnet_mask
-n hostname
-r data_rate
-d duplex_mode
-m max_transmission_unit
-l locally_administered_MAC
-b burned_in_MAC_address
-dn domain_name
-auto state
-nic state
-failover mode
-nssync state
-address_table
-lla ipv6_link_local_addr
-dhcp6 state
-ipv6 state
-ipv6static state
-sa6 state
-i6 static_ipv6_ip_address
-g6 ipv6_gateway_address
-p6 length
-vlan state
-vlanid VLAN ID
Example:
system> ifconfig eth0
-state : enabled
-c : dthens
-ghn : disabled
-i : 192.168.70.125
-g : 0.0.0.0
-s : 255.255.255.0
-n : IMM00096B9E003A
-auto : true
-r : auto
-d : auto
-vlan : disabled
-vlanid : 1
-m : 1500
-b : 00:09:6B:9E:00:3A
-l : 00:00:00:00:00:00
-dn :
-ipv6 : enabled
-ipv6static : disabled
-i6 : ::
-p6 : 64
-g6 : ::
-dhcp6 : enabled
-sa6 : enabled
-lla : fe80::6eae:8bff:fe23:91ae
-nic : shared:nic3
nic1: dedicate
nic2: ext card slot #3
nic3: ext card slot #5 [active]
-address_table :
system> ifconfig eth0 -c static -i 192.168.70.133
These configuration changes will become active after the next reset of the IMM.
Give documentation feedback