procurv交换机配置手册
HP procurv交换机配置手册2524_lacp

HP ProCurve Switch 2524(config)# hostname Switch_A
2500 Switches. The first command in the sequence of CLI commands given below will first reset a
Series 2500 Switch back to its factory default settings. We recommend saving your current
configuration if necessary. Otherwise, skip the first command.
WARNING:
NOTES:
1. By default, LACP is enabled (all ports are set to LACP passive) on the Series 2500 Switches. For a dynamic LACP trunk to form, at least one end of the link must be LACP active. 2. The Series 2500 Switches support one trunk group of up to four ports, and the ports need not be consecutive or contiguous on the switch. 3. Dynamic LACP trunks are always created in the DEFAULT_VLAN of Series 2500 Switches. That is because the LACP protocol does not send VLAN information, so the switches have no way to know what VLAN or VLANs to put the trunk into. 4. There is no limit, besides the number of physical ports available on the switch, on the number of "standby" ports in an LACP trunk group. 5. If STP and/or IGMP is enabled in the switch, a dynamic LACP trunk operates only with the default settings for these features and does not appear in the port listings for these features. 6. Port security does not operate on a trunk group. 7. The configuration examples below were created on software version F.01.07.
锐捷交换机配置手册完整

锐捷S3550配置手册第一部分:交换机概述一:交换机的几种配置方法控制台用一台计算机作为控制台和网络设备相连,通过计算机对网络设备进行配置。
远程登录通过一台连接在网络中的计算机,用Telnet命令登录网络设备进行配置。
其它配置方法除了控制台和远程登录之外,还有其它一些配置方法配置网络设备。
二:命令行(CLI)操作命令模式交换机和路由器的命令是按模式分组的,每种模式中定义了一组命令集,所以想要使用某命令模式的切换交换机和路由器的模式大体可分为四层:用户模式→特权模式→全局配置模式→其它配置CLI命令的编辑技巧CLI(命令行)有以下特点。
常见CLI错误提示% Ambiguous command: "show c"使用no 和default 选项很多命令都有no 选项和default 选项。
三:交换机的初始化配置交换机的初始化配置setup命令四:配置文件的保存、查看与备份查看配置文件模式:特权配置模式。
保存配置文件保存配置文件就是把running-config 保存为startup-config。
删除配置文件删除配置文件就是把NVRAM中的startup-config 删除。
备份配置文件通常我们把配置文件备份到TFTP服务器上,在需要时可以再从TFTP服务器上把配置文五:文件系统文件系统概述交换机和路由器用一个并行Flash作为辅助存储器存储文件,Flash是一个可读可写的存文件操作所有文件操作都是在特权模式下进行。
目录操作Flash中的文件可以使用树形的目录结构,文件可以存放在不同的子目录中,也可以在目六:系统文件的备份与升级搭建环境在备份和升级时需要搭建通信环境,让设备和计算机间可以传输文件。
有三个方案:用TFTP传输文件准备工作:用Xmodem传输文件准备工作:ROM监控模式进入ROM监控模式有两种方法:七:密码丢失的解决方法第二部分:交换机的基本配置一:配置主机名主机名用于标识交换机和路由器,通常它会作为提示符的一部分显示在命令提示符的前二:配置口令配置控制台口令控制台口令是通过控制台登录交换机或路由器时设置的口令。
惠普Procurve以太网交换机配置指南-Version-1.0

