`
阅读更多

OSPFR(config)# router ospf process_ID配置OSPF
R(config-router)# network IP_address wildcard_mask area area_#指定接口进入OSPF区域
R(config-if)# ip ospf cost cost_value给接口指定成本(取值范围是1-65535)
R(config-router)# neighbor IP_address_of_neighbor手动配置邻居
R(config-router)# neighbor IP_address_of_neighbor priority value指定邻居的优先级(取值范围是0-255,255为DR,0为不可能成为DR)
R(config-if)# ip ospf network non-broadcast手工配置非广播网络类型
R(config-router)# area area_id stub允许创建存根区域
R(config-router)# area area_id stub no-summary允许创建完全存根区域
R(config-router)# area area_id nssa允许创建次存根区域
R(config-router)# area area_id virtual-link router_id连接不连续区域为骨干区域0
R(config-router)# area area_id range network_address network_mask在区域边界路由器上汇总在给定区域中的路由器使用的IP地址空间到其他的区域
R(config-router)# summary-address network_address network_mask在自治系统边界路由器上汇总外部路由
R# show ip ospf概述所有OSPF相关的信息
R# show ip ospf process-id与上相同,而不仅仅是指定的进程
R# show ip ospf border-routers显示在此自治系统中所有ABR和ASBR的路由器ID
R# show ip ospf database显示链路状态数据库
R# show ip ospf interface显示接口的OSPF参数和其他的指定到此接口上的OSPF信息
R# show ip ospf neighbor [detail]显示每个OSPF邻居和邻接状态
R# debug ip ospf adj报告路由器建立到其他路由器的邻接关系进程
R# debug ip ospf events报告路由器上的OSPF事件
R# debug ip ospf packet报告OSPF LSA分组的内容
ACLR(config)# access-list 1-99|1300-1999 permit|deny source_IP_address [wildcard_mask] [log]创建标准编号IP ACL
R(config-if)# ip access-group ACL_# in|out在指定接口上启动ACL
R(config-line)# access-class standard_ACL_# in|out在指定若干线路上启动ACL以限制对路由器的Telnet访问
R(config)# access-list 100-199|2000-2699 permit|deny IP_protocol source_address source_wildcard_mask [protocol_information] destination_address destination_wildcard_mask [protocol_information] [log]创建扩展编号IP ACL
R(config)# ip access-list standard ACL_name创建标准命名ACL(从IOS11.2开始支持)
R(config-std-acl)# permit|deny source_IP_address [wildcard_mask]输入标准ACL命令
R(config)# ip access-list extended ACL_name创建扩展命名ACL(从IOS11.2开始支持)
R(config-ext-acl)# permit|deny IP_protocol source_IP_address wildcard_mask [protocol_information] destination_IP_address wildcard_mask [protocol_information] [log]输入扩展ACL命令
R(config-if)# ip access_group ACL_name in|out启动命名ACL
R# show ip interfaces验证访问列表
R# show access-lists [ACL_#_or_name]显示ACL中的语句
R# show ip access-list [ACL_#_or_name]显示IP ACL中的语句
R# clear access-list counters [ACL_#_or_name]对指定ACL中的匹配计数器清零
NAT PAT 配置负载分发R(config)# ip nat inside source static inside_local_source_IP_address inside_global_source_IP_address定义NAT静态转换
R(config)# ip nat outside source static outside_global_destination_IP_address outside_local_destination_IP_address定义NAT静态转换
R(config-if)# ip nat inside|outside指定路由器上哪些接口在内部,哪些在外部
R(config)# ip nat outside source list standard_IP_ACL_# pool NAT_pool_name为重叠地址转换配置NAT
R(config)# ip nat inside source list standard_IP_ACL_# pool NAT_pool_name定义动态NAT,指定转换哪些内部设备的源地址
R(config)# ip nat pool NAT_pool_name beginning_inside_global_IP_address ending_inside_global_IP_address netmask subnet_mask_of_addresses|prefix-length length创建源内部全局IP地址池
R(config)# ip nat inside source list standard_IP_ACL_# pool NAT_pool_name overload定义PAT,指定哪台内部设备会转换其源地址
R(config)# ip nat pool pool_name beginning_inside_local_IP_address ending_inside_local_IP_address prefix-length subnet_mask_bits type rotary指定提供服务的设备上配置的内部IP地址
R(config)# ip nat inside destination list standard_ACL_# pool pool_name指定外部设备用来访问内部资源的全局IP地址
R# show ip nat translations [verbose]查看路由器上的(详细)地址转换信息
R# show ip nat statistics查看路由器上的地址转换的统计信息
R# clear ip nat translation *清除所有NAT表项
R# clear ip nat translation inside|outside global_IP_address|local_IP_address清除转换表中的指定动态条目
R# clear ip nat translation protocol inside global_IP_address global_port local_IP_address local_port清除转换表中的指定动态条目
R# debug ip nat提供IOS对每个已转换分组所做的转换
DHCPR(config)# [no] service dhcp启用/禁用DHCP(默认启用)
R(config)# ip dhcp pool pool_name创建地址池
R(config-dhcp)# network network_number [subnet_mask|/prefix_length]指定分配给客户的IP地址范围
R(config-dhcp)# domain-name domain_name向客户分配域名
R(config-dhcp)# dns-server IP_address […]指定最多8台DNS服务器分配给客户
R(config-dhcp)# netbios-name-server IP_address […]指定最多8台WINS服务器分配给客户
R(config-dhcp)# netbios-node-type node_type向微软客户分配节点类型
R(config-dhcp)# default-router IP_address […]指定最多8条默认路由给客户用于该地址范围
R(config-dhcp)# lease days [hours] [minutes] |infinite指定租约的期限(默认一天)
R(config)# ip dhcp ping timeout milliseconds指定测试服务器地址池中的可用地址是否正在使用时服务器应等待时间
R(config)# ip dhcp excluded-address beginning_IP_address [ending_IP_address]排除一些地址
R(config-if)# ip address dhcp在路由器上建立DHCP客户
R# show ip dhcp binding [client_address]查看分配给客户的地址
R# clear ip dhcp binding client_address|*清除分配给客户的指定/所有地址
R# debug ip dhcp server events|packet|linkage查看DHCP服务器相关信息
HDLCR(config-if)# encapsulation hdlc封装同步串行接口为HDLC(默认)
PPPR(config-if)# encapsulation ppp在WAN接口上使用PPP
R(config-if)# ppp pap sent-username your_hostname password password指定PAP用于认证并且提供在服务端用于执行认证的用户名和口令(此为客户端配置)
R(config)# hostname your_router's_hostname为路由器指定惟一主机名(以下三个为服务端配置)
R(config)# username remote_hostname password matching_password指定认证路由器时所使用的远端主机名称和口令
R(config-if)# ppp authentication pap指定PAP认证
R(config-if)# ppp authentication chap|pap|chap pap|pap chap批定PPP认证类型
R# debug ppp negotiation查看LCP协商时的信息
R# debug ppp authentication查看PPP认证情况
FRR(config-if)# encapsulation frame-relay [cisco|ietf]指定封装类型为帧中继(默认cisco)
R(config-if)# frame-relay lmi-type ansi|cisco|q933a给该串行接口指定LMI类型
R# show frame-relay lmi查看详细的LMI统计信息
R# debug frame-relay lmi报告路由器正在发送与接收的实际LMI信息
R(config-if)# frame-relay map protocol_name destination_address local_dlci_# [broadcast] [ietf|cisco]将远端第3层地址手动映射到本地DLCI号
R(config-if)# [no] frame-relay inverse-arp [protocol_name] [DLCI_#]启用/禁用逆向ARP(默认启用)
R(config-if) clear frame-relay-inarp清除逆向ARP解析表
R# show frame-relay traffic查看逆向ARP统计
R# show frame-relay pvc [DLCI_#]查看终止于路由器的所有(指定)帧中继PVC及其统计信息
R# show frame-relay map查看将第3层地址映射成本地DLCI号的虚电路解析表
R(config)# interface type [slot_#/] port_#. subinterface_# [point-to-point|multipoint]创建子接口
R(config-subif)# frame-relay interface-dlci local_DLCI_#配置子接口的帧中继
ISDNR(config[-if])# isdn switch-type ISDN_switch_type在全局或接口配置模式下配置交换机类型
R(config-if)# isdn spid1 spid_#__for_1st_BRI local_dial_#为第一个B信道配置SPID
R(config-if)# isdn spid2 spid_#__for_2st_BRI local_dial_#为第二个B信道配置SPID
R(config)# controller t1|e1 [slot_#/] port_#以下6个命令为控制卡配置
R(config-controller)# framing esf|sf|crc4|nocrc4在T1或E1上使用物理成帧
R(config-controller)# linecode ami|b8zs|hdb3线路编码,定义1与0如何在线路上物理表示
R(config-controller)# clock source line primary|secondary|internal定义路由器如何获得其时钟以用于同步数字连接
R(config-controller)# pri-group timeslots [1-24|1-31]指定路由器哪个或哪些时隙用于ISDN连接
R(config-controller)# [no] shutdown启用/禁用控制器
R# show controllers t1|e1 [slot_#/port_#]验证控制器卡配置
R(config)# interface serial [slot_#/] port_#:23设置逻辑串口(T1使用)
R(config)# interface serial [slot_#/] port_#:15设置逻辑串口(E1使用)
R# show interface bri [slot_#/] port_#[:1|2|1 2]验证ISDN连接的状态(查看B信道)
R# show isdn status查看ISDN详细的物理层和数据链路层信息
R# debug isdn q921报告ISDN数据链路层详细信息
R(config)# ip route IP_network_# subnet_mask remote_router's_IP_address|router_interface [administrative_distance]配置静态路由。以下7个命令配置传统DDR
R(config)# dialer-list list_# protocol protocol_name permit|deny [access-list ACL_#]定义敏感流量
R(config-if)# dialer-group dialer_list_#激活拨号列表
R(config-if)# dialer map protocol_name address_of_destination_router [name remote_router_name] [speed 56|64] [broadcast] destination_phone_number表明利用传统DDR进行电话呼叫
R(config-if)# dialer idle-timeout #_of_seconds定义空闲超时周期
R(config-if)# dialer fast-idle #_of_seconds定义快速空闲计时器
R(config-if)# dialer load-threshold load either|inbound|outbound通过BRI的两条B信道执行负载均衡(分配带宽)
R# show dialer查看哪个DDR接口进行了电话呼叫及其状态
R# show isdn active查看激活的ISDN呼叫
R# show isdn history查看路由器发出的呼叫或以前接收的呼叫
R# debug dialer显示建立或拆除一个连接的DDR过程
R# debug isdn q931显示ISDN电话连接建立及挂断的详细信息
R(config)# interface dialer port_#创建逻辑拨号接口。以下全为配置拨号配置文件。以下8个为拨号接口配置
R(config-if)# encapsulation ppp指定封装类型
R(config-if)# ppp authentication pap|chap|chap pap|pap chap指定认证类型
R(config-if)# ip address IP_address subnet_mask指定接口IP地址
R(config-if)# dialer remote-name name指定远端路由器的名称
R(config-if)# dialer string phone_# [class map_name]指定映射类名称
R(config-if)# dialer pool pool_#指定拨号接口能使用哪组物理接口
R(config-if)# dialer-group dialer_list_#激活拨号列表
R(config-if)# dialer pool-member pool_# [priority priority_#] [min-link #_of_B_channels] [max-link #_of_B_channels]指定哪些拨号接能使用物理接口
R(config)# map-class dialer map_name进入映射子配置模式。以下4个为创建映射类
R(config-map)# dialer isdn speed 56指定ISDN中的B信道的速度(默认64kbps)
R(config-map)# dialer idle-timeout #_of_seconds定义空闲超时周期
R(config-map)# dialer fast-idle #_of_seconds定义快速空闲计时器
R# show dialer interface bri|{serial:23|15} [slot_#/]port_#显示与拨号接口关联的物理接口的进入和离开呼叫的DDR统计信息
IS-ISR(config)# router isis启动IS-IS
R(config-router)# net areaID.systemID.SEL配置NET
R(config-router)# is-type level_of_router配置路由器的层次
R(config-if)# ip router isis在接口上启动IS-IS
R(config-if)# isis priority value level-1|level-2手动配置第一层或第二层路由器的优先级
R(config-if)# clns router isis为无连接网络服务启动IS-IS
R# show ip route isis查看通过IS-IS学习到的路由
R# show isis database [detail level_of_router]查看IS-IS链路状态数据库中的所有(某层)LSP信息
R# show clns protocol显示IS-IS详细配置信息
R# show clns interface显示配置为IS-IS接口的相关信息
R# show clns is-neighbors查看路由器的邻居
R# show isis spf-log查看SPF计算情况
R# debug isis adj-packets查看路由器发送和接收Hello PDU的情况
R# debug isis update-packets提供路由器发送和接收的所有LSP详细内容及SNP信息
R# debug isis spf-events查看写入路由表的IS-IS路由
R# debug isis spf-triggers查看触发SPF计算的原因
R# debug isis spf-statistics查看执行SPF计算所用的时间
BGPR(config)# router bgp AS_#启动BGP
R(config-router)# neighbor IP_address_remote_device remote-as AS_#_remote_device指定远端路由器作为对等体
R(config-router)# no synchronization关闭BGP与IGP同步(默认启用)
R(config-router)# neighbor IP_address_remote_device update-source loopback #使用环回接口作为对等体
R(config-router)# neighbor IP_address_remote_device ebgp-multihop [ttl]配置eBGP多跳(允许BGP邻居可以不在直连网络上)
R(config-router)# neighbor IP_address_remote_device route-reflector-client配置邻居为路由反射器客户
R(config-router)# network network_address mask subnet_mask向对等体通告路由(手动向BGP注入路由)
R(config-router)# redistribute protocol process_ID将路由重新分配到BGP
R(config-router)# redistribute connected将直连接口地址重新分配到BGP
R(config-router)# bgp cluster-id cluster_ID分配簇ID
R(config-router)# bgp confederation identifier confederation_ID配置联邦ID
R(config-router)# bgp confederation peers AS_#配置联邦的对等自治系统成员
R(config-router)# neighbor IP_address_remote_device distribute-list access_list_# [in|out]过滤到或来自邻居的更新信息
R(config)# ip prefix-list list_name [seq seq_value] permit|deny network_address/length [ge ge_value] [le le_value]配置前缀列表
R(config-router)# neighbor IP_address_remote_device prefix-list list_name [in|out]应用从邻居输入的前缀列表
R(config)# route-map route_map_name permit|deny [sequence_number]创建路由映射序列
R(config-route-map)# match as-path AS_path_accesslist_#匹配BGP自治系统路径访问列表
R(config-route-map)# match community-list community_list_#匹配BGP团体
R(config-route-map)# match interface type [slot_#/] port_#发布任何下一跳是指定接口的路由
R(config-route-map)# match ip address access_list_#|prefix_list_name匹配任何目的网络地址被指定的标准访问列表、扩展访问列表或前缀列表允许的路由
R(config-route-map)# match ip next-hop access_list_#|prefix_list_name匹配任何下一跳地址被指定的标准访问列表、扩展访问列表或前缀列表允许的路由
R(config-route-map)# match ip route-source access_list_#|prefix_list_name匹配任何由被指定的标准访问列表、扩展访问列表或前缀列表允许的地址通告的路由
R(config-route-map)# match metric value匹配任何具有指定的度量值的路由
R(config-route-map)# match route-type type_of_route匹配任何具有指定类型的路由
R(config-route-map)# match tag value匹配任何具有指定标识的路由
R(config-route-map)# set as-path prepend AS_#向AS_PATH属性添加自治系统号
R(config-route-map)# set as-path tag设置作为AS_PATH属性的标记
R(config-route-map)# set automatic-tag自动计算标记值
R(config-route-map)# set community number|aa:nn|additive|local-as|no-advertise|no-export|none设置BGP COMMUNITIES属性
R(config-route-map)# set dampening half_life start_reusing start_suppressing duration_to_suppress设置BGP路由冷落参数
R(config-route-map)# set default interface type [slot_#/] port_#设置默认的输出接口
R(config-route-map)# set interface type [slot_#/] port_#设置输出接口
R(config-route-map)# set ip default next-hop IP_address设置路径的默认下一跳地址
R(config-route-map)# set ip next-hop IP_address设置下一跳地址
R(config-route-map)# set ip precedence [precedence]设置“IP Precedence”字段
R(config-route-map)# set ip tos type_of_service设置“IP服务类型”字段
R(config-route-map)# set level level设置导入路由的位置
R(config-route-map)# set local-preference value设置BGP LOCAL_PREF路径属性
R(config-route-map)# set metric value设置目标路由协议的度量值
R(config-route-map)# set metric-type type_of_route设置目标路由协议的度量类型
R(config-route-map)# set origin origin_code设置BGP源代码
R(config-route-map)# set tag value设置目标路由协议的标记值
R(config-route-map)# set weight value设置路由表的BGP权重
R(config-router)# neighbor IP_address_remote_device route-map route_map_name [in|out]应用从邻居输入的路由映射
R(config-router)# neighbor IP_address_remote_device send-community向该邻居发送COMMUNITY属性
R(config)# ip community-list community_list_# [permit|deny] community_list_#创建团体列表
R(config-router)# neighbor peer_group_name peer-group创建对等组
R(config-router)# neighbor peer_group_name option_to_use_in_update_policy给对等组分配选项
R(config-router)# neighbor IP_address_remote_device peer-group peer_group_name给对等组分配对等体
R(config-router)# no auto-summary取消BGP的自动路由汇总功能
R(config-router)# aggregate-address IP_address mask [summary-only]创建汇聚地址(禁止通告其他特定路由)
R(config-router)# aggregate-address IP_address mask as-set创建汇聚地址,在AS_PATH中添加AS_SET类型
R# clear ip bgp peer_address重设特定BGP对等会话
R# clear ip bgp AS_#重设指定自治系统的所有对等体的BGP会话
R# clear ip bgp *重设路由器上所有BGP会话
R# show ip bgp查看路由器从BGP学习到的所有路由
R# show ip bgp summary提供和路由器具有对等关系的所有路由器汇总
R# show ip bgp neighbors查看对等体连接详细信息
R# debug ip bgp查看在本地路由器与试图和其建立对等关系的路由器之间所发送和接收的OPEN信息
R# debug ip bgp updates提供路由器发送和接收所有UPDATE消息的信息
R# debug ip bgp peer_address upadtes提供关于BGP对等体之间发送的UPDATE消息
R# debug ip bgp dampening显示关于被冷落路由的信息
R# debug ip bgp events提供关于尝试成为BGP对等体的路由器的状态转换信息
R# debug ip bgp keepalives提供关于路由器发送和接收KEEPALIVE消息的信息
路由优化R(config-router)# distribute-list ACL_#|prefix prefix_list_name in|out [type [slot_#/] port_#]配置分配列表
R(config-if)# ip policy route-map map_tag识别一个接口上基于策略的路由选择使用的路由映射
R# show ip policy列出所有配置为基于策略的路由选择的接口及它们相关的路由映射
R# show route-map查看所有路由映射
R# debug ip policy提供在该路由器上执行的路由策略的信息
R(config-router)# default-information originate重新分配默认路由到OSPF和IS-IS
R(config-router)# default-information originate always引起一个默认路由到OSPF不管路由表中是否有一个默认路由
R(config-router)# redistribute protocol [process-ID] level-1|level-1-2|level-2 [metric metric_value] [metric-type type_value] [match internal|external 1|external 2] [tag tag_value] [route-map map_tag] [weight weight_value] [subnets]重新分配路由选择信息从一个路由选择域到另一个路由选择域
R(config-router)# summary-address network_address network_mask [level-1|level-1-2|level-2]为起源于和重新分配到IS-IS的路由创建一个汇总地址
异步连接R# line number进入线路配置模式
R(config-line)# login允许一个连接
R(config-line)# password password提供线路上使用的口令
R(config-line)# flowcontrol hardware|software选择硬件流控制或软件流控制
R(config-line)# speed number指定调制解调器和访问服务器或路由器之间使用的最大速度(单位:bps)
R(config-line)# transport input lat|mop|nasi|pad|rlogin|telnet|v120|all定义反向Telnet连接使用的协议
R(config-line)# stopbits 1|1.5|2定义每个字节的结束
R(config-line)# modem autoconfigure type modem_type指示路由器使用modemcap数据库中的命令按照指定的类型对连接到一个端口上的调制解调器进行自动配置
R# show modemcap显示modemcap数据库
R(config-line)# modem edit modem_profile_name向modemcap数据库增加条目
R(config-line)# modemcap edit new_profile_name template existing_profile_name创建名为new_profile_name的条目并从existing_profile_name中拷贝所有的配置
R(config-line)# modem autoconfigure discovery发现和自动配置连接到一个端口上的调制解调器
QoSR(config-if)# standby ip IP_address配置HSRP
R(config-if)# standby preempt配置占先操作
R(config-if)# standby track type_of_interface配置接口跟踪
R# show standby查看HSRP组的动态信息
R(config-if)# glbp group_number ip [IP_address [secondary]]配置GLBP
R(config-if)# glbp group_number priority priority_number配置优先级

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics