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

  1. Connect to the IBM® MQ Appliance as described in Command line access. Log in as an administrative user.
  2. Type config to enter global configuration mode.
  3. Type the following command to configure a VLAN interface:
    vlan name
    
    Where name identifies the interface that you want to configure. The name can have a maximum of 128 characters. The following characters are valid:
    • 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)
  4. 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.
  5. Use the following command to control the interface, if required:
    Command Description
    packet-capture Manages a packet-capture for the VLAN interface session.
  6. After you configure the VLAN interface, enter exit to save the configuration and exit, or type cancel to exit without saving.