学习网考试学习资料

Gzu521.com

Cisco路由器配置语句全攻略(1)

路由   点击:次   发布时间:2008-1-4   【字体: 】   来源:IT动力源
Gzu521.com我的学习网

路由器是工作在osi参考模型第三层——网络层的数据包转发设备。路由器通过转发数据包来实现网络互连。虽然路由器可以支持多种协议(如tcp/ip、 ipx/spx、appletalk等协议),但是在我国绝大多数路由器运行tcp/ip协议。路由器通常连接两个或多个由ip子网或点到点协议标识的逻辑端口,至少拥有1个物理端口。路由器根据收到数据包中的网络层地址以及路由器内部维护的路由表决定输出端口以及下一跳地址,并且重写链路层数据包头实现转发数据包。路由器通过动态维护路由表来反映当前的网络拓扑,并通过与网络上其他路由器交换路由和链路信息来维护路由表。路由器设备厂商最有名的是CISCO公司,以下是cisco路由器配置的常用命令汇总,希望对正在学习和应用思科路由器的你有帮助。

启动接口,分配ip地址: w o@= 9@ `5VP'Ff [ 本 资 料 来 源 于 贵 州 学 习 网 网络世界路由 http://Www.gzU521.com ] w o@= 9@ `5VP'Ff

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

配置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


配置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 ] [ protocol   protocol-number ] source source-wildcard [ source-port ] destination destination-wildcard [ destination-port ] [ established ]
router(config)# interface type port
router(config-if)# ip access-group access-list-number [ in   out ]
router(config-if)# ^z
n\By-@Q=7Idzmhv}[ 此文转贴于我的学习网网络世界路由 http://www.Gzu521.com]n\By-@Q=7Idzmhv}

配置命名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)# username name password set-password-here <--验证方建立数据库-->
router(config)# interface type port
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

下 一 页
3页: 第 [1] [2] [3]

责任编辑:gzu521

网络世界分类
局域网技术
路由
交换
网络方案
Web服务器
Mail服务器
Ftp服务器
流媒体服务器
网络安全
防火墙
黑客攻防
互联网应用
QQ专栏
分类推荐信息
更多...
大类最新文章
更多...