You can configure the Ethernet interfaces by using the command interface.
About this task
To configure an Ethernet interface from the command line, you enter Ethernet configuration mode,
specifying the interface to configure, and enter the required Ethernet commands.
Procedure
-
Connect to the IBM® MQ Appliance as described in
Command line access. Log in as an administrative user.
-
Type
config
to enter global configuration mode.
-
Type the following command to configure an Ethernet interface:
ethernet name
Where name identifies the interface that you want to configure and has one of the
following values:
- eth10
- eth11
- eth12
- eth13
- eth14
- eth15
- eth16
- eth17
- eth20
- eth21
- eth22
- eth23
- eth30
- eth31
- eth32
- eth33
- eth40
- eth41
- mgt0
- mgt1
-
Use the following Ethernet interface commands to configure the interface:
Command |
Description |
admin-state |
Sets the administrative state for the configuration. |
flow-control |
Sets the flow control mode of the Ethernet interface. |
ip-address |
Assigns the primary network address for the Ethernet interface. |
ip-config-mode |
Identifies the configuration mode for the Ethernet interface. |
ip-route |
Manages static routes in the routing table for the Ethernet interface. |
ip-secondary-address |
Manages secondary network addresses for the Ethernet interface. |
ipv4-default-gateway |
Designates the default IPv4 gateway for the Ethernet interface. |
ipv6-dadtransmits |
Sets the number of IPv6 duplication address detection attempts for the Ethernet
interface. |
ipv6-default-gateway |
Designates the default IPv6 gateway for the Ethernet interface. |
ipv6-nd-retransmit-timer |
Sets the interval between IPv6 neighbor discovery attempts for the Ethernet
interface. |
link-aggegation-model |
Indicates whether the Ethernet interface is part of an aggregate interface. |
mac-address |
Changes the MAC address for the Ethernet interface. |
mode |
Sets the interface speed and direction. |
mtu |
Sets the maximum transmission unit of the Ethernet interface. |
-
Use the following commands to control the interface, if required:
-
After you configure the Ethernet interface, enter exit to save the
configuration and exit, or type
cancel
to exit without saving.
Example
The following commands configure interface eth10
to use DHCP:
mqa# config
Global configuration mode
mqa(config)# ethernet eth10
Modify Ethernet Interface configuration
mqa(config ethernet eth10)# ip-config-mode dhcp
mqa(config ethernet eth10)# exit
mqa(config)# write memory
Overwrite previously saved configuration? Yes/No [y/n]: y
Configuration saved successfully.