yanchuen 发表于 2018-7-13 07:17:16

cisco路由交换命令大全

许的VLAN.使用add, all, except, remove关健字  no switchport trunk allowed vlan 允许所有VLAN通过
  例
  Switch(config)# interface fastethernet0/1
  Switch(config-if)# switchport trunk allowed vlan remove 2
  Switch(config-if)# end
  配置Native VLAN(802.1q)
  configure terminal 进入配置状态
  interface interface-id 进入配置成802.1qtrunk的端口
  switchport trunk native vlan vlan-Id 配置native VLAN号
  no switchport trunk native vlan 端口配置命令回到缺省的状态
  配置基于端口权值的负载均衡
  configure terminal 进入Switch 1配置状态
  vtp domain domain-name 配置VTP域
  vtp mode server 将Switch 1配置成VTP server.
  show vtp status 验证VTP的配置
  show vlan 验证VLAN
  configure terminal 进入配置状态
  interface fastethernet 0/1 进入F0/1端口
  switchport trunk encapsulation {isl | dot1q | negotiate}配置trunk封装
  switchport mode trunk 配置成trunk
  show interfaces fastethernet0/1 switchport 验证VLAN配置
  按以上步骤对想要负载均衡的接口进行配置
  在另一个交换机上进行此配置
  show vlan 当trunk已经起来,在switch2上验证已经学到相的vlan配置
  configure terminal 在Switch 1上进入配置状态
  interface fastethernet0/1 进入要配置的端口
  spanning-tree vlan 8 port-priority 10 将端口权值10赋与VLAN 8.
  spanning-tree vlan 9 port-priority 10 将端口权值10赋与VLAN 9.
  spanning-tree vlan 10 port-priority 10 将端口权值10赋与VLAN 10.
  interface fastethernet0/2 进入F0/2
  spanning-tree vlan 3 port-priority 10 将端口权值10赋与VLAN 3.
  spanning-tree vlan 4 port-priority 10 将端口权值10赋与VLAN 4
  spanning-tree vlan 5 port-priority 10 将端口权值10赋与VLAN 5
  spanning-tree vlan 6 port-priority 10 将端口权值10赋与VLAN 10
  end 退出
  show running-config 验证配置
  copy running-config startup-config 保存配置
页: [1]
查看完整版本: cisco路由交换命令大全