18.网络工程师交换试验手册之十八:SWITCH的基本配置
CCNA实验:Router和Switch基本配置(供参考)

CCNA实验Router和Switch基本配置1、Router基本配置Router> \\路由器的启动时所进入的用户模式Router>enable \\键入该命令以进入特许模式Router# \\此显示模式表示已经进入了特许模式Router#configure terminal \\键入该命令以进入全局配置模式Router(config)# \\显示模式表示已经进入全局配置模式Router(config)#hostname SNXL01 \\名称改为 “SNXL01”2、配置控制台密码SNXL01(config)#line console 0 \\0表示第0 con 口SNXL01(config_line)#loginSNXL01(config_line)#password cisco3、配置控制台其他参数SNXL01(config)#line console 0SNXL01(config_line)#exec-timeout 0 0 \\配置console口超时时间SNXL01(config_line)#logging synchronous \\配置显示同步4、配置欢迎信息SNXL01(config)#banner motd # (回车)输入一段欢迎信息并以“#”结束。
(回车)5、配置路由器密码SNXL01(config)#enable password cisco \\为路由器设置使能口令为ciscoSNXL01(config)#enable secret ciscolab \\为路由器设置使能密码为ciscolab6、配置路由器端口IP地址SNXL01(config)interface fastethernet 0/0SNXL01(config-if)#IP add 192.168.1.1 255.255.255.0SNXL01(config-if)#no shutdownSNXL01(config-if)#exitSNXL01(config)#exit7、配置路由器f0/0端口描述信息SNXL01(config)interface fastethernet 0/0SNXL01(config-if)#descrIPtion “要描述的信息”8、进入路由器的串口配置模式SNXL01 (config)#interface serial 0/0SNXL01 (config_if)#9、设置串口的时钟频率SNXL01 (config)#interface serial 0/0SNXL01 (config_if)#clock rate 6400010、设置串口的带宽SNXL01 (config)#interface serial 0/0SNXL01 (config_if)#bandwidth 6411、配置静态路由SNXL01(config) #IP route 目标网络目标网络子网掩码下一跳地址12、配置缺省路由SNXL01(config) #IP route 0.0.0.0 0.0.0.0 下一跳地址SNXL01#copy running-config startup-config\\将配置信息存盘(存入NVRAM)SNXL01#show running-config \\查看当前的配置信息(RAM中的信息)SNXL01#show startup-config \\查看已存盘的信息(NVRAM中的信息)SNXL01#show IP route \\查看路由表信息SNXL01#show cdp neighbors \\查看此路由器还连有哪些CISCO的设备SNXL01#erase startup-config \\将路由器恢复到出厂配置SNXL01#reload \\重新启动路由器13、Switch基本配置Switch> \\交换机的启动时所进入的用户模式Switch>enable \\键入该命令以进入特许模式Switch# \\此显示模式表示已经进入了特许模式Switch#configure terminal \\键入该命令以进入全局配置模式Switch(config)# \\此显示模式表示已经进入了全局配置模式Switch(config)#hostname SNXL01 \\键入该命令把交换机的名称改为“SNXL01”SNXL01(config)#enable password cisco \\为交换机设置使能口令为ciscoSNXL01(config)#enable secret cisco \\为交换机设置使能密码为cisco SNXL01(config)#interface FastEthernet 0/10\\进入交换机的快速以太网端口f0/10SNXL01(config-if)#descrIPtion link to Server A\\配置f0/10的描述信息,描述此端口和服务器Server A相连SNXL01(config-if)#duplex full \\配置f0/10端口为全双工SNXL01(config-if)#speed 10 \\配置f0/10端口速率为10Mb/sSNXL01(config-if)#exit \\退出端口模式到全局配置模式SNXL01(config)#exit \\退出全局模式到特许模式SNXL01#copy running-config startup-config\\将配置信息存盘(存入NVRAM)SNXL01#show version \\查看交换机的版本信息SNXL01#show running-config\\查看当前的配置信息(RAM中的信息)SNXL01#show startup-config \\查看已存盘的信息(NVRAM中的信息)SNXL01#show mac-address-table \\查看交换机的MAC地址表内容SNXL01#show cdp neighbors \\查看此交换机还连有哪些cisco的设备SNXL01#erase startup-config \\将交换机恢复到出厂配置SNXL01#reload \\重新启动交换机14、交换机支持的命令(1)交换机基本状态: switch:;ROM状态,路由器是rommon> hostname> ;用户模式 hostname# ;特权模式 hostname(config)# ;全局配置模式 hostname(config-if)# ;接口状态(2)交换机口令设置: switch>enable ;进入特权模式 switch#config terminal ;进入全局配置模式 switch(config)#hostname ;设置交换机的主机名 switch(config)#enable secret xxx ;设置特权加密口令 switch(config)#enable password xxa ;设置特权非密口令 switch(config)#line console 0 ;进入控制台口 switch(config-line)#line vty 0 4 ;进入虚拟终端 switch(config-line)#login ;允许登录 switch(config-line)#password xx ;设置登录口令xx switch#exit ;返回命令(3)交换机VLAN设置: switch#VLANdatabase ;进入VLAN设置 switch(vlan)#VLAN2 ;建VLAN 2 switch(vlan)#no VLAN2 ;删VLAN2 switch(config)#int f0/1 ;进入端口1 switch(config-if)#switchport access VLAN2 ;当前端口加入VLAN2 switch(config-if)#switchport mode trunk ;设置为干线 switch(config-if)#switchport trunk allowed VLAN1,2 ;设置允许的vlan switch(config-if)#switchport trunk encap dot1q ;设置VLAN中继 switch(config)#vtp domain ;设置发vtp域名 switch(config)#vtp password ;设置发vtp密码 switch(config)#vtp mode server ;设置发vtp模式(4)交换机设置IP地址: switch(config)#interface VLAN1 ;进入VLAN1 switch(config-if)#IP address ;设置IP地址 switch(config)#IP default-gateway ;设置默认网关 switch#dir flash:;查看闪存(5)交换机显示命令: switch#write ;保存配置信息 switch#show vtp ;查看vtp配置信息 switch#show run ;查看当前配置信息 switch#show VLAN;查看vlan配置信息 switch#show interface ;查看端口信息 switch#show int f0/0 ;查看指定端口信息15、路由器支持的命令:(1)路由器显示命令: router#show run ;显示配置信息 router#show interface ;显示接口信息 router#show IP route ;显示路由信息 router#show cdp nei ;显示邻居信息 router#reload ;重新起动(2)路由器口令设置: router>enable ;进入特权模式 router#config terminal ;进入全局配置模式 router(config)#hostname ;设置交换机的主机名 router(config)#enable secret xxx ;设置特权加密口令 router(config)#enable password xxb ;设置特权非密口令 router(config)#line console 0 ;进入控制台口 router(config-line)#line vty 0 4 ;进入虚拟终端 router(config-line)#login ;要求口令验证 router(config-line)#password xx ;设置登录口令xx router(config)#(Ctrl+z);返回特权模式 router#exit ;返回命令(3)路由器配置: router(config)#int s0/0 ;进入Serail接口 router(config-if)#no shutdown ;激活当前接口 router(config-if)#clock rate 64000 ;设置同步时钟 router(config-if)#IP address ;设置IP地址 router(config-if)#IP address second ;设置第二个IP router(config-if)#int f0/0.1 ;进入子接口 router(config-subif.1)#IP address ;设置子接口IP router(config-subif.1)#encapsulation dot1q ;绑定vlan中继协议 router(config)#config-register 0x2142 ;跳过配置文件 router(config)#config-register 0x2102 ;正常使用配置文件 router#reload ;重新引导(4)路由器文件操作: router#copy running-config startup-config ;保存配置 router#copy running-config tftp ;保存配置到tftp router#copy startup-config tftp ;开机配置存到tftp router#copy tftp flash:;下传文件到flash router#copy tftp startup-config ;下载配置文件(5)静态路由: IP route ;命令格式 router(config)#IP route 2.0.0.0 255.0.0.0 1.1.1.2 ;静态路由举例 router(config)#IP route 0.0.0.0 0.0.0.0 1.1.1.2 ;默认路由举例(6)动态路由: router(config)#IP routing ;启动路由转发 router(config)#router rIP ;启动RIP路由协议。
switch操作系统交换机设置教程