惠普Procurve以太网交换机配置指南-Version-1.0中国惠普有限公司Administrator2011年5月5日惠普ProCurve以太网交换机安装配置指南Version1.0产品介绍ProCurve 6120系列交换机分为两种型号:●6120G/XG●6120XG产品名称的规则:以6120产品的G/XG为例,G和XG都指端口速率,其中G表示1Gb per second,XG表示10Gb per second;”/”以前的部分特指内部端口速率,”/”以后的部分特指外部端口速率。
前面板及端口介绍:端口•10GbE CX4—The CX4 interface requires the use of copper cabling, similar to the variety used in InfiniBand technology, and is designed to work up to a distance of15 m. CX4 technology is an attractive solution because ithas the lowest cost per port of all 10Gb interconnects, at the expense of range. CX4 has a bigger form factor than either SFP or SFP+.•10GbE XFP ports—These 10GbE ports support SR (multi-mode fiber, 300 m) and LR (single-mode fiber, 10 km) optic transceivers based on the XFP version of the small form factor pluggable specification. XFP transceivers have a smaller form factor compared to several standards (XENPAK, X2, XPAK) that preceded it. The XFP ports support Industry Standard Servers (ISS) optics only.•1GbE SFP ports—These 1GbE ports support SX (multi-modefiber, 550 m) and LX (single-mode fiber, 10 km) optictransceivers based on the SFP version of the small formfactor pluggable specification using an LC physicalconnector. These ports also support 1000BASE-T copperconnections using an RJ-45 connector. The SFP ports supportISS and ProCurve optics.•10/100/1000 RJ-45 ports—These ports support standard RJ-45 Ethernet cables and each port can operate at one ofthree autosensing speeds.•5x 10GbE SFP+ ports—These five ports are dedicated10GbE SFP+ ports that support SR (multi-mode fiber, 300 m), LR(single-mode fiber, 10 km), and LRM (multi-mode fiber, 220m) optic SFP+ transceivers.•2x 10GbE SFP+ ports—Individually, the two ports labeled23 and 24 can be used as either external 10GbE SFP+ portsor internal 10GbE switch-to-switch (cross-link) ports. ForSFP+ connectivity, these ports support the same fiber optictransceivers as the other SFP+ ports.•Internal Network Ports—The 6120G/XG also has “internal”Ethernet ports that function as downlinks to devices in the enclosure. The internals ports are essentially communication interfaces used to transfer data to and from server blades,storage blades, and even another 6120G/XG (if it is installed in an adjacent bay of the enclosure). The internal ports use the enclosure’s midplane circuitry to communicate with the other c-Class enclosure components.•Management Port—The IP address within the OA subnet that you assign to the blade switch is used by a switch component known as Out-Of-Band Management (OOBM).交换机系统指示灯:Module status LED:绿色表示交换机工作正常;橙色表示有故障Module locator LED:用户可以通过命令chassislocate <off|on|blink>来控制其状态,方便用户找到此交换机端口指示灯介绍:Link status LED:绿色表示已连接;橙色表示有故障Link activity LED绿色闪烁表示正在通讯RJ-45指示灯绿色闪烁表示端口正在10/100Mb per second速率通讯橙色闪烁表示端口正在1000Mb per second速率通讯管理口介绍:Mini USB接口,交换机产品包装里都有对应的线缆;使用其管理交换机时,需要先安装相应的驱动程序,并通过终端模拟器软件访问。
HP ProCurve Switch 3500系列交换机 说明书

产品概述
主要特性
HP ProCurve Switch 3500系列是HP ProCurve Networking • 高级访问层和小型分布层
产品线中较为先进的智能交换机,包括24端口和48 端口 可堆叠产品。所有这些交换机均基于定制的可编程 ProVision ASIC,允许以可扩展的细粒度方式提供服务质 量(QoS)和安全性等要求苛刻的网络功能。因为拥有各种 千兆和10/100接口、集成PoE+、PoE和非PoE选项、千兆交
力提供111.5 Mpps的吞吐率
• 可选择的队列配置:通过选择队列数量,以及可满足网 络应用需求的相关内存缓冲,提高系统性能
◆ 在产品使用期间提供下一工作日提前更换服务(适用于大部分国家/地区)。对于下列硬件产品,磁盘享有五年硬件保修服务,模块的其余部分享有终身硬件保修服务(产品使用 期间):HP ProCurve ONE服务zl模块、HP ProCurve威胁管理服务zl模块和HP ProCurve MSM765zl移动控制器。下列硬件产品及其相关系列模块享有一年硬件保修服务(可扩 展):HP ProCurve Routing Switch 9300m系列、HP ProCurve Switch 8100fl系列、HP ProCurve Network Access Controller 800和HP ProCurve DCM控制器。下列硬件产品享有 一年硬件保修服务(可扩展):HP ProCurve M111客户端网桥、HP ProCurve MSM3xx-R接入点、HP ProCurve MSM7xx移动访问控制器、HP ProCurve RF Manager IDS/IPS系 统、HP ProCurve MSM电源和HP ProCurve 1端口电源馈电器、HP ProCurve CNMS设备和HP ProCurve MSM317接入设备。独立软件、升级或许可的保修期限可能有所不同。 欲知详情,请访问:/warranty,查看ProCurve软件许可、保修和支持手册。
02锐捷交换机简单配置说明

