注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 Cisco IOS下载
 帮助

网络配置模板(二)关于VTP VLAN STP配置


2007-04-23 16:19:59
版权声明:原创作品,如需转载,请与作者联系。否则将追究法律责任。
创建VTP 域
  switch(config)# vtp domian domain_name
配置交换机的VTP模式
  switch(config)# vtp mode server | client | transparent
配置VTP口令
 switch(config)# vtp password password
配置VTP修剪
 switch(config)# vtp pruning
VTP版本的配置
 switch(config)# vtp version 2
查看VTP信息
SwA#show vtp status
配置TRUNK
SwA(config)#interface fastEthernet 0/23
SwA(config-if)#switchport mode trunk
==============================================================
SwA#vlan database 进入VLAN配置模式
SwA(vlan)#vlan 2 name sales 建立VLAN2 名字 SALES
SwA(vlan)#vlan 3 name develop
SwA(vlan)#exit
SwA(config)#interface vlan 2
SwA(config-if)#ip address 192.168.1.1 255.255.255.0
SwA(config-if)#no shutdown
在SwA的VLAN中添加端口
SwA(config)#interface range fastEthernet 0/2 - 3
SwA(config-if-range)#switchport access vlan 2
SwA(config)#interface range fastEthernet 0/4 - 5
SwA(config-if-range)#switchport access vlan 3
在SwA上查看VLAN信息
SwA#show vlan brief
 

本文出自 “天上飘的猫~Blog” 博客,转载请与作者联系!





    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: