路由器配置命令详细列表

合集下载

锐捷路由器命令全集

锐捷路由器命令全集

锐捷路由器命令全集锐捷路由器命令全集一、基本配置命令1.登录命令1.1.登录路由器:login1.2.切换用户:su [用户名]1.3.修改用户密码:passwd2.接口配置命令2.1.查看接口信息:show interface2.2.配置接口IP地质:ip address [接口名称] [IP地质] [子网掩码]2.3.启用/禁用接口:shutdown / no shutdown [接口名称]2.4.配置接口描述:description [接口名称] [描述]3.静态路由配置命令3.1.添加静态路由:ip route [目标网络地质] [子网掩码] [下一跳地质]3.2.删除静态路由:no ip route [目标网络地质] [子网掩码] [下一跳地质]3.3.查看静态路由表:show ip route static4.动态路由配置命令4.1.启用/禁用动态路由:router ospf [进程号] / no router ospf [进程号]4.2.配置OSPF路由:network [网络地质] [子网掩码] area [区域号]4.3.查看OSPF邻居状态:show ip ospf neighbor5.NAT配置命令5.1.配置静态NAT:ip nat inside source static [内部地质] [外部地质]5.2.配置动态NAT:ip nat inside source list [访问控制列表] [外部地质池] overload5.3.查看NAT转换表:show ip nat translations6.VLAN配置命令6.1.创建VLAN:vlan database / vlan [VLAN号] name [VLAN名称]6.2.将接口加入VLAN:interface [接口名称] /switchport mode trunk / switchport mode access / switchport access vlan [VLAN号]6.3.查看VLAN配置信息:show vlan brief7.安全配置命令7.1.配置登录密码:enable password [密码]7.2.配置Telnet/SSH登录:line vty 0 [最小号] [最大号] / transport input telnet / transport input ssh7.3.配置访问控制列表:access-list [序号] permit [源地质] [目标地质] [协议]7.4.应用访问控制列表:interface [接口名称] / ip access-group [序号] in / out8.系统管理命令8.1.查看系统信息:show version8.2.配置系统时钟:clock set [时间]8.3.保存配置:write memory二、附件:无三、法律名词及注释:1.IP地质:Internet Protocol Address,互联网协议地质,用于唯一标识网络上的设备。

思科路由器命令大全(完整版)

思科路由器命令大全(完整版)

思科路由器命令大全(完整版)思科路由器命令大全(完整版)本文档旨在提供思科路由器命令的详细说明和使用指南,包括路由器配置、网络管理、安全性设置等内容。

每个章节都详细介绍了不同的命令和参数,以帮助用户更好地理解和使用思科路由器。

1:路由器基本配置1.1 主机名设置1.2 用户名和密码设置1.3 IP 地址和子网掩码配置1.4 默认网关配置2:接口配置2.1 以太网接口配置2.2 串行接口配置2.3 子接口配置2.4 虚拟局域网 (VLAN) 配置3:路由协议配置3.1 静态路由配置3.2 动态路由配置3.2.1 RIP 配置3.2.2 OSPF 配置3.2.3 BGP 配置4:网络管理4.1 SNMP 配置4.2 NetFlow 配置4.3 Syslog 配置4.4 路由器时间设置5:安全性配置5.1 访问控制列表 (ACL) 配置5.2 VPN 配置5.3 防火墙配置5.4 AAA 配置附件:本文档附带的附件包括示例配置文件、命令输出示例等,以帮助读者更好地理解和应用文档中的内容。

法律名词及注释:本文档所涉及的法律名词及其注释如下:1:主机名:指路由器的主机标识名称,用于在网络中识别路由器。

2:用户名和密码:用于登录和管理路由器的凭证信息。

3: IP 地址:网络协议中用于唯一标识设备的数字地址。

4:子网掩码:用于标识 IP 地址中网络部分和主机部分的分界线。

5:默认网关:用于转发网络流量的下一跳路由器。

6:以太网接口:用于连接局域网设备的物理接口。

7:串行接口:用于连接广域网设备的物理接口。