交换机简单配置命令说明1、交换机的几种模式简介 (1)2、交换机的相关配置命令 (2)1)配置密码的命令 (2)2)给交换机命名 (2)3)配置管理vlan的命令 (2)4)配置ACL的命令 (2)5)进入端口配置trunk的命令 (3)6)进入端口配置vlan的命令 (3)7)配置群体端口的命令 (3)8)设置三层交换机的system-guard功能 (4)9)设置三层交换机的风暴控制功能 (4)10)配置生成树命令(可以选用此配置用在和用户PC相连的21接入交换机上) (4)11)设置二层交换机缺省网关命令(21交换机的配置命令) (5)12)配置802。
1X的相关命令 (5)13)保存配置的命令 (6)3、交换机的一些查看命令简介 (6)1、交换机的几种模式简介Switch> 用户模式(此模式只可以简单的查看一些交换机的配置和一些简单的修改如果原来配置有密码的,还要输入密码才可以进入)Switch> enable 用户模式输入enable将进入配置模式就是下面的示例,当然,命令可以简写为en:Switch#配置模式(这个模式可以查看一些交换机的配置,还可以对一些简单的设置配置,例如时间。
)Switch#configure terminal要想对交换机有进一步的操作权限,就必须进入全局配置模式,配置模式下可以通过config terminal 命令来达到这个目的,当然也可以使用简写命令con t Switch(config)# 全局配置模式(用户可以在这种状态下执行许多对交换机的配置命令,例如:命名、配置密码、设置服务、路由等等。
)但是仅仅有全局配置模式还是不够的,用户如果要细致的对每项参数进行配置,还必须进入到各自的参数单元中,下面举几个例子Switch(config)# interface gigabitEthernet 4/1从全局配置模式下进入到g 4/1接口模式下Switch(config)# interface vlan 111从全局配置模式下进入到vlan 111接口模式下则模式变为下面所示:Switch (config-if)#接口模式另外就是建立vlan的模式中,如下所示:Switch(config)# vlan 111Switch(config-vlan)#vlan 模式再举一例,就是配置ACL和动态路由的情况都是从全局配置模式下进入他们各自的子接口的:Switch(config)# ip access-list extended deny-portSwitch(config-ext-nacl)#exitSwitch(config)# router ospfSwitch(config-route)# exit好,上面是对交换机的几种工作模式做了个简单的讲解,现在具体来说一下几个交换机的简单的配置命令,这些命令都是通用的(二层和三层如果有区别的话我会注明)2、交换机的相关配置命令1)配置密码的命令Switch(config)# enable secret level 1 0 111 设置远程登陆密码为111(密码级别为1,加密模式为0表示明文模式输入)Switch(config)# enable secret level 15 0 111设置com口登陆密码为111(密码级别为15,加密模式为0表示明文模式输入)2)给交换机命名Switch(config)# hostname ### 给交换机命名###3)配置管理vlan的命令Switch# con t 用户模式进入全局配置模式命令Switch(config)# vlan 10这里假设管理vlan为vlan 10,建立vlan 10Switch(config-vlan)# exit退出Switch(config)# int vlan 10 进入vlan接口模式Switch(config-if)# ip address 192.168.1.254 255.255.255.0给vlan分配IP地址192.168.1.254 Switch(config-if)# no shut 激活vlan(这一步一定不要遗忘)Switch(config-if)# exit退出vlan端口模式4)配置ACL的命令Switch(config)# Ip access-list exten deny-port 建立acl访问控制列表Switch(config-ext-nacl)# deny tcp any any eq 135 对常用病毒的端口封堵规则Switch(config-ext-nacl)# deny tcp any any eq 139Switch(config-ext-nacl)# deny tcp any any eq 593Switch(config-ext-nacl)# deny tcp any any eq 4444Switch(config-ext-nacl)# deny udp any any eq 4444Switch(config-ext-nacl)# deny udp any any eq 135Switch(config-ext-nacl)# deny udp any any eq 137Switch(config-ext-nacl)# deny udp any any eq 138Switch(config-ext-nacl)# deny tcp any any eq 445Switch(config-ext-nacl)# deny udp any any eq 445Switch(config-ext-nacl)# deny udp any any eq 593Switch(config-ext-nacl)# deny tcp any any eq 593Switch(config-ext-nacl)# deny tcp any any eq 3333Switch(config-ext-nacl)# deny tcp any any eq 5554Switch(config-ext-nacl)# deny udp any any eq 5554Switch(config-ext-nacl)# permit ip any any 这个条件可别疏忽了:允许IP内网出去外网Switch(config-ext-nacl)# exit 退出acl配置模式5)进入端口配置trunk的命令tch(config)# interface fastethernet 0/24 进入端口0/24中Switch(config-if)# switchport mode trunk 把端口模式设置为trunk口(trunk为和交换机相连的通讯口,它会对不同的vlan间通讯的信息报文打上一个表示vlan的tag标记)Switch(config-if)# exit 退出端口模式备注:vlan修剪的概念,如果这个链路下面的vlan不多,为了减少别的vlan广播等的流量对此trunk中的设备造成影响,最好是启用vlan修剪功能,例如此交换机下面只有vlan 1-3,那么可以在端口中配置如下3550a(config-if)#sw trunk allowed vlan remove 4-4094在这个trunk中vlan 4至4094的vlan 流量都不能透过6)进入端口配置vlan的命令Switch(config)# interface fastethernet 0/1进入到0/1接口Switch(config-if)# switchport access vlan 10把端口fastethernet 1/1加入进vlan 10 中Switch(config-if)# exit 退出端口模式7)配置群体端口的命令Switch(config)# interface range fastethernet 0/1-××多口配置命令配置1-××接口Switch(config-if)# switchport access vlan 10把端口加入进vlan 10 中Switch(config-if)# Ip access-group deny-port in把刚才配置的acl访问控制列表加入到具体端口中去Switch(config-if)# exit退出端口模式8)设置三层交换机的system-guard功能Switch(config)# interface fa 0/1进入接口模式fa 0/1 口Switch(config-if) # system-guard enable启用system-guard 功能还有详细的具体表项命令参考如下SWITCH(config-if)# system-guard ? 在system-guard 功能上细分,还可以人为的设置对攻击包的判断阀值enable Enable system guard on interfaceisolate-time Specify interval for isolate time in secondssame-ip-attack-packets Specify same ip attack pktsscan-ip-attack-packets Specify scan ip attack pkts9)设置三层交换机的风暴控制功能Switch(config)# interface fa 0/1 进入接口模式fa 0/1 口Switch(config-if) # storm-control broadcast 端口启用广播风暴控制SWITCH(config-if)# storm-control ?broadcast Broadcast address storm controlmulticast Multicast address storm controlunicast Unicast address storm control还有细分的风暴包数目控制,可以人为的设置对风暴包的判断阀值(特定在65上,35目前还没有这个选项),示例如下:SWITCH(config-if)# storm-control broadcast ?level set the storm levelpps packets per-second<cr>10)配置生成树命令(可以选用此配置用在和用户PC相连的21接入交换机上)Switch(config)# spanning-tree 在交换机上启用生成树Switch(config)# spanning-tree mode stp/mstp/rstp 这条命令可以设置生成树的状态,默认是mstp(有3种生成树,stp,mstp,rstp),一般可以不去改动Switch(config)# spanning-tree mst 0 priority 8192 设置生成树的优先级,默认为32768,优先级越低,成为根的可能性越大,当然了,如果全网开生成树的情况下,核心设备的优先级必须设置成最高,一般核心的priority设成4096,汇聚的设为8192,接入的次之或不改动默认设置Switch(config)# spanning-tree portfast bpdufilter default 在生成树速端口上启用对接入用户的bpdu包过滤的功能(这条是针对:此端口下面是接的PC用户)Switch(config)# interface fa 0/1 进入接口模式fa 0/1 口Switch(config-if) # spanning-tree portfast 在端口上启用带bpdu过滤的速端口设置Switch(config-if) # end 退出接口模式Switch#wri11)设置二层交换机缺省网关命令(21交换机的配置命令)Switch(config)# ip default-gateway 192.168.1.254给交换机配置网关为192.168.1.254Switch (config)# exit 退出全局配置模式12)配置802。
锐捷交换机配置命令(分析运用)

