交换机vlan配置:Cisco3524交换机配置VLAN例子来源: 发布时间:星期日, 2008年12月14日 浏览:186次 评论:0
参考: 3548(3524) 机: 第 ![]() ![]() 波特率:9600;数据位:8;停止位:1;奇偶校验:无;流控制:无 ![]() 通过串口线连上器后 ![]() ![]() (如果不是第 ![]() ![]() ![]() ![]() --- ![]() At any po ![]() Use ctrl-c to abort configuration dialog at any prompt.按Ctrl-C可以取消并退出 Default ![]() ![]() ![]() Continue with configuration dialog? [yes/no]: y继续交互配置吗?回答:y Enter IP address: 10.1.1.249ip地址 Enter IP netmask: 255.255.255.0子网掩码 Would you like to enter a default gateway address? [yes]: y设置默认网关?y IP address of default gateway: 10.1.1.254默认网关 Enter host name [3548_9A]: The enable secret is a one-way cryptographic secret used instead of the enable password when it exists. Enter enable secret: _password输入超级用户密码 Would you like to configure a Telnet password? [yes]: y Enter Telnet password: _password输入telnet密码 Would you like to enable as a cluster command switch? [yes/no]: n集群模式?n The following configuration command script was created:已建立以下配置信息 ip subnet-zero ![]() ip address 10.1.1.249 255.255.255.0 ip default-gateway 10.1.1.254 enable secret 5 $1$biZ3$AOLb9cMTtBwMtGB9lyBzr. line vty 0 15 password _do ![]() snmp community private rw snmp community public ro ! end Use this configuration? [yes/no]:使用该配置信息吗? y 修改配置: 禁止通过snmp管理: 3548>enable password: 3548#config term 3548(config)#no snmp community private 3548(config)#no snmp community public 接着配置干道:(确定上级交换机对应端口已设为干道模式) 3548(config)# ![]() ![]() 3548(config ![]() 如果g0/2用于连接另 ![]() 3548(config)# ![]() 3548(config ![]() 返回 3548(config ![]() 3548(config)# exit 3548# 验证: ping 10.1.1.254 配置Vlan数据: 3548#vlan database 3548(vlan)#re ![]() ![]() 3548(vlan)#vtp client设为vtp客户模式 3548(vlan)#vtp do ![]() ![]() ![]() 3548(vlan)#vtp password ********设定vtp域密码 3548(vlan)#exit 3548# 验证:show vtp status显示vlan 数据 show vtp counters show vlan 同步后看到 ![]() ![]() ![]() 指定端口到Vlan、配置端口为portfast方式(快速建立连接): 思路方法1:命令方式 3548#config term 3548(config)# ![]() 3548(config ![]() 3548(config ![]() 3548(config)# ![]() 3548(config ![]() 3548(config ![]() ...对每个要设定 ![]() ![]() 3548(config ![]() 3548(config)# exit 3548# 思路方法1:Web 方式 (预先要安装插件:jre-1-2-2-005-win-i-09-mar-2000.exe) 打开浏览器连接设备:在地址栏输入设备 ![]() ![]() 选中菜单port -> port configure -> 设port fast 为Enable 选中菜单vlan -> vlan membership -> 指定端口所属 ![]() ! 注意: 如果把 ![]() ![]() ![]() ![]() ![]() 保存配置信息: 思路方法1:命令方式 3548# write ( 或 copy running-config startup-config ) 思路方法1:Web 方式 选中设备(而不是单个端口) ![]() ![]() 3548_9A#show run Building configuration... Current configuration: ! version 12.0#软件Software版本 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname 3548_9A#系统名称 ! enable secret 5 $1$4ZMs$rfC.g/nN.owt3eW2uoCL/0#加密后 ![]() ! ! ! ! ! ! ip subnet-zero ! ! ! ![]() ![]() switchport access vlan 5#指定端口0/1到vlan 5 spanning-tree portfast#如果接 ![]() ![]() ![]() ! ![]() spanning-tree portfast#默认情况下端口属vlan 1 ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning-tree portfast ! ![]() spanning 0
相关文章
读者评论
发表评论 |