参考:
Cisco 3548(3524) 交换机:
第一次连接交换机,配置终端参数为:
波特率:9600;数据位:8;停止位:1;奇偶校验:无;流控制:无。
通过串口线连上路由器后,按回车,即可看到配置向导:
(如果不是第一次配置,可以进入超级用户模式后用命令setup调用以下过程)
--- ystem Configuratio Dialog ---
At any oint you may enter a questio mark ? for help.任何时候可以打?取得帮助
Use ctrl-c to abort configuratio dialog at any rompt.按Ctrl-C可以取消并退出
Default etting are i quare racket [].默认参数在[]中
Continue with configuratio dialog? [yes/no]: y继续交互配置吗?回答:y
Enter I addre : 10.1.1.249ip地址
Enter I etmask: 255.255.255.0子网掩码
Would you like to enter a default gateway addre ? [yes]: y设置默认网关?y
I addre of default gateway: 10.1.1.254默认网关
Enter host ame [3548_9A]:
The enable ecret i a one-way cryptographic ecret used
i tead of the enable a word whe it exists.
Enter enable ecret: _pa word输入超级用户密码
Would you like to configure a Telnet a word? [yes]: y
Enter Telnet a word: _pa word输入telnet密码
Would you like to enable a a cluster command witch? [yes/no]: 集群模式?
The following configuratio command cript wa created:已建立以下配置信息
i u et-zero
interface VLAN1
i addre 10.1.1.249 255.255.255.0
i default-gateway 10.1.1.254
enable ecret 5 $1$biZ3$AOLb9cMTtBwMtGB9lyBzr.
line vty 0 15
pa word _domainwlzx
m community rivate rw
m community ublic ro
!
end
Use thi configuration? [yes/no]:使用该配置信息吗? y
修改配置:
禁止通过 mp管理:
3548>enable
pa word:
3548#config term
3548(config)#no m community rivate
3548(config)#no m community ublic
接着配置干道:(确定上级交换机对应端口已设为干道模式)
3548(config)#inter g0/1 选择第一个千兆口
3548(config if)# witchport mode trunk设为干道模式
如果g0/2用于连接另一台3548,也设为干道
3548(config)#inter g0/2
3548(config if)# witchport mode trunk
返回
3548(config if)# exit
3548(config)# exit
3548#
验证: ing 10.1.1.254
配置Vlan数据:
3548#vla database
3548(vlan)#reset清除以前的配置
3548(vlan)#vt client设为vtp客户模式
3548(vlan)#vt domai _domainvtp域是_domai
3548(vlan)#vt a word ********设定vtp域密码
3548(vlan)#exit
3548#
验证:show vt tatus显示vla 数据
show vt counter
show vla
同步后看到的vlan数目和名称应与6506上的一致
指定端口到Vlan、配置端口为portfast方式(快速建立连接):
方法1:命令方式
3548#config term
3548(config)#inter f0/1配置1号快速以太网端口
3548(config if)# witchport acce vla 2指定端口到Vla 2
3548(config if)# a ing-tree ortfast配置端口为portfast方式
3548(config)#inter f0/2配置1号快速以太网端口
3548(config if)# witchport acce vla 2指定端口到Vla 2
3548(config if)# a ing-tree ortfast配置端口为portfast方式
...对每个要设定的端口重复上述步骤。
3548(config if)# exit
3548(config)# exit
3548#
方法1:We 方式
(预先要安装插件:jre-1-2-2-005-win-i-09-mar-2000.exe)
打开浏览器连接设备:在地址栏输入设备的管理页面url,如3548_9a(10.1.1.248)为:http://10.1.1.249/basiccfg.html
选中菜单port -> ort configure -> 设port fast 为Enable
选中菜单vla -> vla membershi -> 指定端口所属的Vlan号 可同时指定多个端口
保存配置信息:
方法1:命令方式
3548# write ( 或 copy ru ing-config tartup-config )
方法1:We 方式
选中设备(而不是单个端口),点击save configure按钮。
3548_9A#show ru
Building configuration...
Current configuration:
!
versio 12.0#软件版本
no ervice ad
service timestam debug uptime
service timestam log uptime
no ervice a word-encryptio
!
hostname 3548_9A#系统名称
!
enable ecret 5 $1$4ZMs$rfC.g/ .owt3eW2uoCL/0#加密后的enable密码
!
!
!
!
!
!
i u et-zero
!
!
!
interface FastEthernet0/1#模块0的1号快速以太网接口
switchport acce vla 5#指定端口0/1到vla 5
a ing-tree ortfast#如果接的是工作站,指定端口为portfast方式(不运行生成树协议,加快建立连接速度)
!
interface FastEthernet0/2
a ing-tree ortfast#默认情况下端口属vla 1
!
interface FastEthernet0/3
a ing-tree ortfast
!
interface FastEthernet0/4
a ing-tree ortfast
!
interface FastEthernet0/5
a ing-tree ortfast
!
interface FastEthernet0/6
a ing-tree ortfast
!
interface FastEthernet0/7
a ing-tree ortfast
!
interface FastEthernet0/8
a ing-tree ortfast
!
interface FastEthernet0/9
a ing-tree ortfast
!
interface FastEthernet0/10
a ing-tree ortfast
!
interface FastEthernet0/11
a ing-tree ortfast
!
interface FastEthernet0/12
a ing-tree ortfast
!
interface FastEthernet0/13
a ing-tree ortfast
!
interface FastEthernet0/14
a ing-tree ortfast
!
interface FastEthernet0/15
a ing-tree ortfast
!
interface FastEthernet0/16
a ing-tree ortfast
!
interface FastEthernet0/17
a ing-tree ortfast
!
interface FastEthernet0/18
a ing-tree ortfast
!
interface FastEthernet0/19
a ing-tree ortfast
!
interface FastEthernet0/20
a ing-tree ortfast
!
interface FastEthernet0/21
a ing-tree ortfast
!
interface FastEthernet0/22
a ing-tree ortfast
!
interface FastEthernet0/23
a ing-tree ortfast
!
interface FastEthernet0/24
a ing-tree ortfast
!
interface FastEthernet0/25
a ing-tree ortfast
!
interface FastEthernet0/26
a ing-tree ortfast
!
interface FastEthernet0/27
a ing-tree ortfast
!
interface FastEthernet0/28
a ing-tree ortfast
!
interface FastEthernet0/29
a ing-tree ortfast
!
interface FastEthernet0/30
a ing-tree ortfast
!
interface FastEthernet0/31
a ing-tree ortfast
!
interface FastEthernet0/32
a ing-tree ortfast
!
interface FastEthernet0/33
a ing-tree ortfast
!
interface FastEthernet0/34
a ing-tree ortfast
!
interface FastEthernet0/35
a ing-tree ortfast
!
interface FastEthernet0/36
a ing-tree ortfast
!
interface FastEthernet0/37
a ing-tree ortfast
!
interface FastEthernet0/38
a ing-tree ortfast
!
interface FastEthernet0/39
a ing-tree ortfast
!
interface FastEthernet0/40
a ing-tree ortfast
!
interface FastEthernet0/41
a ing
! 注意: 如果把一个端口指定到不存在的VLAN上,3548交换机的VLAN同步会异常,此时应该为正确VLAN并重新“配置Vlan数据”


