Skip to content

opx show vlan

Amy Buck edited this page Jan 9, 2019 · 6 revisions

COMMAND

opx-show-vlan — Displays the current configuration of a VLAN

SYNOPSIS

opx-show-vlan [-h,--help]
[--id <id>]
[--name <name>]
[--ifindex <ifindex>]
[--type <type>]
[--summary]

OPTIONS

Option Description
-h,--help Displays help text
--id <id> Displays configuration information of the VLAN having the given ID
--name <name> Displays configuration information of the VLAN having the given name
--ifindex <ifindex> Displays configuration information of the VLAN having the given ifindex
--type <type> Displays configuration information of the VLAN(s) having the given type (data or management)
--summary Displays a summary table, with each VLAN on a single line

OUTPUT

Output Description
VLAN ID Displays the ID assigned to the VLAN
Name Displays the name assigned to the VLAN
Interface Index Displays the ifindex assigned to the VLAN
Physical Address Displays the Ethernet MAC address assigned to the VLAN
Tagged Ports Displays the list of tagged member ports of the VLAN; a tagged port accepts traffic for all the VLANs; it is also referred as a trunk port
Untagged Ports Displays the list of untagged member ports of the VLAN; an untagged port accepts traffic for the associated VLAN only; it is also referred as an access port
Learning Mode Displays the MAC learning mode configured on the VLAN
MTU Displays the current maximum transmission unit (MTU) of the VLAN
Type Displays the type(data or management) of the VLAN

EXIT STATUS

If there is a syntax error in the given arguments, the exit status shall be 2.
If there is any other error, the exit status shall be 1.
Otherwise, the exit status is 0.

EXAMPLE

$ ./opx-show-vlan --name br105
br105
        VLAN ID:          105
        Name:             br105
        Interface index:  60
        Physical address: None
        Tagged ports:     e101-009-0
        Untagged ports:   None
        Type:             data
        Learning mode:    UNKNOWN
        MTU:              None

$ ./opx-show-vlan --summary
ID  | Name  | Type | Tagged ports | Untagged ports
--------------------------------------------------
101 | br101 | data | None         | None
105 | br105 | data | e101-009-0   | None

REPORT BUGS

To report any OPX software bugs, see Report bugs.

SEE ALSO

opx-config-vlan

Clone this wiki locally