锐捷交换机配置命令交换机基本操作:1.进入特权模式Switch>enableSwitch#2.返回用户模式Switch#exitPress RETURN to get started!Switch>配置模式:全局配置模式[主机名(config)#]:配置交换机的整体参数子模式:1.线路配置模式[主机名(config-line)#]:配置交换机的线路参数2.接口配置模式[主机名(config-if)#]:配置交换机的接口参数1.进入、退出全局配置模式Switch#configure terminalSwitch(config)#exitSwitch#2.进入、退出线路配置模式Switch(config)#line console 0Switch(config-line)#exitSwitch(config)#3.进入、退出接口配置模式Switch(config)#interface fastEthernet 0/1Switch(config-if)#exitSwitch(config)#从子模式下直接返回特权模式Switch(config-if)#endSwitch#交换机操作帮助:1.支持命令简写(按TAB键将命令补充完整)2.在每种操作模式下直接输入“?”显示该模式下所有的命令3.命令空格“?”显示命令参数并对其解释说明4. “字符?”显示以该字符开头的命令5.命令历史缓存: (Ctrl+P)显示上一条命令,(Ctrl+N)显示下一条命令6.错误提示信息交换机显示命令:显示交换机硬件及软件的信息 Switch#show version显示当前运行的配置参数 Switch#show running-config显示保存的配置参数 Switch#show configure常用交换机EXEC命令:1.将当前运行的配置参数复制到flash:Switch#write memoryBuilding configuration...[OK]Switch#2.清空flash中的配置参数:Switch#delete flash:config.textSwitch#3.交换机重新启动:Switch#reloadSystem configuration has been modified. Save? [yes/no]:nProceed with reload? [confirm]4.配置交换机主机名:Switch(config)#hostname S2126G-1S2126G-1(config)#5.配置交换机口令:1) 配置交换机的登陆密码S2126G(config)#enable secret level 1 0 star“0”表示输入的是明文形式的口令2) 配置交换机的特权密码S2126G(config)#enable secret level 15 0 star“0”表示输入的是明文形式的口令常用交换机配置命令:1、为交换机分配管理IP地址S2126G(config)#interface vlan 1S2126G(config-if)#ip address {IP address} {IP subnetmask}[secondary] 2、将接口启用S2126G(config-if)#no shutdown3、将接口关闭S2126G(config-if)#shutdown4、配置接口速率S2126G(config-if)#speed [10|100|auto]5、配置接口双工模式S2126G(config-if)#duplex [auto|full|half]显示接口状态:S2126G#show interface测定目的端的可达性:S2126G>ping {IP address}从TFTP服务器下载配置参数:S2126G#copy tftp startup-config管理交换机MAC地址表:1、查看MAC地址表S2126G#show mac-address-table2、配置MAC地址表记录的生存时间(缺省为300秒)S2126G(config)#mac-address-table aging-time <10-1000000>3、查看MAC地址表记录的生存时间S2126G#show mac-address-table aging-timeVLAN的配置:1.添加一个VLANS2126G(config)#vlan <1-4094>S2126G(config-vlan)#2.为VLAN命名S2126G(config-vlan)#name 名字将交换机端口分配到VLAN1.配置Port VLANSwitch(config-if)#switchport access vlan <1-4094>2.配置Tag VLANSwitch(config-if)#switchport mode trunk1)配置本地(native)VLANSwitch(config-if)#switchport trunk native vlan <1-4094>Native VLAN即PVID,默认情况下每个trunk口的native VLAN 是12)从主干链路中清除VLANSwitch(config-if)#switchport trunk allowed vlan except vlan-list 注:VLAN1不可被清除3)在主干链路中允许所有VLANSwitch(config-if)#switchport trunk allowed vlan all4)向主干链路中加入VLANSwitch(config-if)#switchport trunk allowed vlan add vlan-listVLAN的验证:1.显示全部的VLAN:Switch#show vlan2.显示单独的VLAN :Switch#show vlan id <1-4094>将VLAN信息保存到flash中:Switch#write memory从flash中清除VLAN信息:Switch#delete flash:vlan.datRSTP的配置:1.启用生成树:S2126G(config)#spanning-tree2.配置交换机优先级:S2126G(config)#spanning-tree priority <0-61440>“0”或“4096”的倍数(RSTP BPDU该值后12bit全0)3.配置交换机端口优先级:S2126G(config-if)#spanning-tree port-priority <0-240>“0”或“16”的倍数(RSTP BPDU该值后4bit全0)4、生成树hello时间的配置(由Root决定):S2126G(config)#spanning-tree hello-time <1-10>5、生成树的验证:Switch#show spanning-treeSwitch#show spanning-tree interface <接口名称> <接口编号>聚合端口的创建:Switch(config)# interface aggregateport 1 创建聚合接口AG1Switch(config-if)# switchport mode trunk 配置并保证AG1为 trunk 模式Switch(config)#int range f0/23-24Switch(config-if-range)#port-group 1 将端口(端口组)划入聚合端口AG1中生成树:Switch(config)#spanning-tree 开启生成树协议Switch(config)#spanning-tree mode stp 指定生成树类型为stp可选模式stp , rstp , mstpSwitch(config)#spanning-tree priority 4096 设置交换机的优先级为4096 , 优先级值小为高。
锐捷交换机和路由器基本操作简介