switch操作系统交换机设置教程交换机的主要功能包括物理编址、网络拓扑结构、错误校验、帧序列以及流控。
Switch的存储介质有NvRam , Ram ,Flash 。
Switch 的操作系统和Vlan信息都存放在flash中,startup-config存放在NvRam中,NvRam自备供电系统。
这篇文章主要介绍了switch操作系统交换机设置方法,需要的朋友可以参考下一:交换机的工作原理:1:接受来自端口的frame2: 将来自对应端口的mac地址,端口vlan号,端口号记录到表中,3:如果表中没有,则根据对应的vlan号进行广播二:交换机是工作在数据链路层的设备,设置交换机的方式有两种:第一种是通过电脑用全反线接入Switch的console端口来进行设置。
还有一种是通过远程来设置。
第一次配置Switch只能通过电脑。
设置Switch有四种模式:普通用户模式,enable 模式,configure terminal 模式,interface 模式。
普通用户模式只能查询Switch的基本信息,enable模式是特权模式,这一级可以配置密码。
configure terminal是全局配置模式,对Switch作整体配置。
interface是接口模式,对具体的接口进行配置。
三:配置常用命令:1: 配置console端口的密码:进入enable模式.然后 enable line console 0 password 密码,enable line console 0 secret 密码。
然后输入login使密码生效。
配置的密码为明文.2: ? 查看帮助,和补全命令。
3:ctrl+z退出上层模式,ctrl+shift+6结束命令。
4:show 查看各种信息。
如 show ip interface brief5:show runnig-config 查看Switch的当前配置6:show startup-config 查看已经保存的信息7:erase nvram 删除已经保存的信息8:reload重新加载系统。
switch基本配置-1

