初学着可以看看
以下是引用片段:
router> router> enable router# router# configure terminal router(config)# router(config)# interface Type Port router(config-if)# no shutdown router(config-if)# ip address IP-Address Subnet-Mask router(config-if)# ^z<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> |
配置RIP路由协议:30秒更新一次
以下是引用片段:
router(config)# router rip router(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 Port router(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 0 router(config-if)# dialer-group Group-Number router(config-if)# dialer map Protocol-Type Next-Hop-Address name Hostname Telphone-Number router(config-if)# ^z |
配置ISDN:
以下是引用片段:
router(config)# isdn swith-type Swith-Type <-- 配置 ISDN 交换机类型,中国使用 basic-net3--> router(config-if)# ^z |
|
路由器是工作在OSI参考模型第三层——网络层的数据包转发设备。路由器通过转发数据包来实现网络互连。虽然路由器可以支持多种协议(如TCP/IP、 IPX/SPX、AppleTalk等协议),但是在我国绝大多数路由器运行TCP/IP协议……
配置Frame Relay:
以下是引用片段:
router(config-if)# encapsulation frame-relay [cisco ietf ] router(config-if)# frame-relay lmi-type [ansi cisco q933a ] router(config-if)# bandwidth kilobits router(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 Interface router(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 Port router(config-if)# ip access-group Access-List-Number [ in out ] router(config-if)# ^z |
配置扩展ACL:
以下是引用片段:
router(config)# access-list Access-List-Number [ permit deny ] [ 协议 -Number ] source source-wildcard [ Source-Port ] destination destination-wildcard [ Destination-Port ] [ established ] router(config)# interface 接口
router(config-if)# ip access-group Access-List-Number [ in
out ] router(config-if)# ^z |
路由器是工作在OSI参考模型第三层——网络层的数据包转发设备。路由器通过转发数据包来实现网络互连。虽然路由器可以支持多种协议(如TCP/IP、 IPX/SPX、AppleTalk等协议),但是在我国绝大多数路由器运行TCP/IP协议……
配置命名ACL:置反ACL
以下是引用片段: router(config)# ip access-list [ standard extended ] ACL-Name router(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)# ^z router(config)# interface Type Port router(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)# usernme Name password Set-Password-Here <-- 验证方建立数据库 --> router(config)# interface 接口 router(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)# ^z |
PAP单向认证配置实例:
验证方:
以下是引用片段:
router-server(config)# username Client password 12345 <-- 验证方建立数据库 --> router-server(config)# interface serial 0 router-server(config-if)# encapsulation ppp router-server(config-if)# ppp authentication pap <-- 选择使用 PAP 实现 PPP 认证 --> router-server(config-if)# ^z |
被验证方:
以下是引用片段:
router-client(config-if)# encapsulation ppp router-client(config-if)# ppp pap sent-username Client password 12345 <-- 发送验证信息 --> router-client(config-if)# ^z |
PAP双向认证配置实例:
路由器 A:
以下是引用片段:
routerA(config)# username B password 12345 routerA(config)# interface serial 0 routerA(config-if)# encapsulation ppp routerA(config-if)# ppp authentication pap routerA(config-if)# ppp pap sent-username A password 54321 routerA(config-if)# ^z |
路由器 B:
以下是引用片段:
routerB(config)# username A password 54321 routerB(config)# interface serial 1 routerB(config-if)# encapsulation ppp routerB(config-if)# ppp authentication pap routerB(config-if)# ppp pap sent-username B password 12345 routerB(config-if)# ^z |
CHAP单向认证配置实例:
验证方:
以下是引用片段:
router-server(config)# username router-client password 12345 router-server(config)# interface serial 0 router-server(config-if)# encapsulation ppp router-server(config-if)# ppp authentication chap router-server(config-if)# ^z |
被验证方:
以下是引用片段:
router-client(config-if)# encapsulation ppp router-client(config-if)# ppp authentication chap router-client(config-if)# ppp chap hostname router-client router-client(config-if)# ppp chap password 12345 router-client(config-if)# ^z |
CHAP双向认证配置实例:
路由器 A:
以下是引用片段:
routerA(config)# username routerB password 12345 routerA(config)# interface serial 0 routerA(config-if)# encapsulation ppp routerA(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 1 routerB(config-if)# encapsulation ppp routerB(config-if)# ppp authentication chap routerB(config-if)# ppp chap hostname routerB routerB(config-if)# ppp chap password 12345 routerB(config-if)# ^z |
Telnet使用:
以下是引用片段:
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 到本机的连接 --> |
转载于:https://blog.51cto.com/hj0822/123364