8:子接口:在一个物理接口上创建多个逻辑接口,用于实现VLAN 分隔等功能。

9:虚拟局域网 (VLAN):用于将局域网划分成多个逻辑网络的技术。

10:静态路由:手动配置的路由表项,用于指定数据包传输的路径。

11:动态路由:根据路由协议动态学习和更新的路由表项,用于自动路由选择。

12: RIP:路由信息协议,一种距离向量路由协议。

路由器配置命令大全

路由器配置命令大全

路由器配置命令大全路由器配置命令大全1.连接路由器1.1 使用串行控制台线连接路由器1.2 使用以太网接口连接路由器1.3 使用无线网络连接路由器2.基本配置2.1 配置主机名router(config)hostname [hostname]2.2 配置域名解析router(config)ip domn-name [domn-name] 2.3 配置密码router(config)enable secret [password] router(config)line console 0router(config-line)password [password] router(config-line)loginrouter(config-line)exitrouter(config)line vty 0 15router(config-line)password [password]router(config-line)loginrouter(config-line)exit2.4 配置管理IP地质router(config)interface [interface]router(config-if)ip address [ip-address] [subnet-mask]router(config-if)no shutdown3.网络协议配置3.1 配置静态路由router(config)ip route [destination-network] [subnet-mask] [next-hop]3.2 配置动态路由router(config)router [routing-protocol]router(config-router)network [network-address] [subnet-mask]3.3 配置带宽管理router(config)interface [interface]router(config-if)bandwidth [bandwidth-in-kbps]3.4 配置ACL(访问控制列表)router(config)access-list [access-list-number] [permit/deny] [source-network] [source-wildcard]4.NAT(网络地质转换)配置4.1 配置静态NATrouter(config)ip nat inside source static [inside-local-address] [outside-global-address]4.2 配置动态NATrouter(config)ip nat pool [pool-name] [start-ip-address] [end-ip-address] netmask [subnet-mask]router(config)ip nat inside source list [access-list] pool [pool-name]4.3 配置PAT(端口地质转换)router(config)interface [interface]router(config-if)ip nat insiderouter(config)interface [interface]router(config-if)ip nat outside5.VLAN(虚拟局域网)配置5.1 配置VLANrouter(config)vlan [vlan-id]router(config-vlan)name [vlan-name]5.2 配置接口VLANrouter(config)interface [interface]router(config-if)switchport mode accessrouter(config-if)switchport access vlan [vlan-id]5.3 配置Trunk接口router(config)interface [interface]router(config-if)switchport mode trunkrouter(config-if)switchport trunk allowed vlan [vlan-list]6.特定协议配置6.1 配置DHCP(动态主机配置协议)router(config)ip dhcp pool [pool-name]router(dhcp-config)network [network-address] [subnet-mask]router(dhcp-config)default-router [default-gateway]router(dhcp-config)dns-server [dns-server-ip]6.2 配置NTP(网络时间协议)router(config)ntp server [ntp-server-ip]router(config)ntp update-calendar6.3 配置SNMP(简单网络管理协议)router(config)snmp-server community [community-string] [ro/rw]router(config)snmp-server host [host-ip] [community-string]7.安全配置7.1 配置SSH(安全外壳协议)router(config)hostname [hostname]router(config)ip domn-name [domn-name]router(config)crypto key generate rsarouter(config)ip ssh version 2router(config)line vty 0 15router(config-line)transport input sshrouter(config-line)login localrouter(config-line)exit7.2 配置防火墙router(config)access-list [access-list-number] [permit/deny] [source-network] [source-wildcard] router(config)interface [interface]router(config-if)ip access-group [access-list-number] [in/out]附件:无法律名词及注释:- IP地质:Internet Protocol Address,互联网协议地质,用于标识网络上主机的唯一数字标识。

路由器的路由配置命令汇总(win和linux系统)

路由器的路由配置命令汇总(win和linux系统)

路由器的路由配置命令汇总(win和linux系统)2009-07-16 17:43:15分类:系统运维⼯作时总是要在这三个个体中配来配去,所以为了⽅便,汇总了。

