- 论坛徽章:
- 0
|
总结和归档了各大型号的主要配置和区别,希望和大家一起分享!! ##################################################<br /> 1900 基本配置:<br /> Switch(config)# hostname 1900<br /> Switch(config)# enable password level 1-15 密码 (用户EXEC级别为1至特权EXEC级别15)<br /> Switch(config)# enable secret quansheng<br /> Switch(config)# line console 0<br /> Switch(config-line)# password quansheng<br /> Switch(config)# line vty 0 15 (为telnet设置密码)<br /> Switch(config-line)# password quansheng<br /> Switch(config-line)# login<br /> 1900 IP寻址: (与2950区别:1900进入接口模式 2950进入VLAN)<br /> Switch(config)# interface e0/1<br /> Switch(config-if)# ip address 192.168.0.10 255.255.255.0<br /> Switch(config-if)# no shutdown<br /> Switch(config-if)# exit<br /> Switch(config)# ip default-gateway 192.168.0.1<br /> 1900 vlan vtp配置:<br /> 1900(config)# vtp domain 域名 (必须有)<br /> 1900(config)# vtp server|client|transparent (设置交换机为服务器|客户端|透明,默认启用server)<br /> 1900(config)# vtp password 密码 (设置密码,发送VTP信息与其它交换机匹配)<br /> 1900(config)# vtp pruning enable|disable (默认启用修剪)<br /> 1900(config)# vtp trap enable|disalbe (默认启用陷阱)<br />1900 中继配置:<br /> 1900(config)# interface f0/1<br /> 1900(config-if)# trunk on | off | desirable | auto (记住1900只支持ISL中继, show trunk A|B,接口A指f0/26,B指f0/27)<br /> 1900 VLAN配置:<br /> 1900(config)# vlan [2-64] name VLAN名称<br /> 1900(config)# ineterface f0/1<br /> 1900(config-if)# vlan-membership static 2 (为接口分配所属VLAN号)<br /> 1900# show vlan (查看VLAN配置信息)<br /> 1900# show vlan-membership<br /> 1900# show spantree 1 (查看DTP信息)##################################################<br /> 2950 vlan vtp配置:<br /> 2950# vlan database (与1900不同之处,必须进入特权EXEC模式)<br /> 2950(vlan)# vtp domain 域名 (必须有)<br /> 2950(vlan)# vtp server|client|transparent (设置交换机为服务器|客户端|透明,默认启用server)<br /> 2950(vlan)# vtp password 密码 (设置密码,发送VTP信息与其它交换机匹配)<br /> 2950(vlan)# vtp pruning (默认禁用)<br /> 2950(vlan)# abort (默认禁用)<br /> 或<br /> 2950(vlan)# exit<br /> 2950# configure terminal<br /> 2950(config)# snmp-server enable traps vtp<br /> 2950# show vtp stutus (查看VTP状态信息)<br /> 2950# show vtp counters (显示VTP消息发送与接收统计信息)<br /> 2950(config)# switchport trunk pruning vlan remove 2-4,6,8(用逗号分隔不连续的VLAN ID,其间不要有空格,用短线表明一个ID范围。比如去除VLAN2、3、4、6和<br /> 2950 中继配置: (2950所有端口都支持中继)<br /> 2950(config)# interface type 0/1<br /> 2950(config-if)# switchport mode trunk | dynamic desirable | dynamic auto | nonegotiate<br /> 2950(config-if)# switchport trunk [native vlan vlan_#]<br /> 2950# show interface f0/1 switchport | trunk (查看中继配置)<br /> 2950# show interfaces trunk<br /> 2950 VLAN配置:<br /> 2950# vlan database<br /> 2950(config)# vlan 2 name [vlan名称]<br /> 2950(config)# interface f0/1 (为接口分配所属VLAN号)<br /> 2950(config-if)# switchport mode access<br /> 2950(config-if)# switchport access vlan 2<br />资料来源于:江苏万和计算机培训中心 http://microsoft.wanho.net/index.asp?sid=93&nid=437&action=listinfo |
|