正文

Cisco交换机3548配置2006-05-17 11:22:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/lizoulee/14257.html

分享到:

第一次连接交换机,配置终端参数为:波特率:9600;数据位:8;停止位:1;奇偶校验:无;流控制:无。通过串口线连上路由器后,按回车,即可看到配置向导:(如果不是第一次配置,可以进入超级用户模式后用命令setup调用以下过程)--- System Configuration Dialog ---At any point you may enter a question mark '?' for help.任何时候可以打?取得帮助Use ctrl-c to abort configuration dialog at any prompt.按Ctrl-C可以取消并退出Default settings are in square brackets '[]'.默认参数在[]中Continue with configuration dialog? [yes/no]: y继续交互配置吗?回答:yEnter IP address: 10.1.1.249ip地址Enter IP netmask: 255.255.255.0子网掩码Would you like to enter a default gateway address? [yes]: y设置默认网关?yIP address of default gateway: 10.1.1.254默认网关Enter host name [3548_9A]:The enable secret is a one-way cryptographic secret usedinstead of the enable password when it exists.Enter enable secret: _password输入超级用户密码Would you like to configure a Telnet password? [yes]: yEnter Telnet password: _password输入telnet密码Would you like to enable as a cluster command switch? [yes/no]: n集群模式?nThe following configuration command script was created:已建立以下配置信息ip subnet-zerointerface VLAN1ip address 10.1.1.249 255.255.255.0ip default-gateway 10.1.1.254enable secret 5 $1$biZ3$AOLb9cMTtBwMtGB9lyBzr.line vty 0 15password _domainwlzxsnmp community private rwsnmp community public ro!endUse this configuration? [yes/no]:使用该配置信息吗? y修改配置:禁止通过snmp管理:3548>enablepassword: 3548#config term3548(config)#no snmp community private3548(config)#no snmp community public接着配置干道:(确定上级交换机对应端口已设为干道模式)3548(config)#inter g0/1 选择第一个千兆口3548(config if)# switchport mode trunk设为干道模式如果g0/2用于连接另一台3548,也设为干道3548(config)#inter g0/23548(config if)# switchport mode trunk返回3548(config if)# exit3548(config)# exit3548#验证: ping 10.1.1.254配置Vlan数据:3548#vlan database3548(vlan)#reset清除以前的配置3548(vlan)#vtp client设为vtp客户模式3548(vlan)#vtp domain _domainvtp域是_domain3548(vlan)#vtp password ********设定vtp域密码3548(vlan)#exit3548#验证:show vtp status显示vlan 数据show vtp countersshow vlan同步后看到的vlan数目和名称应与6506上的一致指定端口到Vlan、配置端口为portfast方式(快速建立连接):方法1:命令方式3548#config term3548(config)#inter f0/1配置1号快速以太网端口3548(config if)# switchport access vlan 2指定端口到Vlan 23548(config if)# spanning-tree portfast配置端口为portfast方式3548(config)#inter f0/2配置1号快速以太网端口3548(config if)# switchport access vlan 2指定端口到Vlan 23548(config if)# spanning-tree portfast配置端口为portfast方式...对每个要设定的端口重复上述步骤。3548(config if)# exit3548(config)# exit3548#方法1:Web 方式(预先要安装插件: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 -> port configure -> 设port fast 为Enable选中菜单vlan -> vlan membership -> 指定端口所属的Vlan号 可同时指定多个端口! 注意: 如果把一个端口指定到不存在的VLAN上,3548交换机的VLAN同步会异常,此时应该为正确VLAN并重新“配置Vlan数据”保存配置信息:方法1:命令方式3548# write ( 或 copy running-config startup-config )方法1:Web 方式选中设备(而不是单个端口),点击save configure按钮。3548_9A#show runBuilding configuration...Current configuration:!version 12.0#软件版本no service padservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname 3548_9A#系统名称!enable secret 5 $1$4ZMs$rfC.g/nN.owt3eW2uoCL/0#加密后的enable密码!!!!!!ip subnet-zero!!!interface FastEthernet0/1#模块0的1号快速以太网接口switchport access vlan 5#指定端口0/1到vlan 5spanning-tree portfast#如果接的是工作站,指定端口为portfast方式(不运行生成树协议,加快建立连接速度)!interface FastEthernet0/2spanning-tree portfast#默认情况下端口属vlan 1!interface FastEthernet0/3spanning-tree portfast!interface FastEthernet0/4spanning-tree portfast!interface FastEthernet0/5spanning-tree portfast!interface FastEthernet0/6spanning-tree portfast!interface FastEthernet0/7spanning-tree portfast!interface FastEthernet0/8spanning-tree portfast!interface FastEthernet0/9spanning-tree portfast!interface FastEthernet0/10spanning-tree portfast!interface FastEthernet0/11spanning-tree portfast!interface FastEthernet0/12spanning-tree portfast!interface FastEthernet0/13spanning-tree portfast!interface FastEthernet0/14spanning-tree portfast!interface FastEthernet0/15spanning-tree portfast!interface FastEthernet0/16spanning-tree portfast!interface FastEthernet0/17spanning-tree portfast!interface FastEthernet0/18spanning-tree portfast!interface FastEthernet0/19spanning-tree portfast!interface FastEthernet0/20spanning-tree portfast!interface FastEthernet0/21spanning-tree portfast!interface FastEthernet0/22spanning-tree portfast!interface FastEthernet0/23spanning-tree portfast!interface FastEthernet0/24spanning-tree portfast!interface FastEthernet0/25spanning-tree portfast!interface FastEthernet0/26spanning-tree portfast!interface FastEthernet0/27spanning-tree portfast!interface FastEthernet0/28spanning-tree portfast!interface FastEthernet0/29spanning-tree portfast!interface FastEthernet0/30spanning-tree portfast!interface FastEthernet0/31spanning-tree portfast!interface FastEthernet0/32spanning-tree portfast!interface FastEthernet0/33spanning-tree portfast!interface FastEthernet0/34spanning-tree portfast!interface FastEthernet0/35spanning-tree portfast!interface FastEthernet0/36spanning-tree portfast!interface FastEthernet0/37spanning-tree portfast!interface FastEthernet0/38spanning-tree portfast!interface FastEthernet0/39spanning-tree portfast!interface FastEthernet0/40spanning-tree portfast!interface FastEthernet0/41spanning-tree portfast!interface FastEthernet0/42spanning-tree portfast!interface FastEthernet0/43spanning-tree portfast!interface FastEthernet0/44spanning-tree portfast!interface FastEthernet0/45spanning-tree portfast!interface FastEthernet0/46spanning-tree portfast!interface FastEthernet0/47spanning-tree portfast!interface FastEthernet0/48spanning-tree portfast!interface GigabitEthernet0/1switchport mode trunk#设置G0/1为运行isl协议的干道,默认允许所有vlan通过!interface GigabitEthernet0/2!interface VLAN1ip address 10.1.1.249 255.255.255.0#本交换机的IP地址no ip directed-broadcastno ip route-cache!ip default-gateway 10.1.1.254#默认网关snmp-server engineID local 00000009020000036BC!line con 0transport input nonestopbits 1line vty 0 4password _password#telnet密码loginline vty 5 15password _password#telnet密码login!end

阅读(1122) | 评论(0)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

暂无评论
您需要登录后才能评论,请 登录 或者 注册