win下:使⽤ Route 命令⾏⼯具查看并编辑计算机的 IP 路由表。

Route 命令和语法如下所⽰:route [-f] [-p] [Command][Destination] [mask Netmask] [Gateway] [metric Metric]] [if Interface]]-f 清除所有⽹关⼊⼝的路由表。

如果该参数与某个命令组合使⽤,路由表将在运⾏命令前清除。

-p 与 add 命令⼀起使⽤时使路由具有永久性。

该参数与 add 命令⼀起使⽤时,将使路由在系统引导程序之间持久存在。

默认情况下,系统重新启动时不保留路由。

与 print 命令⼀起使⽤时,显⽰已注册的持久路由列表。

忽略其他所有总是影响相应持久路由的命令。

Command 指定您想运⾏的命令 (Add/Change/Delete/Print)。

路由类型:有三种路由1.主机路由从⼀台主机映射⼀条到本地⽹络上的的其他主机上command format:route add -host destination_ip local_ip -interface interfaceeg:我们想为本地主机接⼝hme0(204.12.17.1)和另⼀台在相邻才C类⽹络上的主机(204.12.16.100)之间增加⼀条路由#route add -host 204.12.16.100 204.12.17.1 -interface hme02.⽹络路由允许数据包从本地主机传输到在本地⽹络的其他主机上增加⼀个到另⼀个⽹络的的直接路由command format:route add -net destination_network_ip local_ip -netmask maskeg:如果我们要想为C类⽹掩码在本地主机(204.12.17.1)和我们上⾯指出的⽹络之间增加⼀条路由(204.12.16.0⽹络)我们可以使⽤如下的命令:#route add -net 204.12.16.0 204.12.17.1 -netmask 255.255.255.03.缺省路由将寻找⼀条路由的任务传送到⼀台路由器。

路由器的配置命令总结

路由器的配置命令总结

路由器的配置命令总结配置路由器的命令可以分为以下几类:1. 基础配置命令:- configure terminal:进入全局配置模式- hostname:设置路由器的主机名- enable password:设置特权模式密码- line console 0:进入控制台线路配置模式- line vty 0 4:进入虚拟终端线路配置模式2. 接口配置命令:- interface interface_name:进入接口配置模式- ip address:配置接口IP地址- no shutdown:激活接口- description:为接口添加描述信息3. 路由配置命令:- ip route destination_network next_hop:配置静态路由- router rip:进入RIP路由器配置模式- network:指定RIP协议工作的网络地址4. 网络地址转换(NAT)配置命令:- ip nat inside source static inside_local_ip outside_global_ip:配置静态NAT- ip nat pool pool_name start_ip end_ip netmask:配置动态NAT 池5. 访问控制列表(ACL)配置命令:- access-list acl_number {deny | permit} source destination:创建ACL规则- interface interface_name:进入接口配置模式- ip access-group acl_number {in | out}:应用ACL到接口6. VLAN配置命令:- vlan vlan_id:创建VLAN- switchport mode {access | trunk}:配置接口模式7. 安全配置命令:- enable secret:设置特权模式加密密码- username username password password:创建本地用户8. 特定协议配置命令:- router ospf process_ID:进入OSPF路由器配置模式- network network_address wildcard_mask area area_number:配置OSPF网络- router bgp autonomous_system_number:进入BGP路由器配置模式- neighbor ip_address remote-as autonomous_system_number:配置BGP邻居以上是一些常见的路由器配置命令,不同型号和品牌的路由器可能会有一些差异,具体命令请参考相应的操作手册或文档。

路由器配置命令(最全)

路由器配置命令(最全)