删除进入特权模式的密码 no enable password
交换机基本配置常用命令
设置特权模式 加密密码 enable secret 密码 当即设置了明文密码又设置了加密密码后 加密密码优先级高 删除特权模式加密密码
使用telnet远程配置交换机
使用telnet登录时要给vty 和 enable 都设置密码才能设置交换机
In NVRAM
wg_ro_c#show startup-config Using 1359 out of 32762 bytes ! version 12.0 ! -- More --
• Displays the current and saved configuration
Overview of Router Modes
基本实验操作
Wisdom>enable Wisdom#configure terminal Wisdom(config)#no ip domain-lookup Wisdom(config)#line console 0 Wisdom(config-line)#logging synchronous Wisdom(config-line)#no exec-timeout Wisdom(config-line)#password cisco Wisdom(config-line)#login Wisdom(config-line)#exit Wisdom(config)#line vty 0 4 Wisdom(config-line)#logging synchronous Wisdom(config-line)#no exec-timeout Wisdom(config-line)#password cisco Wisdom(config-line)#login Wisdom(config-line)#end Wisdom#configure terminal Wisdom(config)#enable secret cisco Wisdom(config)#end Wisdom#service password-encryption //手工加密,不再显示明文密码
switch配置命令

cisco switch 配置命令大全switch(config)# hostname hostname在基于CLI的交换机上设置主机名/系统名:switch(enable) set system name name-string2.在基于IOS的交换机上设置登录口令:switch(config)# enable password level 1 password在基于CLI的交换机上设置登录口令:switch(enable) set passwordswitch(enable) set enalbepass3.在基于IOS的交换机上设置远程访问:switch(config)# interface vlan 1switch(config-if)# ip address ip-address netmaskswitch(config-if)# ip default-gateway ip-address在基于CLI的交换机上设置远程访问:switch(enable) set interface sc0 ip-address netmask broadcast-address switch(enable) set interface sc0 vlanswitch(enable) set ip route default gateway4.在基于IOS的交换机上启用和浏览CDP信息:switch(config-if)# cdp enableswitch(config-if)# no cdp enable为了查看Cisco邻接设备的CDP通告信息:switch# show cdp interface [type modle/port]switch# show cdp neighbors [type module/port] [detail]在基于CLI的交换机上启用和浏览CDP信息:switch(enable) set cdp {enable|disable} module/port为了查看Cisco邻接设备的CDP通告信息:switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] 5.基于IOS的交换机的端口描述:switch(config-if)# description description-string基于CLI的交换机的端口描述:switch(enable)set port name module/number description-string6.在基于IOS的交换机上设置端口速度:switch(config-if)# speed{10|100|auto}在基于CLI的交换机上设置端口速度:switch(enable) set port speed moudle/number {10|100|auto}switch(enable) set port speed moudle/number {4|16|auto}7.在基于IOS的交换机上设置以太网的链路模式:switch(config-if)# duplex {auto|full|half}在基于CLI的交换机上设置以太网的链路模式:switch(enable) set port duplex module/number {full|half}8.在基于IOS的交换机上配置静态VLAN:switch# vlan databaseswitch(vlan)# vlan vlan-num name vlaswitch(vlan)# exitswitch# configure teriminalswitch(config)# interface interface module/numberswitch(config-if)# switchport mode accessswitch(config-if)# switchport access vlan vlan-numswitch(config-if)# end在基于CLI的交换机上配置静态VLAN:switch(enable) set vlan vlan-num [name name]switch(enable) set vlan vlan-num mod-num/port-list9.在基于IOS的交换机上配置VLAN中继线:switch(config)# interface interface mod/portswitch(config-if)# switchport mode trunkswitch(config-if)# switchport trunk encapsulation {isl|dotlq}switch(config-if)# switchport trunk allowed vlan remove vlan-list switch(config-if)# switchport trunk allowed vlan add vlan-list在基于CLI的交换机上配置VLAN中继线:switch(enable) set trunk module/port [on|off|desirable|auto|nonegotiate] Vlan-range [isl|dotlq|dotl0|lane|negotiate]10.在基于IOS的交换机上配置VTP管理域:switch# vlan databaseswitch(vlan)# vtp domain domain-name在基于CLI的交换机上配置VTP管理域:switch(enable) set vtp [domain domain-name]11.在基于IOS的交换机上配置VTP 模式:switch# vlan databaseswitch(vlan)# vtp domain domain-nameswitch(vlan)# vtp {sever|cilent|transparent}switch(vlan)# vtp password password16.在基于IOS的交换机上调整端口ID:switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority 在基于CLI的交换机上调整端口ID:switch(enable) set spantree portpri {mldule/port}priorityswitch(enable) set spantree portvlanpri {module/port}priority [vlans] 17.在基于IOS的交换机上修改STP时钟:switch(config)# spanning-tree [vlan vlan-list] hello-time seconds switch(config)# spanning-tree [vlan vlan-list] forward-time seconds` switch(config)# spanning-tree [vlan vlan-list] max-age seconds在基于CLI的交换机上修改STP时钟:switch(enable) set spantree hello interval[vlan]switch(enable) set spantree fwddelay delay [vlan]switch(enable) set spantree maxage agingtiame[vlan]18.在基于IOS的交换机端口上启用或禁用Port Fast 特征:switch(config-if)#spanning-tree portfast在基于CLI的交换机端口上启用或禁用Port Fast 特征:switch(enable) set spantree portfast {module/port}{enable|disable}19.在基于IOS的交换机端口上启用或禁用UplinkFast 特征:switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second]在基于CLI的交换机端口上启用或禁用UplinkFast 特征:switch(enable) set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols off|on]20.为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令: switch(config)# cluster enable cluster-name21.为了从一条中继链路上删除VLAN,可使用下列命令:switch(enable) clear trunk module/port vlan-range22.用show vtp domain 显示管理域的VTP参数.23.用show vtp statistics显示管理域的VTP参数.24.在Catalyst交换机上定义TrBRF的命令如下:switch(enable) set vlan vlan-name [name name] type trbrf bridge bridge-num[stp {ieee|ibm}]25.在Catalyst交换机上定义TrCRF的命令如下:switch (enable) set vlan vlan-num [name name] type trcrf{ring hex-ring-num|decring decimal-ring-num} parent vlan-num26.在创建好TrBRF VLAN之后,就可以给它分配交换机端口.对于以太网交换,可以采用如下命令给VLAN分配端口:switch(enable) set vlan vlan-num mod-num/port-num27.命令show spantree显示一个交换机端口的STP状态.28.配置一个ELAN的LES和BUS,可以使用下列命令:ATM (config)# interface atm number.subint multiointATM(config-subif)# lane serber-bus ethernet elan-name29.配置LECS:ATM(config)# lane database database-nameATM(lane-config-databade)# name elan1-name server-atm-address les1-nsap-address ATM(lane-config-databade)# name elan2-name server-atm-address les2-nsap-address ATM(lane-config-databade)# name …30.创建完数据库后,必须在主接口上启动LECS.命令如下:ATM(config)# interface atm numberATM(config-if)# lane config database database-nameATM(config-if)# lane config auto-config-atm-address31.将每个LEC配置到一个不同的ATM子接口上.命令如下:ATM(config)# interface atm number.subint multipointATM(config)# lane client ethernet vlan-num elan-num32.用show lane server 显示LES的状态.33.用show lane bus显示bus的状态.34.用show lane database显示LECS数据库可内容.35.用show lane client显示LEC的状态.36.用show module显示已安装的模块列表.37.用物理接口建立与VLAN的连接:router# configure terminalrouter(config)# interface media module/portrouter(config-if)# description description-stringrouter(config-if)# ip address ip-addr subnet-maskrouter(config-if)# no shutdown38.用中继链路来建立与VLAN的连接:router(config)# interface module/port.subinterfacerouter(config-ig)# encapsulation[isl|dotlq] vlan-numberrouter(config-if)# ip address ip-address subnet-mask39.用LANE 来建立与VLAN的连接:router(config)# interface atm module/portrouter(config-if)# no ip addressrouter(config-if)# atm pvc 1 0 5 qsaalrouter(config-if)# atm pvc 2 0 16 ilnirouter(config-if)# interface atm module/port.subinterface multipointrouter(config-if)# ip address ip-address subnet-maskrouter(config-if)# lane client ethernet elan-numrouter(config-if)# interface atm module/port.subinterface multipointrouter(config-if)# ip address ip-address subnet-namerouter(config-if)# lane client ethernet elan-namerouter(config-if)# …40.为了在路由处理器上进行动态路由配置,可以用下列IOS命令来进行: router(config)# ip routingrouter(config)# router ip-routing-protocolrouter(config-router)# network ip-network-numberrouter(config-router)# network ip-network-number41.配置默认路由:switch(enable) set ip route default gateway42.为一个路由处理器分配VLANID,可在接口模式下使用下列命令:router(config)# interface interface numberrouter(config-if)# mls rp vlan-id vlan-id-num43.在路由处理器启用MLSP:router(config)# mls rp ip44.为了把一个外置的路由处理器接口和交换机安置在同一个VTP域中:router(config)# interface interface numberrouter(config-if)# mls rp vtp-domain domain-name45.查看指定的VTP域的信息:router# show mls rp vtp-domain vtp domain name46.要确定RSM或路由器上的管理接口,可以在接口模式下输入下列命令:router(config-if)#mls rp management-interface47.要检验MLS-RP的配置情况:router# show mls rp48.检验特定接口上的MLS配置:router# show mls rp interface interface number49.为了在MLS-SE上设置流掩码而又不想在任一个路由处理器接口上设置访问列表:set mls flow [destination|destination-source|full]50.为使MLS和输入访问列表可以兼容,可以在全局模式下使用下列命令:router(config)# mls rp ip input-acl51.当某个交换机的第3层交换失效时,可在交换机的特权模式下输入下列命令:switch(enable) set mls enable52.若想改变老化时间的值,可在特权模式下输入以下命令:switch(enable) set mls agingtime agingtime53.设置快速老化:switch(enable) set mls agingtime fast fastagingtime pkt_threshold54.确定那些MLS-RP和MLS-SE参与了MLS,可先显示交换机引用列表中的内容再确定:switch(enable) show mls include55.显示MLS高速缓存记录:switch(enable) show mls entry56.用命令show in arp显示ARP高速缓存区的内容。
计算机实验报告 交换机的基本配置

