Configuring VLAN interfaces by using the command line
You can configure VLAN interfaces by using the command interface.
About this task
To configure a VLAN interface from the command line, you enter VLAN configuration mode, specifying the interface to configure, and enter the required VLAN commands.
Procedure
- Connect to the IBM® MQ Appliance as described in Command line access. Log in as an administrative user.
-
Type
configto enter global configuration mode. -
Type the following command to configure a VLAN interface:
Where name identifies the interface that you want to configure. The name can have a maximum of 128 characters. The following characters are valid:vlan name- a through z
- A through Z
- 0 through 9
- Underscore (_)
- Dash (-)
- Period (.) (note that a name that consists of a single period, or including two periods together, is not permitted)
-
Use the following VLAN interface commands to configure the interface:
Command Description admin-state Sets the administrative state for the configuration. ethernet-interface Sets the Ethernet interface to provide connectivity. identifier Sets the VLAN identifier. ip-address Assigns the primary network address for the VLAN interface. ip-config-mode Identifies the configuration mode for the VLAN interface. ip-route Manages static routes in the routing table for the VLAN interface. ip-secondary-address Manages secondary network addresses for the VLAN interface. ipv4-default-gateway Designates the default IPv4 gateway for the VLAN interface. ipv6-dadtransmits Sets the number of IPv6 duplication address detection attempts for the VLAN interface. ipv6-default-gateway Designates the default IPv6 gateway for the VLAN interface. ipv6-nd-retransmit-timer Sets the interval between IPv6 neighbor discovery attempts for the VLAN interface. link-aggregation-interfacel Indicates whether the VLAN interface is part of an aggregate interface. mtu Sets the maximum transmission unit of the VLAN interface. outbound-priority Sets the priority value in outbound packets. over Sets the parent interface type. -
Use the following command to control the interface, if required:
Command Description packet-capture Manages a packet-capture for the VLAN interface session. -
After you configure the VLAN interface, enter exit to save the
configuration and exit, or type
cancelto exit without saving.