路由器配置命令(最全)路由器的配置命令Router> (⽤户模式)Router>enable (进⼊特权模式)Router# (特权模式)Router#configure terminal (进⼊全局配置模式)Router(config)# (全局配置模式)Router(config)#hostname XXX (设置路由器主机名)Router(config)#enable password 123 (设置特权⾮密⼝令)Router(config)#enable secret 123 (设置特权加密⼝令)Router(config)#interface f0/6 (进⼊端⼝配置模式)Router(config-if)# (端⼝配置模式)Router(config)#line consode 0 (进⼊控制台端⼝)Router(config)#line vty 0 4 (进⼊虚拟终端配置模式)Router(config- line)# (虚拟终端配置模式)Router(config)#router rip (进⼊rip路由协议配置模式)Router(config-router) ( rip路由协议配置模式)Router(config-router)network 159.105.0.0 (设置参与RIP协议的⽹络地址,不⽀持可变长掩码,只有IP⽹络号)Router(config)#router ospf 63 (进⼊ospf路由协议配置模式)Router(config-router) # ( ospf路由协议配置模式)Router#write memory (保存配置到路由器的NVRAM中)Router#write network tftp (保存配置到TFTP服务器中)Router#write erase (删除路由配置)设置模式(setup) 刚出⼚第⼀次建⽴配置⽂件RXBOOT模式密码丢失,进⼊可以恢复密码exit逐级退出 end 或ctrl+z 直接退⾄特权模式基本命令:telnet ping trace showtelnet 可以由⼀台路由器登录到另⼀台路由器,最多⽀持5个连接。

路由器命令大全

路由器命令大全

R(config)# ip route destination_network_# [subnet_mask]
IP_address_of_next_hop_neighbor|interface_to_exit [administrative_distance] [permanent permanent] permanent
基 本 配 置
R# [telnet|connect] name_of_the_destination|destination_IP_address 打开telnet会话 R# resume connection_# 恢复一个特定的会话
R# disconnect connection_# R# clear line line_# R# no debug all (或undebug all ) undebug R(config)# service timestamps debug datetime msec R# terminal monitor R(config-line)# logging synchronous R# show running-config R# show startup-config R# copy running-config|startup-config tftp R# copy tftp startup-config|running-config R# copy startup-config running-config R# copy running-config startup-config R# erase startup-config R# copy flash tftp R# show flash R# setup R(config)# boot system flash name_of_IOS_file_in_flash R(config)# boot system tftp IOS_image_name IP_address_of_server R(config)# boot system rom R(config)# config-register 0x hexadecimal_value rommon 5> confreg 0x2142 R> o/r 0x2142 R(config)# line console 0 R(config-line)# password console_password 密 R(config)# line vty 0 4

华为路由器配置命令表

华为路由器配置命令表