实验三:交换机的基本配置
一、实验目的
1 了解交换机的工作原理及 NOS 的启动过程。
2 掌握交换机 NOS 命令的使用方法。
3 掌握交换机参数的基本配置方法。
二实验环境
1 准备一台 S2126G交换机;
2 准备一台 PC机;
3 准备一条直连线或双绞线( 2M);
4 按图 1连接起来。
三实验内容
1 观察交换机的启动过程并查看交换机的参数配置;
2 对交换机进行基本参数配置;
3 查看运行结果;
四实验步骤
1.配置交换机主机名
Switch>en able;从用户模式进入特权模式
Switch#conf igure t erminal;从特权模式进入全局配置模式
Switch (config)#h ostname SW1;将主机名配置为“SW1”
SW1(config)#
5.显示交换机MAC地址表的记录
SW1#sh ow ma c-address-table
注:在 PC上开一命令行窗口,运行命令:c:\>ping 10.1.1.1 能
ping通则在交换机上执行show mac-address-table 可查看到PC 的MAC地址
注: PC的MAC地址可以在命令行下输入: ipconfig /all查看.
五测试与验证
1 验证命令
show run
ping。
SWITCH常用配置命令

SWITCH常用配置命令SWITCH常用配置命令Sw1#show cdp neighbors detail 查看邻居设备Show mac-address-table 查看MAC地址Show mac-address-table aging-time 看MAC地址老化时间Sw1(config)#mac-address-table aging-time 150 vlan 10修改老化时间创建VLANSw1(config)#vlan 10Sw1(config)#name sales在2900等旧机型上要用数据库模式来创建:Sw1#vlan databaseSw1#vlan 10 name salesSw1#exit 这里一定要用exit,否则无法退出Show vlan 查看VLANShow vlan brief 查看VLAN摘要信息Show interface summary本命令可看到交换机上的所有端口,以及哪些接口上连有设备Show interface status本命令可看到活动接口的双工模式,trunk,以及接口属于哪个VLAN将端口划进VLANInt f0/12Switchport mode access 指定为access(接入口)模式Switchport access valn 10划分入VLANIntferface range f0/5,f0/7,f0/12 同时划分多个端口Intferface range fastethernet 0/5 - 8,fastethernet 0/12 - 18 本台交换机起TrunkInt f0/24Switchport mode trunk 强制起TrunkAccess 强制为接入口Dynamic desirable 协商(默认)Dynamic auto 被动接受Switchport trunk encapsulation isl(dot1q|negotiate)封装模式,如果使用negotiate参数表示协商Sw1(config-if)#switchport nonegotiate 本接口不发送协商信息,通常和trunk模式联用Switchport trunk native vlan 10 设置一个不用打TAG的VLAN,大家都知道,在每台交换机上都要一致,默认是VLAN1。
ccnp详细笔记-switch总结

