g 0/0/1下面加了一台标准交换的傻瓜交换机
PC连着傻瓜交换机,但是ping不同自己的网关10.134.148.1 ,配置如下
#
vlan 140
ip-subnet-vlan 0 ip 10.134.140.0 255.255.255.0
#
vlan 141
ip-subnet-vlan 0 ip 10.134.141.0 255.255.255.0
#
vlan 142
description Else
ip-subnet-vlan 0 ip 10.134.142.0 255.255.255.0
#
vlan 146
ip-subnet-vlan 0 ip 10.134.146.0 255.255.255.0
#
vlan 148
ip-subnet-vlan 0 ip 10.134.148.0 255.255.255.0
#
stp global enable
#
interface NULL0
#
interface Vlan-interface140
ip address 10.134.140.1 255.255.255.0
#
interface Vlan-interface141
ip address 10.134.141.1 255.255.255.0
#
interface Vlan-interface142
ip address 10.134.142.1 255.255.255.0
#
interface Vlan-interface146
ip address 10.134.146.1 255.255.255.0
#
interface Vlan-interface148
ip address 10.134.148.1 255.255.255.0
#
interface GigabitEthernet0/0/1
port link-mode bridge
port link-type hybrid
port hybrid vlan 1 140 to 142 146 148 untagged
port hybrid ip-subnet-vlan vlan 140
port hybrid ip-subnet-vlan vlan 141
port hybrid ip-subnet-vlan vlan 142
port hybrid ip-subnet-vlan vlan 146
port hybrid ip-subnet-vlan vlan 148
#
能识别,抓包看数据帧,也有802.1q,vid和配置的也一样
这个是基于ip的vlan,下面链接的傻瓜交换机上有其他vlan的ip地址