华为路由器配置命令表华为路由器配置命令表1.系统配置1.1 设备初始化●system-view:进入系统视图●undo saved-configuration:清除设备当前配置●reboot:重启设备1.2 系统时间配置●clock timezone +8:设置时区为东八区●clock datetime 2022-01-01 00:00:00:设置系统时间为指定日期和时间2.接口配置2.1 查看接口信息●display interface brief:显示接口状态和基本信息●display interface GigabitEthernet 0/0/1:显示指定接口详细信息2.2 配置接口●interface GigabitEthernet 0/0/1:进入指定接口视图●ip address 192.16① 24:配置接口IP地质和子网掩码3.路由配置3.1 静态路由●ip route-static 192.168.2.0 255.255.255.0 10.0.0.2:配置静态路由●display ip routing-table:显示IP路由表3.2 动态路由●ospf 1 router-id ①.1:配置OSPF路由进程和路由器ID●quit:退出OSPF视图●interface GigabitEthernet 0/0/1:进入接口视图●ospf enable:启用OSPF●quit:退出接口视图●ospf network-type broadcast:配置接口OSPF网络类型为广播●quit:退出接口视图●display ospf peer:显示OSPF邻居信息4.安全配置4.1 访问控制列表(ACL)●acl number 2001:创建ACL 2001●rule permit source 192.168.1.0 0.0.0.255:添加允许源地质为192.168.1.0/24的规则●quit:退出ACL配置●interface GigabitEthernet 0/0/1:进入接口视图●traffic-filter acl 2001 outbound:应用ACL 2001到接口的出方向●quit:退出接口视图4.2 防火墙配置●firewall zone zone-name untrust:创建一个名为untrust的安全区域●firewall interzone trust untrust:创建trust和untrust之间的安全区域间隔●firewall packet-filter 100:创建一个数据包过滤器●rule 1 permit source 192.168.1.0 0.0.0.255:添加允许源地质为192.168.1.0/24的规则●quit:退出数据包过滤器配置●quit:退出安全区域间隔配置●interface GigabitEthernet 0/0/1:进入接口视图●firewall zone trust:将接口划分到trust安全区域●firewall packet-filter 100 outbound:将数据包过滤器应用到接口的出方向●quit:退出接口视图5.网络服务配置5.1 DHCP服务配置●ip pool huawei:创建一个IP地质池名为huawei●network 192.168.1.0 mask 255.255.255.0:设置IP地质池范围●dns-list 8.8.8.8:设置DNS服务器地质●quit:退出IP地质池配置●interface GigabitEthernet 0/0/1:进入接口视图●dhcp server ip-pool huawei:启用DHCP服务器,并指定IP地质池●quit:退出接口视图6.系统管理6.1 用户管理●aaa:进入AAA视图●local-user admin1234 password irreversible-cipher Hello123:创建本地用户admin1234并设置密码●local-user admin1234 privilege level 3:为用户admin1234设置特权级别●local-user admin1234 service-type telnet ssh http:设置用户admin1234的登录方式●quit:退出AAA视图6.2 SNMP配置●snmp-agent sys-info version v2c:设置SNMP版本为V2c●snmp-agent community read public:设置SNMP共同体字符串并设置读权限●snmp-agent target-host trap address udp-domn192.16①00 params securityname Huawei-Trap version v2c:配置SNMP trap地质和参数●snmp-agent trap enable:启用SNMP trap7.保存配置●save:保存当前配置●quit:退出设备配置模式本文档涉及附件:附件1:华为路由器配置示例图本文所涉及的法律名词及注释:1.IP地质:Internet Protocol Address(Internet协议地质),指在Internet中用于唯一标识设备的数字地质。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

