6-10
port
Syntax
port interface-list
undo port interface-list
View
VLAN view
Default Level
2: System level
Parameters
interface interface-list
: Specifies an Ethernet port list or Layer-2 aggregate interface list, in the format
of
interface-list
= {
interface-type interface-number
[
to
interface-type interface-number
] }&<1-10>,
where &<1-10> indicates that you can specify up to 10 ports or port ranges.
Description
Use the
port
command to assign the specified access port(s) to the current VLAN.
Use the
undo port
command to remove the specified access port(s) from the current VLAN.
By default, all ports are in VLAN 1.
Note that:
z
This command is only applicable on access ports.
z
All ports are access ports by default. However, you can manually configure the port type. For more
information, refer to
port link-type
.
Related commands:
display vlan
.
Examples
# Assign GigabitEthernet 1/0/1 through GigabitEthernet 1/0/3 to VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] port gigabitethernet 1/0/1 to gigabitethernet 1/0/3
port access vlan
Syntax
port access vlan vlan-id
undo
port
access vlan
View
Ethernet interface view, port group view, Layer-2 aggregate interface view
Default Level
2: System level
Содержание E4510-48G
Страница 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Страница 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Страница 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Страница 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Страница 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Страница 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Страница 857: ...iii 7 Track Configuration Commands 7 1 Track Configuration Commands 7 1 display track 7 1 track nqa 7 2 ...
Страница 914: ...5 17 Sysname reset oam ...
Страница 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Страница 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...