思科交换机配置教程图文(思科模拟器交换机的基本配置方法)
enter enter enter no! 1)配置交换机姓名 switch》ena switch#configure enter switch#configure terminal (进入配置状态) Switch(config)#hostname 配置的交换机姓名 如:30FLoor-2960-1 30FLoor-2960-1(config)#end 30FLoor-2960-1# 2)配置交换机的ip 30FLoor-2960-1#configure terminal (进入配置状态) 30FLoor-2960-1(config)#inte***ce vlan 1 30FLoor-2960-1(config)#ip address ip地址 子网掩码 例如:30FLoor-2960-1(config)#ip address 10.11.90.10 255.255.255.0 30FLoor-2960-1(config)#no shutdown 30FLoor-2960-1(config)#end 30FLoor-2960-1# 30FLoor-2960-1# 3)配置交换机的 默认网关 30FLoor-2960-1(config)#ip default-gateway 网关ip 例如:30FLoor-2960-1(config)#ip default-gateway 10.11.90.254 4)设置路由 30FLoor-2960-1(config)#ip route 0.0.0.0 X.X.X.X 5)设置c***ole口密码 30FLoor-2960-1(config)#line c***ole 0 30FLoor-2960-1(config-line)#password 输入密码 30FLoor-2960-1(config-line)#login 30FLoor-2960-1(config-line)#end 6)设置telnet的密码 30FLoor-2960-1(config)#line vty 0 10 30FLoor-2960-1(config-line)#password 输入密码(yuxuan) 30FLoor-2960-1(config-line)#login 30FLoor-2960-1(config-line)#end 7)设置交换机的enable密码 30FLoor-2960-1(config)#enable password 输入密码(xuan) 30FLoor-2960-1(config)#enable ****** 输入密码(yuxuan) 30FLoor-2960-1(config)#end 8)将当前配置信息保存到闪存中 30FLoor-2960-1(config)#write 9)查看交换机信息 30FLoor-2960-1# show version 查看交换机版本信息 show ip inte***ces 查看交换机的ip地址 show inte***ce vlan 1 验证管理ip地址已经配置并开启 show ip redirect 查看交换机的网关 show running-configure 查看交换机当前的配置信息 show configure 查看交换机保存的配置信息 switch#write ; 保存配置信息 switch#show vtp ; 查看vtp配置信息 switch#show run ; 查看当前配置信息 switch#show vlan ; 查看vlan配置信息 switch#show inte***ce ; 查看端口信息 switch#show int f0/0 ; 查看指定端口信息 10)交换机基本配置步骤 1.**到交换机 2.进入特权模式 命令:enable 3.进入全局配置模式 命令:configure terminal 4.进入相应的配置子模式 如:接口子模式 命令:inte***ce vlan 1 看了“cisco2960交换机的简单配置”还想看: 1. cisco2960交换机安装配置基础详解 2. Cisco 2960交换机的基础安装配置教程 3. 思科交换机基本配置实例讲解 4. 思科交换机配置教程详解 5. cisco交换机如何清空配置 6. CISCO系列交换机如何清空配置Cisco交换机如何设置设置步骤有哪些1 , 设置交换机名称(config)#hostname hostname2,设置log存放路径(config)#logging 10.7.68.68 //将log档文件存在10.7.68.68(config)#spanning-tree mode rapid-pvst // 设定 spanning-tree 的模式是 rapid-pvst3,设置errdisable(config)#errdisable recovery cause all //开启errdiable 恢复的原因(config)#errdisable recovery interval 300 //errdisable后300秒恢复4,设置snmp-server(config)#snmp-server community askeymis RO //设置简单网络管理协议字符串为只读5, 设置vtp(config)#vtp domain askey // 设定VTP domain 名称(config)vtp mode transparent // 设定 VTP 模式为透明模式Vlan1,创建Vlan(config)#vlan 180 //创建Vlan ID号为180(config-vlan)#name askey //Vlan 名称为askey2,删除Vlan(config)#no vlan 180#show vlan brief //查看交换机当前Vlan 号及Vlan 下有哪些端口3,配置管理IP(config)#int vlan 180(config-if)#ip address 192.168.1.251 255.255.255.0 //设置管理IP地址(config)#ip default-gateway 192.168.1.254 //设置默认路由,testconfig#enable password cisco # 我们输入这台装置的**密码为 cisco testconfig#end # 我们退回到全域性配置模式,Enter configuration mands, one per line. End with CNTL/Z. Routerconfig#exit # 退出当前的全域性配置模式的命令是exit Router#conf t # 重新进入到全域性配置模式 Enter configuration mands, one per line. End with CNTL/Z. Routerconfig# *Mar 1 00:44:35.591: %SYS-5-CONFIG_I: Configured from c***ole by c***olehos # 这行是路由器交换机出现的一些即时提示,test#conf t # 重新进入到全域性配置模式 testconfig#service pass testconfig#service password-encryption # 利用这条命令给密码加密显示,查看闪存 Cisco路由器配置命令大全网络 2010-06-26 06:43:44 阅读657 评论0 字号:大中小 订阅 . (1)模式转换命令 用户模式----特权模式,使用命令"enable" 特权模式----全局配置模式,使用命令"config t" 全局配置模式----接口模式,使用命令"inte***ce+接口类型+接口号" 全局配置模式----线控模式,使用命令"line+接口类型+接口号" 注: 用户模式:查看初始化的信息. 特权模式:查看所有信息、调试、保存配置信息 全局模式:配置所有信息、针对整个路由器或交换机的所有接口 接口模式:针对某一个接口的配置 线控模式:对路由器进行控制的接口配置 (2)配置命令 show running config 显示所有的配置 show versin 显示版本号和寄存器值 shut down 关闭接口 no shutdown 打开接口 ip add +ip地址 配置IP地址 secondary+IP地址 为接口配置第二个IP地址 show inte***ce+接口类型+接口号 查看接口管理性 show controllers inte***ce 查看接口是否有DCE电缆 show history 查看历史记录 show terminal 查看终端记录大小 hostname+主机名 配置路由器或交换机的标识 config memory 修改保存在NVRAM中的启动配置 exec timeout 0 0 设置控制台会话超时为0 service password-encryptin 手工加密所有密码 enable password +密码 配置明文密码 ena sec +密码 配置密文密码 line vty 0 4/15 进入telnet接口 password +密码 配置telnet密码 line aux 0 进入AUX接口 password +密码 配置密码 line con 0 进入CON接口 password +密码 配置密码 bandwidth+数字 配置带宽 no ip address 删除已配置的IP地址 show startup config 查看NVRAM中的配置信息 copy run-config atartup config 保存信息到NVRAM write 保存信息到NVRAM erase startup-config 清除NVRAM中的配置信息 show ip inte***ce brief 查看接口的谪要信息 banner motd # +信息 + # 配置路由器或交换机的描素信息 description+信息 配置接口听描素信息 vlan database 进入VLAN数据库模式 vlan +vlan号+ 名称 创建VLAN switchport access vlan +vlan号 为VLAN为配接口 inte***ce vlan +vlan号 进入VLAN接口模式 ip add +ip地址 为VLAN配置管理IP地址 vtp+service/tracsparent/client 配置SW的VTP工作模式 vtp +domain+域名 配置SW的VTP域名 vtp +password +密码 配置SW的密码 switchport mode trunk 启用中继 no vlan +vlan号 删除VLAN show spamming-tree vlan +vlan号 查看VLA怕生成树议 三. 路由器配置命令 ip route+非直连网段+子网掩码+下一跳地址 配置静态/默认路由 show ip route 查看路由表 show protocols 显示出所有的被动路由协议和接口上哪些协议被设置 show ip protocols 显示了被配置在路由器上的路由选择协议,同时给出了在路由选择协议中使用 的定时器 等信息 router rip 激活RIP协议 network +直连网段 发布直连网段 inte***ce lookback 0 激活逻辑接口 passive-inte***ce +接口类型+接口号 配置接口为被动模式 debug ip +协议 动态查看路由更新信息 undebug all 关闭所有DEBUG信息 router eigrp +as号 激活EIGRP路由协议 network +网段+子网掩码 发布直连网段 show ip eigrp neighbors 查看邻居表 show ip eigrp topology 查看拓扑表 show ip eigrp traffic 查看发送包数量 router ospf +process-ID 激活OSPF协议 network+直连网段+area+区域号 发布直连网段 show ip ospf 显示OSPF的进程号和ROUTER-ID encapsulation+封装格式 更改封装格式 no ip admain-lookup 关闭路由器的域名查找 ip routing 在三层交换机上启用路由功能 show user 查看SW的在线用户 clear line +线路号 清除线路 四. 三层交换机配置命令 配置一组二层端口 configure terminal 进入配置状态 nte***ce range {port-range} 进入组配置状态 配置三层端口 configure terminal 进入配置状态 inte***ce {{fastethernet | gigabitethernet} inte***ce-id} | {vlan vlan-id} | {port- channel port-channel-number} 进入端口配置状态 no switchport 把物理端口变成三层口 ip address ip_address subnet_mask 配置IP地址和掩码 no shutdown 激活端口 例: Switch(config)# inte***ce gigabitethernet0/2 Switch(config-if)# no switchport Switch(config-if)# ip address 192.20.135.21 255.255.255.0 Switch(config-if)# no shutdown 配置VLAN configure terminal 进入配置状态 vlan vlan-id 输入一个VLAN号, 然后进入vlan配态,如下图所示:思科交换机详细配置方法和命令思科交换机的基本配置命令学习 一、交换机口令设置: switch》enable,Building configuration... Current configuration : 1559 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname test # 注意此处显示的是我们配置的装置的名字 ! boot-start-marker boot-end-marker ! enable password cisco # 此处显示的是刚才我们配置的enable密码,此处我们配置的密码为cisco testconfig-line#loggi testconfig-line#logging ? # 在任何情况下如果你忘记了命令的相关引数可以用?来获得提示和帮助 synchronous Synchronized message output testconfig-line#logging sy testconfig-line#logging synchronous # 在我们进行配置时。
本文目录
思科模拟器交换机的基本配置方法
交换机具有转化和接受资料的动能,在区域网中是不能没有的重要装置的,在生活中,交换机和路由器一样重要。接下来是我为大家收集的方法,希望能帮到大家。 : 首先找出一台2811类的路由器和一台2960类的交换机和3台pc,利用直通线使各个装置相互连线起来,如下图所示: 为交换机配置主机名,命令为: Switch》enable Switch#conf terminal Enter configuration mands, one per line. End with CNTL/Z. Switchconfig#hostname S1 如下图所示: 为交换机配置密码,命令为: S1config#enable ****** cisco S1config#line vty 0 15 S1config-line#password cisco S1config-line#login 如下图所示 配置交换机埠安全,配置命令是: S1config#int f0/1 S1config-if#shutdown S1config-if#switch mode access S1config-if#switch port-securitiy 如下图所示 检查交换机的Mac地址表,命令是: S1#show mac-address-table,如下图所示: 检视埠安全的设定情况,用命令为:show port-security,如下图所示:
思科交换机详细配置方法和命令
思科交换机的基本配置命令学习 一、交换机口令设置: switch》enable ;进入特权模式 switch#config terminal ;进入全局配置模式 switch(config)#hostname csico ;设置交换机的主机名 switch(config)#enable ****** csico1 ;设置特权加密口令 switch(config)#enable password csico8 ;设置特权非密口令 switch(config)#line c***ole 0 ;进入控制台口 switch(config-line)#line vty 0 4 ;进入虚拟终端 switch(config-line)#login ;虚拟终端允许登录 switch(config-line)#password csico6 ;设置虚拟终端登录口令csico6 switch#exit ;返回命令 二、交换机显示命令: switch#write ;保存配置信息 switch#show vtp ;查看vtp配置信息 switch#show run ;查看当前配置信息 switch#show vlan ;查看vlan配置信息 switch#show inte***ce ;查看端口信息 switch#show int f0/0 ;查看指定端口信息 switch#show int f0/0 status;查看指定端口状态 switch#dir flash: ;查看闪存 Cisco路由器配置命令大全网络 2010-06-26 06:43:44 阅读657 评论0 字号:大中小 订阅 . (1)模式转换命令 用户模式----特权模式,使用命令"enable" 特权模式----全局配置模式,使用命令"config t" 全局配置模式----接口模式,使用命令"inte***ce+接口类型+接口号" 全局配置模式----线控模式,使用命令"line+接口类型+接口号" 注: 用户模式:查看初始化的信息. 特权模式:查看所有信息、调试、保存配置信息 全局模式:配置所有信息、针对整个路由器或交换机的所有接口 接口模式:针对某一个接口的配置 线控模式:对路由器进行控制的接口配置 (2)配置命令 show running config 显示所有的配置 show versin 显示版本号和寄存器值 shut down 关闭接口 no shutdown 打开接口 ip add +ip地址 配置IP地址 secondary+IP地址 为接口配置第二个IP地址 show inte***ce+接口类型+接口号 查看接口管理性 show controllers inte***ce 查看接口是否有DCE电缆 show history 查看历史记录 show terminal 查看终端记录大小 hostname+主机名 配置路由器或交换机的标识 config memory 修改保存在NVRAM中的启动配置 exec timeout 0 0 设置控制台会话超时为0 service password-encryptin 手工加密所有密码 enable password +密码 配置明文密码 ena sec +密码 配置密文密码 line vty 0 4/15 进入telnet接口 password +密码 配置telnet密码 line aux 0 进入AUX接口 password +密码 配置密码 line con 0 进入CON接口 password +密码 配置密码 bandwidth+数字 配置带宽 no ip address 删除已配置的IP地址 show startup config 查看NVRAM中的配置信息 copy run-config atartup config 保存信息到NVRAM write 保存信息到NVRAM erase startup-config 清除NVRAM中的配置信息 show ip inte***ce brief 查看接口的谪要信息 banner motd # +信息 + # 配置路由器或交换机的描素信息 description+信息 配置接口听描素信息 vlan database 进入VLAN数据库模式 vlan +vlan号+ 名称 创建VLAN switchport access vlan +vlan号 为VLAN为配接口 inte***ce vlan +vlan号 进入VLAN接口模式 ip add +ip地址 为VLAN配置管理IP地址 vtp+service/tracsparent/client 配置SW的VTP工作模式 vtp +domain+域名 配置SW的VTP域名 vtp +password +密码 配置SW的密码 switchport mode trunk 启用中继 no vlan +vlan号 删除VLAN show spamming-tree vlan +vlan号 查看VLA怕生成树议 三. 路由器配置命令 ip route+非直连网段+子网掩码+下一跳地址 配置静态/默认路由 show ip route 查看路由表 show protocols 显示出所有的被动路由协议和接口上哪些协议被设置 show ip protocols 显示了被配置在路由器上的路由选择协议,同时给出了在路由选择协议中使用 的定时器 等信息 router rip 激活RIP协议 network +直连网段 发布直连网段 inte***ce lookback 0 激活逻辑接口 passive-inte***ce +接口类型+接口号 配置接口为被动模式 debug ip +协议 动态查看路由更新信息 undebug all 关闭所有DEBUG信息 router eigrp +as号 激活EIGRP路由协议 network +网段+子网掩码 发布直连网段 show ip eigrp neighbors 查看邻居表 show ip eigrp topology 查看拓扑表 show ip eigrp traffic 查看发送包数量 router ospf +process-ID 激活OSPF协议 network+直连网段+area+区域号 发布直连网段 show ip ospf 显示OSPF的进程号和ROUTER-ID encapsulation+封装格式 更改封装格式 no ip admain-lookup 关闭路由器的域名查找 ip routing 在三层交换机上启用路由功能 show user 查看SW的在线用户 clear line +线路号 清除线路 四. 三层交换机配置命令 配置一组二层端口 configure terminal 进入配置状态 nte***ce range {port-range} 进入组配置状态 配置三层端口 configure terminal 进入配置状态 inte***ce {{fastethernet | gigabitethernet} inte***ce-id} | {vlan vlan-id} | {port- channel port-channel-number} 进入端口配置状态 no switchport 把物理端口变成三层口 ip address ip_address subnet_mask 配置IP地址和掩码 no shutdown 激活端口 例: Switch(config)# inte***ce gigabitethernet0/2 Switch(config-if)# no switchport Switch(config-if)# ip address 192.20.135.21 255.255.255.0 Switch(config-if)# no shutdown 配置VLAN configure terminal 进入配置状态 vlan vlan-id 输入一个VLAN号, 然后进入vlan配态,可以输入一个新的VLAN号或旧的来进行修改
cisco2960交换机的简单配置
你还在为cisco2960交换机的简单配置而烦恼么?不用担心,接下来是我为大家收集的cisco2960交换机的简单配置,欢迎大家阅读: cisco2960交换机的简单配置的方法 2950是只支持二层的交换机 支持VLAN 第1步:单击“开始”按钮,在“程序”菜单的“附件”选项中单击“超级终端” 第2步:在“名称”文本框中键入“Cisco” 第3步:在“连接时使用”下拉列表框中选择与交换机相连的计算机的串口。台式机为“com 1”,笔记本为“com 3或者com 5”。 第4步:在“波特率”下拉列表框中选择“9600”-确定. 如果通信正常的话就会出现类似于如下所示的主配置界面,并会在这个窗口中就会显示交换机的初始配置情况。 enter enter enter no! 1)配置交换机姓名 switch》ena switch#configure enter switch#configure terminal (进入配置状态) Switch(config)#hostname 配置的交换机姓名 如:30FLoor-2960-1 30FLoor-2960-1(config)#end 30FLoor-2960-1# 2)配置交换机的ip 30FLoor-2960-1#configure terminal (进入配置状态) 30FLoor-2960-1(config)#inte***ce vlan 1 30FLoor-2960-1(config)#ip address ip地址 子网掩码 例如:30FLoor-2960-1(config)#ip address 10.11.90.10 255.255.255.0 30FLoor-2960-1(config)#no shutdown 30FLoor-2960-1(config)#end 30FLoor-2960-1# 30FLoor-2960-1# 3)配置交换机的 默认网关 30FLoor-2960-1(config)#ip default-gateway 网关ip 例如:30FLoor-2960-1(config)#ip default-gateway 10.11.90.254 4)设置路由 30FLoor-2960-1(config)#ip route 0.0.0.0 X.X.X.X 5)设置c***ole口密码 30FLoor-2960-1(config)#line c***ole 0 30FLoor-2960-1(config-line)#password 输入密码 30FLoor-2960-1(config-line)#login 30FLoor-2960-1(config-line)#end 6)设置telnet的密码 30FLoor-2960-1(config)#line vty 0 10 30FLoor-2960-1(config-line)#password 输入密码(yuxuan) 30FLoor-2960-1(config-line)#login 30FLoor-2960-1(config-line)#end 7)设置交换机的enable密码 30FLoor-2960-1(config)#enable password 输入密码(xuan) 30FLoor-2960-1(config)#enable ****** 输入密码(yuxuan) 30FLoor-2960-1(config)#end 8)将当前配置信息保存到闪存中 30FLoor-2960-1(config)#write 9)查看交换机信息 30FLoor-2960-1# show version 查看交换机版本信息 show ip inte***ces 查看交换机的ip地址 show inte***ce vlan 1 验证管理ip地址已经配置并开启 show ip redirect 查看交换机的网关 show running-configure 查看交换机当前的配置信息 show configure 查看交换机保存的配置信息 switch#write ; 保存配置信息 switch#show vtp ; 查看vtp配置信息 switch#show run ; 查看当前配置信息 switch#show vlan ; 查看vlan配置信息 switch#show inte***ce ; 查看端口信息 switch#show int f0/0 ; 查看指定端口信息 10)交换机基本配置步骤 1.**到交换机 2.进入特权模式 命令:enable 3.进入全局配置模式 命令:configure terminal 4.进入相应的配置子模式 如:接口子模式 命令:inte***ce vlan 1 看了“cisco2960交换机的简单配置”还想看: 1. cisco2960交换机安装配置基础详解 2. Cisco 2960交换机的基础安装配置教程 3. 思科交换机基本配置实例讲解 4. 思科交换机配置教程详解 5. cisco交换机如何清空配置 6. CISCO系列交换机如何清空配置
Cisco交换机如何设置设置步骤有哪些
1 , 设置交换机名称
(config)#hostname hostname
2,设置log存放路径
(config)#logging 10.7.68.68 //将log档文件存在10.7.68.68
(config)#spanning-tree mode rapid-pvst // 设定 spanning-tree 的模式是 rapid-pvst
3,设置errdisable
(config)#errdisable recovery cause all //开启errdiable 恢复的原因
(config)#errdisable recovery interval 300 //errdisable后300秒恢复
4,设置snmp-server
(config)#snmp-server community askeymis RO //设置简单网络管理协议字符串为只读
5, 设置vtp
(config)#vtp domain askey // 设定VTP domain 名称
(config)vtp mode transparent // 设定 VTP 模式为透明模式
Vlan
1,创建Vlan
(config)#vlan 180 //创建Vlan ID号为180
(config-vlan)#name askey //Vlan 名称为askey
2,删除Vlan
(config)#no vlan 180
#show vlan brief //查看交换机当前Vlan 号及Vlan 下有哪些端口
3,配置管理IP
(config)#int vlan 180
(config-if)#ip address 192.168.1.251 255.255.255.0 //设置管理IP地址
(config)#ip default-gateway 192.168.1.254 //设置默认路由,供其他网段访问
4,将端口划至Vlan 180
4.1单一端口划分
(config)#int f0/1 //进入端口f0/1
(config-if)#sw mode access //设置访问模式
(cofnig-if)#sw ac vlan 180 //将其端口划入Vlan 180
4.2多端口划分
(config)#int range f0/1 _ 24 //端口范围为1-24
(config-if-range)#sw mode access
(config-if-range)#sw ac vlan 180
端口配置
1,端口配置
(cofnig)#inte***ce FastEthernet0/1
(config-if)#switchport access vlan 33 // 划分VLAN
(config-if)# switchport mode access
(config-if)# switchport port-security maximum 2 //设定端口只允许接入2个PC
(config-if)# switchport port-security // 启用端口安全
(config-if)# switchport port-security violation restrict // 发生违例 端口进errdisable,并记录
(config-if)# storm-control broadcast level 0.80 //控制广播包的突发百分比
(config-if)# storm-control action shutdown //暴风控制的违例时端口进入errdisable
(config-if)# storm-control action trap //产生snmp trap(抑制)消息来通告发生过量流量的情况
(config-if)# spanning-tree portfast // 配置接口为portfast模式
(config-if)# spanning-tree bpduguard enable // 启用bpuguard 防护
(config-if)# spanning-tree guard root // 启用根桥防护
设置时间与同步
1 , 开启debug与log记录时间的服务
(config)#Service timestamps debug datetime localtime //开启debug记录时显示的时间
(config)#Service timestamps log datetime localtime //开启log记录时显示的时间
2,设置时间与时区
(config)# Clock timezone TAIWAN 8 //设置时区
(config)# Clock set 12:16:50 nov 27 2008 //设置时间(月,日,年)
#Show clock //查看交换机当前的时间
3,设置ntp server 实现时间同步
(config)# ntp server 10.1.71.249 //设置交换机与ntp server 实现时间同步
#show ntp stauts //查看交换机是否同步
Clock is synchronized, stratum 3, reference is 10.1.71.249(同步)
nominal freq is 119.2092 Hz, actual freq is 119.2093 Hz, precision is 2**17
reference time is CCD89F21.ECA0C247 (12:22:57.924 TAIWAN Thu Nov 27 2008)
clock offset is 8.4785 msec, root delay is 399.51 msec
root dispersion is 937.29 msec, peer dispersion is 885.30 msec
Password
1,开启明文密码加密服务
(config)#service password-encryption //将明文密码加密
2,设置控制台密码
(config)#line c***loe 0 //进入控制台
(config-line)#login //登录
(config-line)#password cisco //设置密码
3,设置enable密码
(config)#enable password cisco
(config)#enable ****** password cisco //给密码加密码 ,优先级高于enable password
4,设置Telnet 密码
(config)#line vty 0 4 //进入vty模式
(config-line)#login
(config-line)#password cisco //设置密码
(config-line)#exec-timeout 5 0 //telnet 5分钟超时。
思科3550交换机设置步骤
思科3550交换机设置DHCP的内容我们再来详细讨论一下,大家可以参照此文的一些设置内容,进行一下对比学习。按照网上介绍的设置一句“IP HELPER-ADDRESS DHCP服务器地址”后,工程当中发现客户机不能从DHCP服务器获取IP地址,本人最近也刚好设置了3550作为DHCP服务器中继代理,最初也曾困惑很久,后来在网上查找资料及在论坛上寻求众人帮助,终于在工程当中测试通过,为避免大家在工程当中遇到此类情况左调右调,特将设置过程写出来,给大家作为参考。 网络环境:一台3550EMI交换机,划分三个vlan,vlan2 为服务器所在网络,命名为server,IP地址段为192.168.2.0,子网掩码:255.255.255.0,网关:192.168.2.1,域服务器为Windows 2000 advance server,同时兼作DHCP服务器,DNS服务器,IP地址为192.168.2.10,vlan3为客户机1所在网络,IP地址段为192.168.3.0,子网掩码:255.255.255.0,网关:192.168.3.1命名为work01, vlan4 为客户机2所在网络,命名为work02,IP地址段为192.168.4.0,子网掩码:255.255.255.0,网关:192.168.4.1. 3550上端口1-8划到VLAN 2,端口9-16划分到VLAN 3,端口17-24划分到VLAN 4. CISCO 3550交换机设置DHCP命令及步骤如下: CISCO 3550交换机设置DHCP第一步:创建VLAN: Switch》Vlan Database Switch(Vlan)》Vlan 2 Name server Switch(Vlan)》Vlan 3 Name work01 Switch(vlan)》Vlan 4 Name work02 CISCO 3550交换机设置DHCP第二步:启用DHCP中继代理: /*关键一步,若缺少以下两条命令,在VLAN中使用“IP HELPER-ADDRESS DHCP服务器地址”指定DHCP服务器,客户机仍然不能获得IP地址*/ Switch》Enable Switch#Config t Switch(Config)Service Dhcp Switch(Config)Ip Dhcp Relay Information Option CISCO 3550交换机设置DHCP第三步:设置VLAN IP地址: Switch(Config)》Int Vlan 2 Switch(Config-vlan)Ip Address 192.168.2.1 255.255.255.0 Switch(Config-vlan)No Shut Switch(Config-vlan)》Int Vlan 3 Switch(Config-vlan)Ip Address 192.168.3.1 255.255.255.0 Switch(Config-vlan)No Shut Switch(Config-vlan)》Int Vlan 4 Switch(Config-vlan)Ip Address 192.168.4.1 255.255.255.0 Switch(Config-vlan)No Shut Switch(Config-vlan)Exit /*注意:由于此时没有将端口分设置到VLAN2,3,4,所以各VLAN会DOWN掉,待将端口分设到各VLAN后,VLAN会起来*/
思科交换机基本配置例项讲解
你还在为不知道 而烦恼么?接下来是我为大家收集的 教程,希望能帮到大家。 的方法 目 录 1、基本概念介绍.... 2 2、密码、**等基本配置.... 2 3、cisco装置埠配置详解.... 8 4、vlan的规划及配置.... 13 4.1 核心交换机的相关配置.... 13 4.2 接入交换机的相关配置.... 25 5、配置交换机的路由功能.... 30 6、配置交换机的DHCP功能.... 31 7、常用排错命令.... 32 友情连结: 杭州大金空调售后 杭州大金空调售后电话 杭州西门子洗衣机售后维修电话 杭州西门子洗衣机售后服务电话 上海夜总会招聘 上海*** 上海夜总会 上海夜场 上海*** 上海招聘 杭州ktv招聘 ktv招聘 1、基本概念介绍 IOS: 网际网路作业系统,也就是交换机和路由器中用的作业系统 VLAN: 虚拟lan VTP: VLAN TRUNK PROTOCOL DHCP: 动态主机配置协议 ACL: 访问控制列表 三层交换机:具有三层路由转发能力的交换机 本教程中“#”后的蓝色文字为注释内容。 2、密码、**等基本配置 本节介绍的内容为cisco路由器或者交换机的基本配置,在目前版本的cisco交换机或路由器上的这些命令是通用的。本教程用的是cisco的模拟器做的介绍,一些具体的埠显示或许与你们实际的装置不符,但这并不影响基本配置命令的执行。 Cisco 3640 R4700 processor revision 0xFF with 124928K/6144K bytes of memory. Processor board ID 00000000 R4700 CPU at 100MHz, Implementation 33, Rev 1.2 2 Ethernet inte***ces 8 Serial inte***ces DRAM configuration is 64 bits wide with parity enabled. 125K bytes of NVRAM. 8192K bytes of processor board System flash Read/Write --- System Configuration Dialog --- Would you like to enter the initial configuration dialog? : n # 此处我们选择no,不进入他的初始化配置向导 Press RETURN to get started! # 选择no以后,提示你按回车键开始,此处我们需要按回车键 *Mar 1 00:43:56.591: %IP-5-WEBINST_KILL: Terminating DNS process *Mar 1 00:43:58.379: %SYS-5-RESTART: System restarted -- Cisco IOS Software, 3600 Software C3640-JK9O3S-M, Version 12.314T7, RELEASE SOFTWARE fc2 Technical Support: Copyright c 1986-2006 by Cisco Systems, Inc. piled Wed 22-Mar-06 21:46 by pwade *Mar 1 00:43:58.411: %SNMP-5-COLDSTART: SNMP agent on host Router is undergoing a cold start Router》 # 等显示稳定后,出现最初的提示符,注意提示符是“》”,目前所处的状态称为使用者模式。 Router》 Router》 Router》en # 如果在当前状态下没有重复的命令,我们可以用“TAB”键来补齐这条命令,主要目的是为了便于阅读 Router》enable # 从使用者模式user mode进入到特权模式exec mode,注意提示符的变化,提示符变为“#” Router#conf t Router#configure terminal 说明:#在特权模式下输入configure terminal进入全域性配置模式global configuration mode,在这之下输入的命令叫做全域性命令,一旦输入,将对整个router产生即时影响。如下,注意提示符的变化: Routerconfig#exit # 请注意提示符发生了改变,当前的模式据叫做全域性配置模式。 Router#conf *Mar 1 00:44:291: %SYS-5-CONFIG_I: Configured from c***ole by c***ole t # 在输入命令的过程中,IOS会出现一些即时提示。 Enter configuration mands, one per line. End with CNTL/Z. Routerconfig#exit # 退出当前的全域性配置模式的命令是exit Router#conf t # 重新进入到全域性配置模式 Enter configuration mands, one per line. End with CNTL/Z. Routerconfig# *Mar 1 00:44:35.591: %SYS-5-CONFIG_I: Configured from c***ole by c***olehos # 这行是路由器交换机出现的一些即时提示。 Routerconfig#hostname test # 这条命令用来更改当前装置的名字名字中可包含装置的楼层、用途等资讯,主要是为了将来便于区分装置。 testconfig# # 回车后我们就会发现,但前的装置的名字已经发生了改变,变成了test了。 testconfig#enable pass # 这条命令用来配置装置的**密码,用tab键补齐后,再下一行显示完整命令。 testconfig#enable password cisco # 我们输入这台装置的**密码为 cisco testconfig#end # 我们退回到全域性配置模式,校验一下刚才输入的密码 test#sh r # 此命令的完整写法是show running-start,此处的sh r用的是省略的写法,因无其他重复的命令所以可以被执行。 Building configuration... Current configuration : 1559 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname test # 注意此处显示的是我们配置的装置的名字 ! boot-start-marker boot-end-marker ! enable password cisco # 此处显示的是刚才我们配置的enable密码,注意此时是用明文显示的,有点不安全。 ! no aaa new-model ! resource policy ! memory-size iomem 5 ip subnet-zero ! # 到这一行其实并未全部显示完配置的内容,我们可以按键盘上的任意键来终止继续显示。在显示的过程中通过按回车键可以逐行显示,按空格键可以一页一页的显示。这些操作可在实际的装置中体会。 test#conf t # 重新进入到全域性配置模式 testconfig#service pass testconfig#service password-encryption # 利用这条命令给密码加密显示。 testconfig#end test#sh r # 退出到全域性配置模式后,验证刚才的配置。 Building configuration... Current configuration : 1565 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec service password-encryption ! hostname test ! boot-start-marker boot-end-marker ! enable password 7 070C285F4D06 # 注意此处刚才明文显示的密码已经变成加密显示了,这样从一定程度上保证了密码的安全。 ! no aaa new-model ! resource policy ! memory-size iomem 5 ip subnet-zero ! # 验证完毕后按任何一个键中断显示,下面的内容说明终端**密码的配置。 test#conf t Enter configuration mands, one per line. End with CNTL/Z. testconfig#no service password-encryption # 可利用这条命令前面加no来去掉密码加密功能,cisco的所有命令都可以通过这种方式来禁止。 testconfig#line con testconfig#line c***ole 0 # 利用这条命令来配置用超级终端**时的一些引数。 testconfig-line#pass testconfig-line#password cisco # 新增密码,此处我们配置的密码为cisco testconfig-line#loggi testconfig-line#logging ? # 在任何情况下如果你忘记了命令的相关引数可以用?来获得提示和帮助 synchronous Synchronized message output testconfig-line#logging sy testconfig-line#logging synchronous # 在我们进行配置时,IOS会产生一些即时的提示资讯,而这些资讯会冲乱我们的游标显示,用这条命令可以将游标规矩在下一行,即使出现了一些即时的提示。 testconfig-line#exit # 退出当前c***ole口的引数配置 testconfig#line vt? # telnet**时相关引数的配置,此处用了?来寻求提示。 《0-134》 First Line number aux Auxiliary line c***ole Primary terminal line tty Terminal controller vty Virtual terminal x/y Slot/Port for Modems testconfig#line vty 0 4 # 我们配置虚拟终端的0到4,也就是同时允许5个使用者可以telnet到这台装置上来。 testconfig-line#pass testconfig-line#password cisco # 我们配置telnet时的密码为cisco,如果此处我们不设定密码,那么用telnet来**的时候并不会以空密码**,而是会给你提示说:相关密码没有设定,禁止**。所以我们为了能远端telnet到这台装置,此处的密码一定要设定好。 testconfig-line#login # 这条命令是允许通过telnet来登入 testconfig-line#exit # 退出当前配置模式到全域性配置模式。 testconfig# testconfig# test#conf s # 我们在做配置的时候,会出现输入错误的情况,在这种情况下ios会以为你输入的是一个域名 Translating "s"...domain server 255.255.255.255 # 那么ios会做长时间的搜寻,试图找到这个域名对应的ip地址....... Translating "s"...domain server 255.255.255.255 # 这段时间是比较长的,那么我们如何禁用它的这个功能呢? % Unknown mand or puter name, or unable to find puter address test#conf t Enter configuration mands, one per line. End with CNTL/Z. testconfig#no ip domain-lookup # 在全域性配置模式下,将ip域名的搜寻功能关闭就可以了。 testconfig#end test#conf *Mar 1 01:40:46.895: %SYS-5-CONFIG_I: Configured from c***ole by c***ole test#conf x # 将上述功能关闭以后,再有输入错误的情况会直接提示你输入错误。 ^ % Invalid input detected at ’^’ marker. test# testconfig#ip domain-name 202.102.128.68 # 如果有必要将装置配置上DNS功能的话就用这条命令。 ### 基本配置完毕后我们验证一下所有的配置### test#sh run Building configuration... Current configuration : 1693 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec service password-encryption # 密码加密显示功能开启 ! hostname test ! boot-start-marker boot-end-marker ! enable password 7 070C285F4D06 # 密码被加密显示了 ! no aaa new-model ! resource policy ! memory-size iomem 5 ip subnet-zero ! ! ip cef no ip domain lookup # 关闭了域名查询功能 no ip dhcp use vrf connected ! ! no ip ips deny-action ips-inte***ce ! no ftp-server write-enable ! no crypto isakmp ccm ! 略…… ip server no ip secure-server ip classless ! control-plane ! line con 0 exec-timeout 0 0 password 7 094F471A1A0A # 用超级终端**的密码,也同样被加密显示 logging synchronous line aux 0 line vty 0 4 password 7 00071A150754 # 用telnet**的密码,也同样被加密显示 login ! ! end test#
更多文章:

