[1-22lou]port-group manual 1
#批量配置端口
port-group manual 1
group-member GigabitEthernet 1/0/1 to GigabitEthernet 1/0/28
port link-type trunk
port trunk permit all
save
V2 版本的命令:interface range Ethernet1/0/1 to ethernet1/0/48
——————————————————————
进入vlan中,让指定端口通过
>vlan12
vlan12>port GigabitEthernet 2/0/10
_____________________________'
dis bri int /查看所有端口状态
The brief information of interface(s) under bridge mode:
Interface Link Speed Duplex Link-type PVID
GE2/0/1 DOWN auto auto access 300
GE2/0/2 DOWN auto auto access 201
GE2/0/3 DOWN auto auto access 100
GE2/0/4 DOWN auto auto access 100
mac-address //显示所有mac地址,所属于的vlan和 端口
mac-authentication
mac-vlan
MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)
0002-3fe7-a9c3 10 Learned GigabitEthernet2/0/17 AGING
001a-64dc-76e3 15 Learned GigabitEthernet2/0/18 AGING
0021-5e7a-65f0 10 Learned GigabitEthernet2/0/18 AGING
0021-9727-b2e1 18 Learned GigabitEthernet2/0/17 AGING
0090-0b12-d500 16 Learned GigabitEthernet2/0/18 AGING
0201-0000-0000 10 Learned GigabitEthernet2/0/18 AGING
782b-cb65-5902 15 Learned GigabitEthernet2/0/18 AGING
dis arp?
arp
arp-snooping
>dis arp //显示IP地址所连接的端口
Type: S-Static D-Dynamic O-Openflow
IP Address MAC Address VLAN ID Interface Aging Type
172.16.500.107 000f-e2be-f9b4 1 GE1/0/52 20 D
172.16.500.122 0440-a920-2f9a 1 GE1/0/52 7 D
172.16.400.103 0440-a920-25da 1 GE1/0/52 7 D
>
>dis arp vlan 17 //显示指定vlan中的ip及mac 及通过的端口 dis arp all 所有vlan中的
Type: S-Static D-Dynamic
IP Address MAC Address VLAN ID Interface Aging Type
172.16.17.102 90b1-1c59-e79d 17 GE3/0/2 20 D
172.16.17.104 8cab-8e1c-0f30 17 GE3/0/2 20 D
display arp vlan 1,查看默认vlan,前提是你vlan 1的三层接口地址已经设置。