网络连接top图
以10条宽带的光猫举例,连接的交换机端口配置如下:如果更多vlan依次类推
interface GigabitEthernet3/0/1
port link-type access
port default vlan 301
#
interface GigabitEthernet3/0/2
port link-type access
port default vlan 302
#
interface GigabitEthernet3/0/3
port link-type access
port default vlan 303
#
interface GigabitEthernet3/0/4
port link-type access
port default vlan 304
#
interface GigabitEthernet3/0/5
port link-type access
port default vlan 305
#
interface GigabitEthernet3/0/6
port link-type access
port default vlan 306
#
interface GigabitEthernet3/0/7
port link-type access
port default vlan 307
#
interface GigabitEthernet3/0/8
port link-type access
port default vlan 308
#
interface GigabitEthernet3/0/9
port link-type access
port default vlan 309
#
interface GigabitEthernet3/0/10
port link-type access
port default vlan 310
服务器连接的交换机端口配置如下, 如果宽带条数大于10条, vlan依次类推
interface XGigabitEthernet0/0/1
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 301 to 310