vlan command
This command configures and displays the VLAN (virtual local area network) settings for the CMM.
If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or vlan command errors for a list of error messages that are specific to the vlan command.
Function | What it does | Command | Target (see paths in Command targets) |
---|---|---|---|
Display all VLAN settings | Displays all VLAN settings for specified command target. Note The command issued by itself will display all entries, the global state, the commit timeout, and whether the current configuration has been committed. | vlan | Primary CMM:
|
Display VLAN settings for specific VLAN ID | Displays VLAN settings for the specified VLAN ID of the command target. | vlan -vi index where index is the VLAN entry index number. | Lenovo Flex System chassis:
Primary CMM:
|
Apply CMM VLAN settings | Applies changes made to the CMM VLAN configuration. Note You must commit | vlan -commit This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
CMM commit timeout | Sets a custom timeout value for applying CMM VLAN configuration changes. If CMM VLAN configuration changes are not committed before the commit timeout expires, the previous configuration is restored. | vlan -cto timeout where timeout is from 1 to 255 minutes, inclusive. This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set global VLAN state | Enables or disables the global VLAN state. Note
| vlan -state state where state is
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set VLAN state for non-fixed entry | Sets the VLAN state of the specified non-fixed entry. Note All changes to the | vlan -vi index -state state where
This command can only be run by users who have one or more of the following command authorities.
| Lenovo Flex System chassis:
Primary CMM:
|
Delete all non-fixed VLAN entries | Deletes all non-fixed VLAN entries. Note All changes to the | vlan -delete This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Delete specific VLAN entry | Deletes the specified VLAN entry. Note All changes to the | vlan -vi index-delete where index is the VLAN entry index number. This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Create VLAN entry | Creates the specified VLAN entry. Note
| vlan -vi index-vid vlan_id where
This command can only be run by users who have one or more of the following command authorities.
| Lenovo Flex System chassis:
Primary CMM:
|
Set VLAN ID | Sets a new ID for the specified VLAN entry. Note All changes to the | vlan -vi index-vid id where
This command can only be run by users who have one or more of the following command authorities.
| Lenovo Flex System chassis:
Primary CMM:
|
Set SOL access state | Enables or disables SOL access for the specified VLAN entry. Note
| vlan -vi index-sol state where
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set VLAN tagging state (fixed entry) | Enables or disabled VLAN tagging for the default (fixed) entry. Note All changes to the | vlan -vi index-tag state where
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set VLAN entry name | Sets a name for the specified VLAN entry. Note All changes to the | vlan -vi index-n name where
| Lenovo Flex System chassis:
Primary CMM:
|
Set VLAN IPv4 configuration method to static | Sets the IPv4 configuration method for the specified VLAN non-fixed entry to static. Note All changes to the | vlan -vi index-c method where
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set VLAN IP address (IPv4) | Sets the IPv4 address for the specified VLAN non-fixed entry. Note All changes to the | vlan -vi index-i ip_address where
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set VLAN subnet (IPv4) | Sets the IPv4 subnet for the specified VLAN non-fixed entry. Note All changes to the | vlan -vi index-s subnet where
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set VLAN gateway (IPv4) | Sets the IPv4 gateway for the specified VLAN non-fixed entry. Note All changes to the | vlan -vi index-g gateway where
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set VLAN IPv4 subnet route | Sets a custom value for the specified IPv4 subnet route of the specified VLAN non-fixed entry. Note All changes to the | vlan -vi index-sr xsubnet_route where
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set VLAN IPv4 subnet mask | Sets a custom value for the specified IPv4 subnet mask for the specified VLAN non-fixed entry. Note All changes to the | vlan -vi index-sm xsubnet_mask where
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set VLAN IPv6 configuration method to static | Sets the IPv6 configuration method for the specified VLAN non-fixed entry to static. | vlan -vi index-c6 method where
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set VLAN IP address (IPv6) | Sets the IPv6 address for the specified VLAN non-fixed entry. Note All changes to the | vlan -vi index-i6 ip_address where
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set VLAN IPv6 prefix length | Sets the IPv6 prefix length for the specified VLAN non-fixed entry. Note All changes to the | vlan -vi index-p6 prefix_length where
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set VLAN gateway (IPv6) | Sets the IPv6 gateway for the specified VLAN non-fixed entry. Note All changes to the | vlan -vi index-g6 gateway where
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set VLAN IPv6 subnet route | Sets a custom value for the specified IPv6 subnet route of the specified VLAN non-fixed entry. Note All changes to the | vlan -vi index-sr6 xsubnet_route where
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Set VLAN IPv6 subnet prefix length | Sets a custom value for the specified IPv6 subnet prefix length for the specified VLAN non-fixed entry. Note All changes to the | vlan -vi index-sp6 xprefix_length where
This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Example:
vlan
vlan -state disabled
vlan -delete -vi 2
vlan -commit
vlan -vi 1
The following example shows the information that is returned from these commands:
view all CMM VLAN entries:
system:mm[2]> vlan
-state enabled
-cto 2
-vi 1
-n VLAN-1
-state enabled
-vid 1
-sol enabled
-tag disabled
IPv4 config method: static
IPv4 address: 9.37.64.201
IPv4 subnet: 255.255.252.0
IPv4 gateway: 9.37.64.1
IPv6 config method: static
IPv6 address: ::
IPv6 prefix length: 0
IPv6 gateway: ::
-vi 2
-n temp vlan
-state disabled
-vid 2000
-sol disabled
-c static
-i 192.168.70.125
-s 255.255.255.255
-g 0.0.0.0
-sr1 0.0.0.0
-sm1 255.255.255.255
-sr2 0.0.0.0
-sm2 255.255.255.255
-sr3 0.0.0.0
-sm3 255.255.255.255
-c6 static
-i6 1122::3344
-p6 0
-g6 ::
-sr61 ::
-sp61 0
-sr62 ::
-sp62 0
-sr63 ::
-sp63 0
The current configuration has been committed.
system:mm[2]> vlan -state disabled
All changes must be committed using -commit before the commit timeout expires.
OK
system:mm[2]> vlan -delete -vi 2
All changes must be committed within 20 minutes using -commit.
OK
system:mm[2]> vlan -commit
OK
<span className="ph">system:mm[2]> vlan -vi 1</span>
-vi 1
-n VLAN-1
-state disabled
-vid 10
system:mm[2]