Cisco3524交换机配置VLAN实例
来源:Vlan9.com收集整理 作者: 出处:综艺读书 2007-07-19参考:
Cisco 3548(3524) 交换机:
第一次连接交换机,配置终端参数为:
波特率:9600;数据位:8;停止位:1;奇偶校验:无;流控制:无。
通过串口线连上路由器后,按回车,即可看到配置向导:
|
|
|||
--- 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继续交互配置吗?回答: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
interface VLAN1
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 _domainwlzx
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)#inter g0/1 选择第一个千兆口
3548(config if)# switchport mode trunk设为干道模式
如果g0/2用于连接另一台3548,也设为干道
3548(config)#inter g0/2
3548(config if)# switchport mode trunk
返回
3548(config if)# exit
3548(config)# exit
3548#
验证: ping 10.1.1.254
配置Vlan数据:
3548#vlan database
3548(vlan)#reset清除以前的配置
3548(vlan)#vtp client设为vtp客户模式
3548(vlan)#vtp domain _domainvtp域是_domain
3548(vlan)#vtp password ********设定vtp域密码
3548(vlan)#exit
3548#
验证:show vtp status显示vlan 数据
show vtp counters
show vlan
同步后看到的vlan数目和名称应与6506上的一致
指定端口到Vlan、配置端口为portfast方式(快速建立连接):
方法1:命令方式
3548#config term
3548(config)#inter f0/1配置1号快速以太网端口
3548(config if)# switchport access vlan 2指定端口到Vlan 2
3548(config if)# spanning-tree portfast配置端口为portfast方式
3548(config)#inter f0/2配置1号快速以太网端口
3548(config if)# switchport access vlan 2指定端口到Vlan 2
3548(config if)# spanning-tree portfast配置端口为portfast方式
...对每个要设定的端口重复上述步骤。
3548(config if)# exit
3548(config)# exit
3548#
方法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 run
Building configuration...
Current configuration:
!
version 12.0#软件版本
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#加密后的enable密码
!
!
!
!
!
!
ip subnet-zero
!
!
!
interface FastEthernet0/1#模块0的1号快速以太网接口
switchport access vlan 5#指定端口0/1到vlan 5
spanning-tree portfast#如果接的是工作站,指定端口为portfast方式(不运行生成树协议,加快建立连接速度)
!
interface FastEthernet0/2
spanning-tree portfast#默认情况下端口属vlan 1
!
interface FastEthernet0/3
spanning-tree portfast
!
interface FastEthernet0/4
spanning-tree portfast
!
interface FastEthernet0/5
spanning-tree portfast
!
interface FastEthernet0/6
spanning-tree portfast
!
interface FastEthernet0/7
spanning-tree portfast
!
interface FastEthernet0/8
spanning-tree portfast
!
interface FastEthernet0/9
spanning-tree portfast
!
interface FastEthernet0/10
spanning-tree portfast
!
interface FastEthernet0/11
spanning-tree portfast
!
interface FastEthernet0/12
spanning-tree portfast
!
interface FastEthernet0/13
spanning-tree portfast
!
interface FastEthernet0/14
spanning-tree portfast
!
interface FastEthernet0/15
spanning-tree portfast
!
interface FastEthernet0/16
spanning-tree portfast
!
interface FastEthernet0/17
spanning-tree portfast
!
interface FastEthernet0/18
spanning-tree portfast
!
interface FastEthernet0/19
spanning-tree portfast
!
interface FastEthernet0/20
spanning-tree portfast
!
interface FastEthernet0/21
spanning-tree portfast
!
interface FastEthernet0/22
spanning-tree portfast
!
interface FastEthernet0/23
spanning-tree portfast
!
interface FastEthernet0/24
spanning-tree portfast
!
interface FastEthernet0/25
spanning-tree portfast
!
interface FastEthernet0/26
spanning-tree portfast
!
interface FastEthernet0/27
spanning-tree portfast
!
interface FastEthernet0/28
spanning-tree portfast
!
interface FastEthernet0/29
spanning-tree portfast
!
interface FastEthernet0/30
spanning-tree portfast
!
interface FastEthernet0/31
spanning-tree portfast
!
interface FastEthernet0/32
spanning-tree portfast
!
interface FastEthernet0/33
spanning-tree portfast
!
interface FastEthernet0/34
spanning-tree portfast
!
interface FastEthernet0/35
spanning-tree portfast
!
interface FastEthernet0/36
spanning-tree portfast
!
interface FastEthernet0/37
spanning-tree portfast
!
interface FastEthernet0/38
spanning-tree portfast
!
interface FastEthernet0/39
spanning-tree portfast
!
interface FastEthernet0/40
spanning-tree portfast
!
interface FastEthernet0/41
spanning-tree portfast
!
interface FastEthernet0/42
spanning-tree portfast
!
interface FastEthernet0/43
spanning-tree portfast
!
interface FastEthernet0/44
spanning-tree portfast
!
interface FastEthernet0/45
spanning-tree portfast
!
interface FastEthernet0/46
spanning-tree portfast
!
interface FastEthernet0/47
spanning-tree portfast
!
interface FastEthernet0/48
spanning-tree portfast
!
interface GigabitEthernet0/1
switchport mode trunk#设置G0/1为运行isl协议的干道,默认允许所有vlan通过
!
interface GigabitEthernet0/2
!
interface VLAN1
ip address 10.1.1.249 255.255.255.0#本交换机的IP地址
no ip directed-broadcast
no ip route-cache
!
ip default-gateway 10.1.1.254#默认网关
snmp-server engineID local 00000009020000036BC
!
line con 0
transport input none
stopbits 1
line vty 0 4
password _password#telnet密码
login
line vty 5 15
password _password#telnet密码
login
!
end
相关图文阅读
频道图文推荐
相关专题
·三层交换技术专题 (1362篇文章)
·交换机与路由器密码恢复 (3272篇文章)
·交换机的选购 (1299篇文章)
·常用交换机典型配置 (1299篇文章)
·Cisco IOS技术手册 (2598篇文章)
·交换机故障处理手册 (1349篇文章)
·Cisco路由器配置手册 (4063篇文章)
·Cisco交换机专题 (3573篇文章)
·华为交换机 (1917篇文章)
·电脑配置手册 (6477篇文章)
·交换机与路由器密码恢复 (3272篇文章)
·交换机的选购 (1299篇文章)
·常用交换机典型配置 (1299篇文章)
·Cisco IOS技术手册 (2598篇文章)
·交换机故障处理手册 (1349篇文章)
·Cisco路由器配置手册 (4063篇文章)
·Cisco交换机专题 (3573篇文章)
·华为交换机 (1917篇文章)
·电脑配置手册 (6477篇文章)
·思科三层交换配置清单与案例 (5052次浏览)
·华为交换机命令手册--2005配置 (4472次浏览)
·高性能网吧的三层交换机解决方案 (4233次浏览)
·交换技术攻略:网络交换机配置技巧(上) (1995次浏览)
·CISCO交换机命令全集加说明 (1965次浏览)
·第三层交换技术及在VLAN子网规划中的应用 (1899次浏览)
·交换机系列培训:交换机的基础知识 (1819次浏览)
·第三层交换技术实现VLAN间通信 (1818次浏览)
·Cisco 交换机之间的连接方法 (1794次浏览)
·VLAN管理多层次网 (1788次浏览)
·华为交换机命令手册--2005配置 (4472次浏览)
·高性能网吧的三层交换机解决方案 (4233次浏览)
·交换技术攻略:网络交换机配置技巧(上) (1995次浏览)
·CISCO交换机命令全集加说明 (1965次浏览)
·第三层交换技术及在VLAN子网规划中的应用 (1899次浏览)
·交换机系列培训:交换机的基础知识 (1819次浏览)
·第三层交换技术实现VLAN间通信 (1818次浏览)
·Cisco 交换机之间的连接方法 (1794次浏览)
·VLAN管理多层次网 (1788次浏览)
·思科三层交换配置清单与案例 (5052次浏览)
·华为交换机命令手册--2005配置 (4472次浏览)
·高性能网吧的三层交换机解决方案 (4233次浏览)
·交换技术攻略:网络交换机配置技巧(上) (1995次浏览)
·CISCO交换机命令全集加说明 (1965次浏览)
·第三层交换技术及在VLAN子网规划中的应用 (1899次浏览)
·交换机系列培训:交换机的基础知识 (1819次浏览)
·第三层交换技术实现VLAN间通信 (1818次浏览)
·Cisco 交换机之间的连接方法 (1794次浏览)
·VLAN管理多层次网 (1788次浏览)
·华为交换机命令手册--2005配置 (4472次浏览)
·高性能网吧的三层交换机解决方案 (4233次浏览)
·交换技术攻略:网络交换机配置技巧(上) (1995次浏览)
·CISCO交换机命令全集加说明 (1965次浏览)
·第三层交换技术及在VLAN子网规划中的应用 (1899次浏览)
·交换机系列培训:交换机的基础知识 (1819次浏览)
·第三层交换技术实现VLAN间通信 (1818次浏览)
·Cisco 交换机之间的连接方法 (1794次浏览)
·VLAN管理多层次网 (1788次浏览)
·思科三层交换配置清单与案例 (5052次浏览)
·华为交换机命令手册--2005配置 (4472次浏览)
·高性能网吧的三层交换机解决方案 (4233次浏览)
·交换技术攻略:网络交换机配置技巧(上) (1995次浏览)
·CISCO交换机命令全集加说明 (1965次浏览)
·第三层交换技术及在VLAN子网规划中的应用 (1899次浏览)
·交换机系列培训:交换机的基础知识 (1819次浏览)
·第三层交换技术实现VLAN间通信 (1818次浏览)
·Cisco 交换机之间的连接方法 (1794次浏览)
·VLAN管理多层次网 (1788次浏览)
·华为交换机命令手册--2005配置 (4472次浏览)
·高性能网吧的三层交换机解决方案 (4233次浏览)
·交换技术攻略:网络交换机配置技巧(上) (1995次浏览)
·CISCO交换机命令全集加说明 (1965次浏览)
·第三层交换技术及在VLAN子网规划中的应用 (1899次浏览)
·交换机系列培训:交换机的基础知识 (1819次浏览)
·第三层交换技术实现VLAN间通信 (1818次浏览)
·Cisco 交换机之间的连接方法 (1794次浏览)
·VLAN管理多层次网 (1788次浏览)
最新技术文档
·用交换机解决局域网安全 07-19
·第三层交换介绍 07-19
·以太网技术大全(2) 07-19
·Cisco3524交换机配置VLAN实例 07-19
·第三层交换技术实现VLAN间通信 07-18
·Cisco 交换机之间的连接方法 07-18
·第三层交换技术及在VLAN子网规划中的应用 07-18
·交换技术攻略:网络交换机配置技巧(上) 07-18
·交换机系列培训:交换机的基础知识 07-18
·VLAN管理多层次网 07-18
·第三层交换介绍 07-19
·以太网技术大全(2) 07-19
·Cisco3524交换机配置VLAN实例 07-19
·第三层交换技术实现VLAN间通信 07-18
·Cisco 交换机之间的连接方法 07-18
·第三层交换技术及在VLAN子网规划中的应用 07-18
·交换技术攻略:网络交换机配置技巧(上) 07-18
·交换机系列培训:交换机的基础知识 07-18
·VLAN管理多层次网 07-18
站内各频道最新更新文档
站内最新制作专题
热门关键字导读
站内频道文章精选
百度推荐,商机无限
搜索您感兴趣的内容




