3.1. Interface Commands
3.1.1. bandwidth
Command Purpose
Use this command to set the bandwidth of the port.
To return the bandwidth to default value, use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
bandwidth BANDWIDTH
no bandwidth
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
BANDWIDTH |
port bandwidth |
1-100000000, unit: kbps |
Command Mode
Interface Configuration
Default
None
Usage
None
Examples
The following example set the bandwidth of the port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# bandwidth 1000
The following example returns the bandwidth to default value:
Switch# configure terminal
Switch(config-if)# no bandwidth
3.1.2. clear counters
Command Purpose
Use this command to clear the counters on the physical interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
clear counters ( IFNAME | )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
IFNAME |
Only clear the specified interface statistics |
Support physical/aggregation ports |
Command Mode
Privileged EXEC
Default
None
Usage
The clear counters command clears all current interface counters from the interface unless you specify optional arguments that clear only a specific interface type from a specific interface number.
Examples
The following example clears the counters on all interfaces:
Switch# clear counters
The following example clears the counters on the interface eth-0-1:
Switch# clear counters eth-0-1
The following example clears the counters on the agg1:
Switch# clear counters agg1
Related Commands
None
3.1.3. description
Command Purpose
Use this command to set the description on the interface.
To remove the description on the interface, use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
description LINE
no description
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
LINE |
The description on the interface |
should be no more than 240 characters, and the character can not include `?` |
Command Mode
Interface Configuration
Default
None
Usage
None
Examples
The following example sets the description on the interface:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# description Ethernet
The following example removes the description on the interface:
Switch# configure terminal
Switch(config-if)# no description
Related Commands
None
3.1.4. duplex
Command Purpose
Use the duplex interface configuration command to specify the duplex mode of operation for a port. Use the no form of this command to return the port to its default value.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
duplex ( auto | full | half )
no duplex
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
auto |
Enable automatic duplex configuration; port automatically detects whether it should run in full-duplex or half-duplex mode, depending on the attached device mode |
- |
full |
Enable full-duplex mode |
- |
half |
Enable half-duplex mode (only for interfaces operating at 10 or 100 Mb/s). You can not configure half-duplex mode for interfaces operating at 1000 or10,000 Mb/s |
- |
Command Mode
Interface Configuration
Default
auto
Usage
The command is not allowed to be set on 10G port or optical mode of combo port.
Examples
The following example sets the duplex mode to auto:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# duplex auto
The following example sets the duplex mode to full:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# duplex full
The following example returns the duplex mode to default:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no duplex
Related Commands
bandwidth
speed
3.1.5. speed
Command Purpose
Use the speed interface configuration command to specify the speed of port. Use the no of this command to return the port to its default value.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
AQ-N3000, AQ-N5000
speed ( 10 | 100 | 1000 | 2G5 | 5G | 10G | 25G | 40G | 50G | 100G | auto )
AQ-N6000
speed ( 10 | 100 | 1000 | 2G5 | 5G | 10G | 25G | 40G | 50G | 100G | 200G | 400G | auto )
no speed
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
auto |
Port automatically detects the speed it should run |
|
10 |
Port runs at 10 Mb/s |
- |
100 |
Port runs at 100 Mb/s |
- |
1000 |
Port runs at 1000 Mb/s |
- |
2G5 |
Port runs at 2.5Gb/s |
- |
5G |
Port runs at 5Gb/s |
- |
10G |
Port runs at 10Gb/s |
- |
25G |
Port runs at 25Gb/s |
- |
40G |
Port runs at 40Gb/s |
- |
50G |
Port runs at 50Gb/s |
- |
100G |
Port runs at 100Gb/s |
- |
AQ-N6000
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
200G |
Port runs at 200Gb/s |
- |
400G |
Port runs at 400Gb/s |
- |
Command Mode
Interface Configuration
Default
auto
Usage
The command is not allowed to be set on optical mode of combo port.
Examples
This example shows how to set the speed on a port to 1000 Mb/s:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# speed 1000
This example shows how to return the speed on a port to default value:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no speed
Related Commands
bandwidth
duplex
3.1.6. group-speed
Command Purpose
Use the group-speed interface configuration command to specify the speed of group port. After any port of the group uses this command, all ports of the same group will be configured to the same speed.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
Not supported |
Base |
Command Syntax
group-speed ( 1000 | 10G | 25G | default )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
1000 |
Port runs at 1000 Mb/s |
- |
10G |
Port runs at 10Gb/s |
- |
25G |
Port runs at 25Gb/s |
- |
default |
Port runs at default speed |
- |
Command Mode
Interface Configuration
Default
None
Usage
The command is only used by group port, anyone port of the group uses this command, all port of the same group will be configured to the same speed.
Examples
This example shows how to set the speed on a port of group to 1000 Mb/s:
Switch# configure terminal
Switch(config)# interface eth-0-49
Switch(config-if)# group-speed 1000
% Warning: Speed of Port eth-0-49, eth-0-50, eth-0-51, eth-0-52 will
all be switched to 1000M after entering this CLI
Related Commands
show group-id info
bandwidth
duplex
3.1.7. interface
Command Purpose
Use this command to enter interface mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
interface IFNAME
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
IFNAME |
The name of interface, i.e. eth-0-1, agg1, vlan1, loopback1 |
Support all interface types |
Command Mode
Global Config
Default
None
Usage
The interface name can be either a port name (i.e. eth-0-1) or link-agg name (i.e. agg1) or vlan name (i.e. vlan2) or loop-back name (i.e. loopback10).
Examples
The following example enters the interface mode for eth-0-1:
Switch# configure terminal
Switch(config)# interface eth-0-1
The following example enters the interface mode for agg1:
Switch# configure terminal
Switch(config)# interface agg1
The following example enters the interface mode for vlan2:
Switch# configure terminal
Switch(config)# interface vlan2
Related Commands
exit
3.1.8. interface range
Command Purpose
Use this command to operate a list of interfaces, the interface include physical port, vlan interface, linkagg interface and loopback interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
interface range IFNAME
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
IFNAME |
Interface range |
Support all interface typescan be separate by comma, dash |
Command Mode
Global Config
Default
None
Usage
None
Examples
The following example operate a list of physical interface:
Switch# configure terminal
Switch(config)# interface range eth-0-1 -- 24
Switch(config-if-range)# shutdown
The following example operate a list of vlan interface:
Switch# configure terminal
Switch(config)# interface range vlan 1 - 20
Switch(config-if-range)# shutdown
The following example operate a list of linkagg interface:
Switch# configure terminal
Switch(config)# interface range agg 10 - 20
Switch(config-if-range)# shutdown
The following example operate a list of loopback interface:
Switch# configure terminal
Switch(config)# interface range loopback 0 - 5
Switch(config-if-range)# shutdown
Related Commands
None
3.1.9. interface range create vlan
Command Purpose
Use this command to create a list of vlan interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
interface range create vlan VLAN_RANGE
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
VLAN_RANGE |
VLAN ID range |
VLAN ID range is 1-4094, can be separate by comma, dash |
Command Mode
Global Config
Default
None
Usage
None
Examples
The following example create vlan interface 10 to 20:
Switch# configure terminal
Switch(config)# interface range create vlan 10 - 20
Switch(config-if-range)# shutdown
Related Commands
None
3.1.10. jumboframe
Command Purpose
Use this command to enable jumbo frame. To disable jumbo frame, use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
jumboframe enable
no jumboframe enable
Command Mode
Interface Configuration
Default
None
Usage
Jumboframe is enabled by default. The max frame which can be transmitted is 1534 bytes. When enable jumboframe, the max frame can be 9600 bytes.
Examples
The following example enables the jumboframe:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# jumboframe enable
The following example disables the jumboframe:
Switch(config-if)# no jumboframe enable
Related Commands
None
3.1.11. media-type
Command Purpose
Use the media-type interface configuration command to select a media type for an interface. Use the no form of this command restore to the default value.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
media-type ( auto-select | rj45 | sfp )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
auto-select |
Enable the switch to dynamically select the type based on which one first links up |
- |
rj45 |
Select the RJ-45 interface |
- |
sfp |
Select the small form-factor pluggable (SFP) module interface |
- |
Command Mode
Interface Configuration
Default
Auto-select
Usage
By default, we use auto-select mode.
Examples
The following example shows how to configure the interface as a rj45 media:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# media-type rj45
The following example shows how to restore to default value:
Switch(config-if)# no media-type
Related Commands
None
3.1.12. unidirectional
Command Purpose
Use the unidirectional interface configuration command to enable/disable unidirectional function.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
unidirectional ( enable | disable )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
enable |
enable unidirectional function |
- |
disable |
disable unidirectional function |
- |
Command Mode
Interface Configuration
Default
disable unidirectional function
Usage
Enable unidirectional function will force enable the interface TX function and force disable the interface RX function.
Only fiber port support the unidirectional function, and in 1000M speed mode, duplex must be forced to full mode.
Examples
The following example shows how to enable unidirectional function:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# unidirectional enable
The following example shows how to disable unidirectional function:
Switch(config-if)# unidirectional disable
Related Commands
None
3.1.13. shutdown
Command Purpose
Use the shutdown interface configuration command to admin down an interface. Use the no form of this command to admin up an interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
shutdown
no shutdown
Command Mode
Interface Configuration
Default
None
Usage
None
Examples
The following example shows how to shutdown a port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# shutdown
The following example shows how to admin up a port:
Switch(config-if)# no shutdown
Related Commands
None
3.1.14. split interface
Command Purpose
Use the command to split physic port to 10G port. Use the no form of this command to un-split the physic port.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
split interface IFNAME ( 10giga | 40giga )
no split interface
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
IFNAME |
the physic port need to split |
Support physical ports |
10giga |
split physic port to four 10G port |
- |
40giga |
split physic port to one 10G port |
- |
Command Mode
Global Config
Default
None
Usage
Need save configuration and reboot to make command take effect
Examples
The following example shows how to split interface to four 10G port:
Switch# configure terminal
Switch(config)# split interface eth-0-1 10giga
Related Commands
None
3.1.15. load-interval
Command Purpose
Use the load-interval interface configuration command to specify the interval when calculating speed of an interface. Use the no of this command to return the port to its default value.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
load-interval SECONDS
no load-interval
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
SECONDS |
Load interval |
5-600, unit:second |
Command Mode
Interface Configuration
Default
300 seconds
Usage
Load-interval must be in increments of 5 second and its default value is 300 second.
Examples
This example shows how to set the load-interval on a port to 600 second:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# load-interval 600
This example shows how to return the load-interval on a port to default value:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no load-interval
Related Commands
show interface
3.1.16. vlan dot1q tag native
Command Purpose
Use the vlan dot1q tag native Global Config command to configure the edge switch so that all packets going out an 802.1Q trunk, including the native VLAN.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
vlan dot1q tag native
no vlan dot1q tag native
Command Mode
Interface Configuration
Default
None
Usage
Use this command to enable tagging native. If enabled, the packet in native vlan will be tagged with the native vlan. Otherwise, it will be untagged.
Examples
This example shows how to tag native for trunk port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# vlan dot1q tag native
This example shows how to disable tagging native for trunk port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no vlan dot1q tag native
Related Commands
None
3.1.17. show interface
Command Purpose
Use this command to display the configurations and statistics on all interfaces or an interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show interface ( IFNAME | )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
IFNAME |
The interface name |
eth:Physical interface agg:Aggregation interface loopback:Loopback interface | vlan:Vlan interface | tunnel:Tunnel interface | null:Null interface |
Command Mode
Privileged EXEC
Default
None
Usage
The OAM statistics can only display when port is 10G mode.
Examples
This example shows how to display the configurations and statistics on the interface eth-0-1:
Switch# show interface eth-0-1
Interface eth-0-1
Interface current state: UP
Hardware is Ethernet, address is 0058.3f0a.5102 (bia 0058.3f0a.5102)
Bandwidth 1000000 kbits
Index 1 , Metric 1 , Encapsulation ARPA
Speed - 1000Mb/s , Duplex - Full , Media type is 1000BASE_T_SFP
Up count: 0
Down count: 0
Link type is autonegotiation
Admin input flow-control is off, output flow-control is off
Oper input flow-control is off, output flow-control is off
The Maximum Frame Size is 1632 bytes
VRF binding: not bound
ARP timeout 01:00:00, ARP retry interval 1s
ARP Proxy is disabled, Local ARP Proxy is disabled
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes
Received 0 unicast, 0 broadcast, 0 multicast
0 runts, 0 giants, 0 input errors, 0 CRC
0 frame, 0 overrun, 0 pause input
24 packets output, 2160 bytes
Transmitted 0 unicast, 24 broadcast, 0 multicast
0 underruns, 0 output errors, 0 pause output
0 output discard
Related Commands
show interface status
3.1.18. show interface status
Command Purpose
Use this command to display the brief information on all Ethernet and link aggregation interfaces.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show interface ( IFNAME | ) status
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
IFNAME |
The interface name |
Support aggregation and physical ports |
Command Mode
Privileged EXEC
Default
None
Usage
This command will not show VLAN and tunnel interfaces’ information.
Examples
This example shows how to display the brief information on all Ethernet and LAG interfaces:
Switch# show interface status
Port Status Duplex Speed Mode Type Description
-----------------------------------------------------------------
eth-0-1 down a-full a-1000 ACCESS 1000BASE_T
eth-0-2 down a-full a-1000 ACCESS 1000BASE_T
eth-0-3 admin down auto auto ACCESS 1000BASE_T
eth-0-4 admin down auto auto ACCESS 1000BASE_T
eth-0-5 up a-full a-1000 routed 1000BASE_T
eth-0-6 up a-full a-100 ACCESS 1000BASE_T
eth-0-7 admin down auto auto ACCESS 1000BASE_T
eth-0-8 admin down auto auto ACCESS 1000BASE_T
eth-0-9 down a-full a-1000 ACCESS 1000BASE_T
eth-0-10 down a-full a-1000 ACCESS 1000BASE_T
eth-0-11 admin down auto auto ACCESS 1000BASE_T
eth-0-12 admin down auto auto ACCESS 1000BASE_T
eth-0-13 admin down auto auto ACCESS 1000BASE_T
eth-0-14 admin down auto auto ACCESS 1000BASE_T
eth-0-15 admin down auto auto ACCESS 1000BASE_T
eth-0-16 admin down auto auto ACCESS 1000BASE_T
eth-0-17 admin down auto auto ACCESS 1000BASE_T
eth-0-18 admin down auto auto ACCESS 1000BASE_T
eth-0-19 admin down auto auto ACCESS 1000BASE_T
eth-0-20 admin down auto auto ACCESS 1000BASE_T
Related Commands
None
3.1.19. show interface summary
Command Purpose
Use this command to display the summary on all interfaces or an interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show interface ( IFNAME | ) summary
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
IFNAME |
The interface name |
Support all interface types |
Command Mode
Privileged EXEC
Default
None
Usage
This command will display the summary on all interfaces or an interface in the form of list.
Examples
This example shows how to display the summary on the interface eth-0-1:
Switch# show interface eth-0-1 summary
RXBS: rx rate (bits/sec) RXPS: rx rate (pkts/sec)
TXBS: tx rate (bits/sec) TXPS: tx rate (pkts/sec)
Interface Link RXBS RXPS TXBS TXPS
-----------------------------------------------------------------------------
eth-0-1 DOWN 0 0 0 0
Related Commands
show interface
3.1.20. show ip interface
Command Purpose
Use this command to show layer3 interface information.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show ip interface ( IFNAME | )
show ip interface brief
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
IFNAME |
The interface name, can be eth, vlan or agg |
Support all interface types |
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
This example shows the vlan interface information:
Switch# show interface vlan10
Interface vlan10
Interface current state: DOWN
Hardware is VLAN, address is 8633.d260.6500 (bia 8633.d260.6500)
Bandwidth 1000000 kbits
Index 4098 , Metric 1 , Encapsulation ARPA
The maximum transmit unit (MTU) is 1500 bytes
VRF binding: not bound
Label switching is disabled
No virtual circuit configured
VRRP master of : VRRP is not configured on this interface
ARP timeout 01:00:00, ARP retry interval 1s
Related Commands
None
3.1.21. switchport
Command Purpose
Use this command to configure a port to a bridge (layer 2) or routing (layer 3) mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
switchport
no switchport
Command Mode
Interface Configuration
Default
Switchport
Usage
When using this command to change the mode of a port, all bridge or routing configurations of this port will be cleared and not restored. By default, the port is a switchport.
Examples
This example shows how to configure a port to bridge mode:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport
This example shows how to configure a port to routing mode:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no switchport
Related Commands
None
3.1.22. switchport access allowed
Command Purpose
Use this command to configure whether the specified VLAN flow can pass this access port.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
switchport access allowed vlan ( add | remove ) VLAN_ID
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
add |
Allow the traffic from the vlan to pass the access port |
- |
remove |
Not allow the traffic from the vlan to pass the access port |
- |
VLAN_ID |
Vlan list connected with `-` and `,` , for example, “1-10,15,20,30-40” |
1-4094 |
Command Mode
Interface Configuration
Default
1
Usage
This command is used to allow the traffic from the specific VLAN to pass the access port.
Examples
This example shows how to configure the specified VLAN flow pass through the port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport access allowed vlan add 10
This example shows how to allow the traffic from the vlan11 to pass the port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport access allowed vlan add 11
This example shows how to refuse the traffic from the vlan12 to pass the port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport access allowed vlan remove 12
Related Commands
switchport trunk allowed vlan (add vid|remove vid| all | none)
3.1.23. switchport access vlan
Command Purpose
Use this command to set the default VLAN for access port.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
switchport access vlan VLAN_ID
no switchport access vlan
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
VLAN_ID |
Vlan id |
2-4094 |
Command Mode
Interface Configuration
Default
1
Usage
The port should be an access port by switchport mode access command before add to vlan by this command.
Examples
This example shows how to configure the access port to add to default vlan 10:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
This example shows how to configure the access port to restore to default vlan 1:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no switchport access vlan
Related Commands
switchport trunk native
3.1.24. switchport mode access
Command Purpose
Use this command to configure the port work in access mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
switchport mode access
Command Mode
Interface Configuration
Default
Access Port
Usage
The access mode is usually used to connect the port to a terminal device, such as a PC.
When the mode is changed, both the MAC learnt dynamically and configured statically on the port will be cleared.
Examples
This example shows how to set the switchport mode to access:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport mode access
Related Commands
switchport mode trunk
3.1.25. switchport mode trunk
Command Purpose
Use this command to configure the port work in trunk mode.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
switchport mode trunk
Command Mode
Interface Configuration
Default
Access Port
Usage
The trunk mode is usually used to connect the port with other switch.
The trunk mode is can also used to connect the port with host device.
When the mode is changed, both the MAC learnt dynamically and configured statically on the port will be cleared.
Examples
This example shows how to return the port to default vlan 1:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport mode trunk
Related Commands
switchport mode access
3.1.26. switchport mode dot1q-tunnel
Command Purpose
Use this command to configure the port as QINQ port.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
switchport mode dot1q-tunnel
Command Mode
Interface Configuration
Default
Access Port
Usage
When port mode changed, all the dynamic FDB will be cleared.
Examples
This example shows how to configure the port to QINQ mode:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport mode dot1q-tunnel
Related Commands
switchport mode trunk
3.1.27. switchport trunk allowed
Command Purpose
Use this command to configure whether the specified VLAN flow can pass this trunk port.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
switchport trunk allowed vlan ( add VLAN_ID | remove VLAN_ID | all | none )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
add VLAN_ID |
allow the traffic from the specified vlan to transmit the trunk port. Vlan list connected with `-` and `,` , for example, “1-10,15,20,30-40” |
1-4094 |
remove VLAN_ID |
do not allow the traffic from the specified vlan to transmit the trunk port. Vlan list connected with `-` and `,` , for example,“1-10,15,20,30-40” |
1-4094 |
all |
allow the traffic from all the vlan to transmit the trunk port |
- |
none |
do not allow the traffic from all the vlan to transmit the trunk port |
- |
Command Mode
Interface Configuration
Default
1
Usage
This command is used to allow traffic from specified VLAN to transmit the trunk port.
Examples
This example shows how to configure the specified VLAN flow pass through the port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport trunk allowed vlan add 10
This example shows how to refuse traffic fromthe specified VLAN to transmit the trunk port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport trunk allowed vlan remove 11,12
This example shows how to allow traffic from all vlan to transmit the trunk port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport trunk allowed vlan all
This example shows how to refuse traffic from all vlan to transmit the trunk port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport trunk allowed vlan none
Related Commands
switchport access allowed vlan (add|remove) vid
3.1.28. switchport trunk native vlan
Command Purpose
Use this command to set the default VLAN for trunk port.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
switchport trunk native vlan VLAN_ID
no switchport trunk native vlan
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
VLAN_ID |
Vlan id |
2-4094 |
Command Mode
Interface Configuration
Default
1
Usage
The port should be a trunk port by switchport mode trunk command before add to vlan by this command.
Examples
This example shows how to configure default vlan 10 for trunk port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk native vlan 10
This example shows how to configure the trunk port to restore to default vlan 1:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no switchport trunk native vlan
Related Commands
switchport access vlan vid
3.1.29. switchport port-bridge enable
Command Purpose
Use this command to enable port-bridge, allow homologous and homologous translate.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
Not supported ??? |
Base |
Command Syntax
switchport port-bridge enable
no switchport port-bridge enable
Command Mode
Interface Configuration
Default
None
Usage
None
Examples
This example shows how to enable port-bridge:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# switchport port-bridge enable
Related Commands
port-bridge enable
3.1.30. port-bridge enable
Command Purpose
Use this command to enable port-bridge suppoort multicast and broadcast.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
port-bridge enable
no port-bridge enable
Command Mode
Global Config
Default
None
Usage
None
Examples
This example shows how to enable port-bridge support multicast and broadcast:
Switch# configure terminal
Switch(config)# port-bridge enable
Related Commands
switchport port-bridge enable
3.1.31. port-xconnect
Command Purpose
Use this command to set port cross connect destination interface.Use the no form of this command remove destination interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
port-xconnect destination-interface ( IFPHYSICAL | IFAGG )
no port-xconnect destination-interface
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
IFPHYSICAL |
Physical port |
N/A |
IFAGG |
Aggregate port |
- |
Command Mode
Interface Configuration
Default
None
Usage
None
Examples
This example shows how to set eth-0-1 port-xconnect destination interface to eth-0-2:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface eth-0-1
Switch(config-if)# port-xconnect destination-interface eth-0-2
Related Commands
None
3.1.32. carrier up-hold-time interval
Command Purpose
Use this command to set port up hold time.Use the no form of this command remove port up hold time.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
carrier up-hold-time interval TIME
no carrier up-hold-time interval
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
TIME |
up hold time |
0-3600000,unit is millisecond |
Command Mode
Interface Configuration
Default
0
Usage
None
Examples
This example shows how to set 300ms for eth-0-1 up hold time:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# carrier up-hold-time interval 300
Related Commands
None
3.1.33. carrier down-hold-time interval
Command Purpose
Use this command to set port down hold time. Use the no form of this command remove port down hold time.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
carrier down-hold-time interval TIME
no carrier down-hold-time interval
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
TIME |
down hold time |
0-3600000,unit is millisecond |
Command Mode
Interface Configuration
Default
0
Usage
None
Examples
This example shows how to set 300ms for eth-0-1 down hold time:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# carrier down-hold-time interval 300
Related Commands
None
3.1.34. mtu
Command Purpose
Use this command to configure the maximum transmit unit for this interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
mtu VALUE
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
VALUE |
MTU |
68-9216 |
Command Mode
Interface Configuration
Default
1500
Usage
This command is only allowed to be used in layer3 interface.
Examples
This example shows how to configure MTU 1600 for VLAN interface 10:
Switch# configure terminal
Switch(config)# interface vlan10
Switch(config-if)#mtu 1600
Related Commands
None
3.1.35. wavelength freq
Command Purpose
Use this command to configure the wavelength of tunable fiber used on this interface.Use the no form of this command restore to the default value.Each wavelength corresponds to a fixed frequency and the command sets the wavelength by configuring the frequency.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
wavelength freq FREQ
no wavelength freq
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
FREQ |
fiber frequency |
19110-19615, step is 5 |
Command Mode
Interface Configuration
Default
19340
Usage
The configurations of this command only effective when the tunable fiber is inserted on this interface.
Examples
This example shows how to configure wavelength freq 19120 for interface 10:
Switch# configure terminal
Switch(config)# interface eth-0-10
Switch(config-if) #wavelength freq 19120
Related Commands
None
3.1.36. fec
Command Purpose
Use this command to set fec function for a port. And use the no form of this command to unset fec function for a port.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
fec ( none | baser | rs )
no fec
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
none |
fec none |
- |
baser |
fec baser |
- |
rs |
fec rs |
- |
Command Mode
Interface Configuration
Default
no fec
Usage
FEC is support on 10G/40G/25G/50G/100G physical interface
Examples
The following example shows how to enable fec rs function for a port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if-eth-0-1)# fec rs
The following example shows how to disable fec function for a port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if-eth-0-1)# fec none
The following example shows how to set default fec function for a port:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if-eth-0-1)# no fec
Related Commands
None
3.1.37. mdi
Command Purpose
Use this command to set MDI crossover mode for ethernet port. And use the no form of this command to unset MDI mode for ethernet port
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
mdi ( across | auto | normal )
no mdi
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
auto |
automatic MDI crossover |
- |
across |
Copper media forced to MDIX |
- |
normal |
Copper media forced to MDI |
- |
Command Mode
Interface Configuration
Default
auto
Usage
MDI is support on ethernet interface
Examples
The following example shows how to set automatic MDI crossover:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if-eth-0-1)# mdi auto
The following example shows how to set MDIX mode:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if-eth-0-1)# mdi across
The following example shows how to set MDI mode:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if-eth-0-1)# mdi normal
Related Commands
None
3.1.38. show group-id info
Command Purpose
Use this command to show the group-id information of the interface
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
Not supported ??? |
Base |
Command Syntax
show group-id info
Command Mode
Privileged EXEC
Default
None
Usage
The interfaces in group id 0 are not group ports
Examples
The following example shows the group-id information:
Switch# show group-id info
Group Id Member Ports
-----------+--------------------
0 eth-0-1 eth-0-2
eth-0-3 eth-0-4
eth-0-5 eth-0-6
eth-0-7 eth-0-8
eth-0-9 eth-0-10
eth-0-11 eth-0-12
eth-0-13 eth-0-14
eth-0-15 eth-0-16
eth-0-17 eth-0-18
eth-0-19 eth-0-20
eth-0-21 eth-0-22
eth-0-23 eth-0-24
eth-0-25 eth-0-26
eth-0-27 eth-0-28
eth-0-29 eth-0-30
eth-0-31 eth-0-32
eth-0-33 eth-0-34
eth-0-35 eth-0-36
eth-0-37 eth-0-38
eth-0-39 eth-0-40
eth-0-41 eth-0-42
eth-0-43 eth-0-44
eth-0-45 eth-0-46
eth-0-47 eth-0-48
----------------------------------
1 eth-0-49 eth-0-50
eth-0-51 eth-0-52
Switch#
Related Commands
group-speed