迅盘接口再利用(联想 Y550 笔记本 可以装 迅盘吗利用无线网卡插口)
2025年3月11日 19:15

长城电脑怎么下载微信(长城电脑麒麟系统里,qq微信怎么转文件)
2025年3月5日 12:25

学校机房电脑应该买什么(学校机房想配置50台电脑,有经验的推荐下,最好是你自己用过的!)
2025年3月30日 22:40

戴尔台式机3710怎样装win10系统(台式电脑怎么装win10系统步骤)
2025年4月16日 05:48

英伟达geforce无法连接(nvidia geforce experience提示错误怎么解决)
2025年4月15日 08:42

thinkpadt550评测(Thinkpad t550用户体验)
2025年3月28日 18:45

联想全系bios白名单解除工具(关于联想新出的电脑BIOS黑白名单破解)
2025年4月17日 22:12

geforce gt 730(NVIDIAGeForceGT 730能玩英雄联盟吗)
2025年3月9日 05:35

微软便携笔记本(微软的Surface pro和pro4有什么区别)
2025年4月25日 13:36

中关村在线 手机频道(现在想换部手机,要安卓系统的,系统稳定并且兼容性要强,机子最好能在线看视频!)
2025年4月6日 23:54

gtx460支持最大分辨率(影驰gtx460虎将版显卡能上24寸显示器吗)
2025年3月8日 16:02