ccnp详细笔记-switch总结.docCCNP详细笔记 - SWITCH前言CCNP(Cisco Certified Network Professional)是思科认证网络专业人士的简称,是网络领域内高度认可的专业资格认证。
SWITCH是CCNP认证考试的一部分,主要涉及园区网交换和LAN交换技术。
本文档将提供SWITCH考试的详细笔记,帮助考生全面复习和准备。
第一部分:园区网交换概念VLAN(虚拟局域网)定义:VLAN是一种在交换机上创建不同广播域的技术,用于隔离网络流量。
配置:通过vlan database模式创建VLAN,并使用vlan id命令分配ID。
Trunking定义:Trunking是一种允许多个VLAN通过单个物理链路传输的技术。
配置:使用switchport mode trunk命令在端口上启用Trunking。
EtherChannels定义:EtherChannel允许将多个物理链路捆绑成一个逻辑通道,增加吞吐量和冗余。
配置:使用channel-group命令创建EtherChannel。
STP(生成树协议)定义:STP用于防止网络中的环路,通过选择活动路径和备用路径来管理网络拓扑。
配置:可以通过spanning-tree命令配置STP参数。
第二部分:LAN交换技术端口安全定义:端口安全用于限制连接到特定交换机端口的设备数量,防止MAC 地址泛滥。
配置:使用switchport port-security命令设置端口安全。
QoS(服务质量)定义:QoS用于管理网络流量,确保关键应用的性能。
配置:通过分类、标记、队列和调度等技术实现QoS。
ACL(访问控制列表)定义:ACL用于过滤网络流量,控制对网络资源的访问。
配置:使用ip access-group命令应用ACL。
无线LAN集成定义:无线LAN集成允许将无线接入点与有线网络无缝集成。
配置:涉及WAP(无线接入点)的配置和无线控制器的管理。
LANSWITCH配置注意事项