锐捷交换机和路由器基本操作简介路由器和交换机的基本配置一、C LI命令模式:CLI 命令的模式将命令划分成若干独立的集合,以下是支持的主要命令模式:➢User EXEC 模式(用户模式);➢Privileged EXEC 模式(特权模式);➢Global configuration 模式(全局配置模式);➢Interface configuration 模式(接口配置模式);➢Config-vlan 模式(VLAN 配置模式);注:路由器中无VLAN配置模式1、User EXEC(用户模式)访问交换机时首先进入该模式。
Switch> (用户模式的提示符为设备的名称后紧跟‘> ’符号)输入exit 命令离开该模式。
要进入特权模式,输入enable 命令。
当用户访问交换机时,自动进入用户模式。
在用户模式下的用户级别称为普通用户级,。
普通用户级别能够使用的Exec 命令(即可执行命令)只是特权用户级别Exec 命令的一个子集。
在这种情况下,用户通常只能进行一些简单的测试操作,或者查看系统的一些信息。
用户模式所能执行的Exec 命令由设备提供的功能决定,要查看全部命令列表,在命令模式提示符下键入查询符号(?)。
Switch> ?2、Privileged EXEC(特权模式)在用户模式下,使用enable 命令进入该模式。
Switch# (特权模式的提示符为设备的名称后紧跟‘#’符号)返回到用户模式,输入disable 命令。
要进入全局配置模式,输入configure命令。
因为特权模式的命令管理着许多设备的运行参数,必须使用口令保护来防止非授权使用,所以从用户模式进入特权模式必须输入正确的口令。
特权模式的命令集包含了用户模式的全部命令。
如果系统管理员设置了特权级别的口令,则进入特权模式之前将提示需要输入口令,输入的口令在屏幕上不会显示。
特权模式所能执行的Exec 命令由设备提供的功能决定,要查看全部命令列表,在命令模式提示符下键入查询符号(?)。
锐捷路由器的配置(交换机、路由器配置步骤简要说明)