启动接口,分配IP地址router>router> enablerouter#router# configure terminalrouter(config)#router(config)# interface Type Portrouter(config-if)# no shutdownrouter(config-if)# ip address IP-Address Subnet-Mask router(config-if)# ^z[编辑]配置RIP路由协议:30秒更新一次router(config)# router riprouter(config-if)# network Network-Number <——通告标准A,B,C类网——> router(config-if)# ^z[编辑]配置IGRP路由协议:90秒更新一次router(config)# router igrp AS-Number <—— AS-Number范围1~65535——>router(config-if)# network Network-Number <——通告标准A,B,C类网——> router(config-if)# ^z[编辑]配置Novell IPX路由协议:Novell RIP 60秒更新一次router(config)# ipx routing [node address]router(config)# ipx maximum-paths Paths <——设置负载平衡,范围1~512——>router(config)# interface Type Portrouter(config-if)# ipx network Network-Number [encapsulation encapsulation-type] [secondary] <——通告标准A,B,C类网——>router(config-if)# ^z[编辑]配置DDR:router(config)# dialer-list Group-Number protocol Protocol-Type permit [list ACL-Number]router(config)# interface bri 0router(config-if)# dialer-group Group-Numberrouter(config-if)# dialer map Protocol-Type Next-Hop-Address name Hostname Telphone-Numberrouter(config-if)# ^z[编辑]配置ISDN:router(config)# isdnth-typeth-Type <——配置ISDN交换机类型,中国使用basic-net3——>router(config-if)# ^z[编辑]配置Frame Relay:router(config-if)# encapsulation frame-relay [cisco | ietf ]router(config-if)# frame-relay lmi-type [ansi | cisco | q933a ]router(config-if)# bandwidth kilobitsrouter(config-if)# frame-relay invers-arp [ Protocol ] [dlci ]<——配置静态Invers ARP表:router(config)# frame-relay Protocol Protocol-Address DLCI [ Broadcast ] [ ietf | cisco ] [ payload-compress | packet-by-packet ]——><——设置Keepalive间隔:router(config-if)# keepalive Number——><——为本地接口指定DLCI:router(config-if)# frame-lelay local-dlci Number——><——子接口配置:router(config-if)# interface Type Port.Subininterface-Number [ multipoint | point-to-point ]router(config-subif)# ip unnumbered Interfacerouter(config-subif)# frame-lelay local-dlci Number——>router(config-if)# ^z[编辑]配置标准ACL:router(config)# access-list Access-List-Number [ permit | deny ] source [ source-mask ] <—— Access-List-Number 范围:1~99标准ACL;100~199扩展ACL;800~899标准IPX ACL;900~999扩展IPX ACL;1000~1099 IPX SAP ACL;600~699Apple Talk ACL——>router(config)# interface Type Portrouter(config-if)# ip access-group Access-List-Number [ in | out ]router(config-if)# ^z[编辑]配置扩展ACL:router(config)# access-list Access-List-Number [ permit | deny ] [ Protocol | Protocol-Number ] source source-wildcard [ Source-Port ] destination destination-wildcard [ Destination-Port ] [ established ]router(config)# interface Type Portrouter(config-if)# ip access-group Access-List-Number [ in | out ]router(config-if)# ^z[编辑]配置命名ACL:router(config)# ip access-list [ standard | extended ] ACL-Namerouter(config [ std- | ext- ] nacl)# [ permit | deny ] [ IP-Access-List-Test-Conditions ]router(config [ std- | ext- ] nacl)# no [ permit | deny ] [ IP-Access-List-Test-Conditions ]router(config [ std- | ext- ] nacl)# ^zrouter(config)# interface Type Portrouter(config-if)# ip access-group [ACL-Name | 1~199 ] [ in | out ]router(config-if)# ^z[编辑]配置DCE时钟:router# show controllers Type Port <——确定DCE接口——>router(confin-if)# clock rate 64000 <——进入DCE接口设置时钟速率——>router(config-if)# ^z[编辑]配置PPP协议:router(config)# username Name password Set-Password-Here <——验证方建立数据库——>router(config)# interface Type Portrouter(config-if)# encapsulation ppp <——启动PPP协议——>router(config-if)# ppp outhentication [ chap | chap pap | pap chap | pap ] <——选择PPP 认证——>router(config-if)# ppp pap sent-username Name password Password <——发送验证信息——>router(config-if)# ^zPAP单向认证配置实例:验证方:router-server(config)# username Client password 12345 <——验证方建立数据库——>router-server(config)# interface serial 0router-server(config-if)# encapsulation ppprouter-server(config-if)# ppp authentication pap <——选择使用PAP实现PPP认证——>router-server(config-if)# ^z被验证方:router-client(config-if)# encapsulation ppprouter-client(config-if)# ppp pap sent-username Client password 12345 <——发送验证信息——>router-client(config-if)# ^zPAP双向认证配置实例:路由器A:routerA(config)# username B password 12345routerA(config)# interface serial 0routerA(config-if)# encapsulation ppprouterA(config-if)# ppp authentication paprouterA(config-if)# ppp pap sent-username A password 54321 routerA(config-if)# ^z路由器B:routerB(config)# username A password 54321routerB(config)# interface serial 1routerB(config-if)# encapsulation ppprouterB(config-if)# ppp authentication paprouterB(config-if)# ppp pap sent-username B password 12345 routerB(config-if)# ^zCHAP单向认证配置实例:验证方:router-server(config)# username router-client password 12345 router-server(config)# interface serial 0router-server(config-if)# encapsulation ppprouter-server(config-if)# ppp authentication chaprouter-server(config-if)# ^z被验证方:router-client(config-if)# encapsulation ppprouter-client(config-if)# ppp authentication chaprouter-client(config-if)# ppp chap hostname router-client router-client(config-if)# ppp chap password 12345router-client(config-if)# ^z CHAP双向认证配置实例:路由器A:routerA(config)# username routerB password 12345 routerA(config)# interface serial 0routerA(config-if)# encapsulation ppprouterA(config-if)# ppp authentication chap routerA(config-if)# ppp chap hostname routerA routerA(config-if)# ppp chap password 54321 routerA(config-if)# ^z路由器B:routerB(config)# username routerA password 54321 routerB(config)# interface serial 1routerB(config-if)# encapsulation ppprouterB(config-if)# ppp authentication chaprouterB(config-if)# ppp chap hostname routerBrouterB(config-if)# ppp chap password 12345routerB(config-if)# ^zTelnet使用:routerA# terminal monitor <——可以传回在远端主机执行Debug命令的结果——>routerA# telnet IP-Address [ Router-Name ] <——Telnet到指定的地址或名字的主机——>routerB# [ exit | logout ] <——退出Telnet——>routerB# ++<6>再按<——挂起Telnet——>routerA# show sessions <——显示当前所有Telnet的信息,包括Connect-Number ——>routerA# Connect-Number <——返回指定的Telnet连接——>routerA# disconnect IP-Address [ Router-Name ] <——断开指定地址或名字的主机的连接——>routerA# show user <——显示Telnet到本机的连接信息——>routerA# clear line [ 0 | 1 | 2 | 3 | 4 ] <——断开指定Telnet到本机的连接——>[编辑]禁止任何Telnet到本机:router(config)# line vty 0 4router(config-line)# access-class ACL-Numberrouter(config)# ^z[编辑]设置主机名:router(config)# hostname Set-Hostnamerouter(config)# ^zrouter(config)# ^z[编辑]设置用户模式密码:router(config)# line console 0router(config-line)# loginrouter(config-line)# password Set-Password router(config-line)# ^z[编辑]设置Telnet密码:router(config)# line vty 0 4router(config-line)# loginrouter(config-line)# password Set-Passwordrouter(config-line)# ^z[编辑]设置特权模式密码:router(config)# enable password Set-Password <——不加密的密码,明码——> router(config)# enable secret Set-Password <——经过加密的密码——>router(config)# ^z[编辑]给所有密码加密:router(config)# service password-ancryption Set-Password-Hererouter(config)# no service password-ancryption <——取消加密——>router(config)# ^z<pre>== 设置登录Banner:==<pre>router(config)# banner motd 分隔符Set-Banner-InFORMation-Here 分隔符<——前后分隔符一定要一致——>[编辑]设置接口的描述信息:router(config-if)# description Set-Port-InFORMation-Hererouter(config)# ^z[编辑]CDP的控制:router(config-if)# cdp enable <——在指定端口启用CDP,缺省——>router(config-if)# no cdp enable <——在指定端口关闭CDP——>router(config)# cdp run <——使所有端口启用CDP——>router(config)# no cdp run <——使所有端口关闭CDP——> [编辑]Ping的使用:router# ping IP-Addressrouter# ping <——扩展Ping命令——>Protocol [ip]:[ Protocol-Type ] <——选择协议类型——>Target IP address:IP-Address <——输入测试地址——>Repeat count [5]:<——选择发送的ICMP包数量——>Datagram size [100]:<——选择每个包的大小——>Timeout in seconds [2]:<——设置每个包的超时时间——> Extended commands [n]:y <——使用扩展Ping命令——>Sweep range of sizes [n]:[编辑]Tracke的使用:router# trace IP-Address [ Host-Name ][编辑]为Cisco 4000路由器指定媒体类型:router(config-if)# media-type 10baset <——使AUI(默认)失效,改为使用RJ-45——> router(config-if)# ^z[编辑]更改路由器启动顺序:router(config)# boot system flash IOS-FileNamerouter(config)# boot system tftp IOS-FileName TFTP-IP-Addressrouter(config)# boot system romrouter(config)# ^z[编辑]修改寄存器数值:router(config)# config-register value <——Cisco出厂默认value=0x2102,value范围:0x2100(进入ROM监视器),0x2101(使系统从ROM启动),0x2102~0x210F(使系统从NVRAM启动)。

相关文档
最新文档