时间: 2021-07-31 作者:daque
启用接口,调配ip地方:
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
摆设定名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
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