锐捷路由器的配置一、路由器基本配置命令/*由远程终端登录路由器*/Red-Giant>enable——由用户模式进入特权模式Password:******——输入密码Red-Giant#configure——由特权模式进入全局配置模式Configuring from terminal, memory, or network [terminal]? t——输入t继续Red-Giant(config)#hostname Router——修改路由器名称/*配置接口IP地址*/Router(config)#interface fastethernet 0——进入以太网口0接口模式Router(config-if)#ip address 192.168.1.1 255.255.255.0——为其配置IP地址Router(config-if)#no shutdown——启用配置Router(config-if)#exit——退至配置模式Router(config)#interface fastethernet 1——进入以太网口0接口模式Router(config-if)#ip address 192.168.2.1 255.255.255.0——为其配置IP地址Router(config-if)#no shutdown——启用配置Router(config-if)#exit——退至配置模式Router(config)#interface serial 0——进入Serial 0接口模式Router(config-if)#ip address 192.168.3.1 255.255.255.0——为其配置IP地址Router(config-if)#no shutdown——启用配置Router(config-if)#exit——退至配置模式Router(config)#interface serial 1——进入Serial 1接口模式Router(config-if)#ip address 192.168.4.1 255.255.255.0——为其配置IP地址Router(config-if)#no shutdown——启用配置Router(config-if)#end——退至特权模式Router#write——保存配置信息Router(config)#interface loopback 0——新建Loopback 0Router(config-if)#ip add 10.10.1.1 255.255.255.0——为其配置IP地址Router(config-if)#int loopback 1——新建Loopback 1Router(config-if)#ip add 10.10.2.1 255.255.255.0——为其配置IP地址Router(config-if)#end——退至特权模式/*查看路由器相关配置信息*/Router#show ip interface brief——查看配置状态Router#show version——显示路由器版本信息Router#show ip interface fastethernet 0——查看以太网口0接口配置状态Router#show running-config——显示当前运行的配置参数Router#show startup-config——显示NVRAM中中配置参数的副本Router#copy running-config startup-config——将当前运行的配置参数复制到NVRAMRouter#erase startup-config——清空NVRAM中的配置参数Router#reload——重新启动路由器/*配置console登陆密码*/Router(config)#line console 0Router(config-line)#loginRouter(config-line)#password star/*配置VTY登陆密码*/Router(config)#line vty 0 4Router(config-line)#loginRouter(config-line)#password star/*配置特权模式登录密码*/Router(config)#enable password star——配置明文密码Router(config)#enable secret star——配置的密码不能与password密码相同二、路由器密码丢失的处理方法01、关闭路由器,重新登录超级终端,按默认方法设置;02、启动路由器,不停地按Ctrl+Pause Break,直至出现Boot:提示符,输入Setup-Reg;Boot:Setup-Reg03、出现如下提示信息,按“Y”回车确认:Do you wish to change the configuration?y/n[n]:04、出现提示如下信息,按“Y”回车确认:Enable“bypass the system configure file”y/n[n]:05、出现提示如下信息,按“N”回车确认:Enable“debug mode?”y/n[n]:06、出现提示如下信息,按“N”回车确认:Enable“user break/abort enabled?”y/n[n]:07、出现提示如下信息,按“N”回车确认:Change console speed?y/n[n]:08、出现提示如下信息,按“N”回车确认:Do you wish to change the configuration?y/n[n]:09、出现提示符“Boot:”,输入Reset;Boot:reset10、出现提示如下信息,按“N”回车确认:Would you like to enter the initial configuration dialog?[Yes]:此时密码及路由器信息被清除,你就可以顺利进入路由器了……可以归纳为“Setup-Reg,两个Y五个N,Reset”。