LANSWITCH配置注意事项LANSWITCH配置注意事项序号注意项目记录1 登录交换机时请注意在超级终端串口配置属性流控选择“无”2 启动时按”ctrl+B”可以进入到boot menu模式3 当交换机提示”Please Press ENTER”,敲完回车后请等待一下,设备需要一定的时间才能进入到命令行界面(具体的时间视产品而定)4 请在用户视图(如<Quidway>)输入”system-view”(输入”sys”即可)进入系统视图(如[Quidway])5 对使用的端口、vlan、interface vlan进行详细的描述6 如果配置了telnet用户,一定要设置权限或配置super密码7 除了S5516使用SFP模块,S8016和S6500系列使用模块,其它产品使用模块不可以带电插拔8 某产品使用其它产品模块前请确认该模块是否可以混用9 配置acl时请注意掩码配置是否准确10 二层交换机配置管理IP后,请确保管理vlan包含了管理报文到达的端口11 配置完毕后请在用户视图下(如<Quidway>)采用save命令保存配置12 请确保在设备保存配置的时候不掉电,否则可能会导致配置丢失13 如果要清除所有配置,请在用户视图下(如<Quidway>)采用resetsaved-configuration,并重启交换机注:其他配置需注意的地方请参考每部分内容后面的注明LANSWITCH日常维护基本操作1基本操作1.1常用命令新旧对照列表1.disp是display的缩写,在没有歧义时LANSWITCH会自动识别不完整词2.disp cur显示LANSWITCH当前生效的配置参数3.disp和ping命令在任何视图下都可执行,不必切换到系统视图4.删除某条命令,一般的命令是undo xxx,另一种情况是用其他的参数代替现在的参数,如有时虽然xxx abc无法使用undo删除,但是可以修改为xxx def以太网端口链路类型介绍以太网端口有三种链路类型:Access、Hybrid和Trunk。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
网络工程师交换试验手册之十八:SWITCH的基本配置
实验目的
熟悉交换机的基本操作λ
为定义控制台密码λ
为交换更改主机名称λ
λ为交换机控制台的添加IP地址和默认网关等
实验设备:
1912交换机和2924交换机。
1900系列交换机的基本配置。
为交换机命名:
switch(config)#hostname switch(switch 为我们定义的名称)
定义控制台密码:
switch(config)#line console
switch(config-line)#password xxxxx(xxxxx为我们定义的密码)
为交换机定义IP地址:
switch(config)#ip address 192.168.1.2 255.255.255.0
为交换机定义默认网关:
switch(config)#ip default-gateway 192.168.1.1
2900系列交换机的基本配置。
switch(config)#hostname 2924(2924是我们定义的名称)
switch(config)#line console 0
switch(config-line)#password ?
0 Specifies an UNENCRYPTED password will follow
7 Specifies a HIDDEN password will follow
LINE The UNENCRYPTED (cleartext) line password
switch(config-line)#password sss(sss为我们定义的密码)
switch(config)#int vlan1
switch(config-if)# ip address 192.168.0.65 255.255.255.0
switch(config)#ip default-gateway 192.168.0.24
其实交换机在网络中的作用是很重要的,但是由于现行的交换设备它的配置还是比较趋于简单化的,但是它的变化是多样的是复杂的,希望大家在今后的课程中要多多主意。
交换机的配置并非大家想象的那么简单。