2、PVID(本征VLAN)实验配置步骤

实验拓扑图:

2、PVID(本征VLAN)实验配置步骤

实验配置思路:

  1. 将VLAN10配置为本征VLAN

实验摘要重点命令:

[SW1]int g0/0/1     //进入接口
[SW1-GigabitEthernet0/0/1]port trunk pvid vlan 10     //将VLAN10设置为本征VLAN
[SW1-GigabitEthernet0/0/1]quit     //退出
[SW1]

实验详细配置步骤:

配置PVID

SW1——配置PVID

[SW1]int g0/0/1     //进入接口
[SW1-GigabitEthernet0/0/1]port trunk pvid vlan 10     //将VLAN10设置为本征VLAN
[SW1-GigabitEthernet0/0/1]quit     //退出
[SW1]

SW2——配置PVID

[SW2]int g0/0/1     //进入接口
[SW2-GigabitEthernet0/0/1]port trunk pvid vlan 10    //将VLAN10设置为本征VLAN
[SW2-GigabitEthernet0/0/1]quit     //退出
[SW2]

SW1——查看接口VLAN信息

[SW1]dis port vlan 
Port                    Link Type    PVID  Trunk VLAN List
-------------------------------------------------------------------------------
Ethernet0/0/1           access       10    -                                   
Ethernet0/0/2           access       10    -                                   
Ethernet0/0/3           access       20    -                                   
Ethernet0/0/4           hybrid       1     -                                   
Ethernet0/0/5           hybrid       1     -                                   
Ethernet0/0/6           hybrid       1     -                                   
Ethernet0/0/7           hybrid       1     -                                   
Ethernet0/0/8           hybrid       1     -                                   
Ethernet0/0/9           hybrid       1     -                                   
Ethernet0/0/10          hybrid       1     -                                   
Ethernet0/0/11          hybrid       1     -                                   
Ethernet0/0/12          hybrid       1     -                                   
Ethernet0/0/13          hybrid       1     -                                   
Ethernet0/0/14          hybrid       1     -                                   
Ethernet0/0/15          hybrid       1     -                                   
Ethernet0/0/16          hybrid       1     -                                   
Ethernet0/0/17          hybrid       1     -                                   
Ethernet0/0/18          hybrid       1     -                                   
Ethernet0/0/19          hybrid       1     -                                   
Ethernet0/0/20          hybrid       1     -                                   
Ethernet0/0/21          hybrid       1     -                                   
Ethernet0/0/22          hybrid       1     -                                   
GigabitEthernet0/0/1    trunk        10    1-4094      //PVID为10,代表VLAN10
GigabitEthernet0/0/2    hybrid       1     -                                   
[SW1]
上一篇:event


下一篇:Oracle 更改服务名方法