1、写篇 WAN 配置略记.txt18 拥有诚实,就舍弃了虚伪;拥有诚实,就舍弃了无聊;拥有踏实,就舍弃了浮躁,不论是有意的丢弃,还是意外的失去,只要曾经真实拥有,在一些时候,大度舍弃也是一种境界。写篇 WAN 配置略记 同步串行接口1,主要介绍 E1,T1,T3 类似Router#config tRouter(config)#controller e1 1Router(config-controller)#channel-group 2 timeslots 1-10 speed 64Router(config-controller)#channel-group 3 timeslots 11-13
2、 speed 64 (SPEED 最值为:48kbit/s,56kbit/s,64kbit/s-E1 默认)Router(config-controller)#cas-group 2 timeslots 1-10 type e&mfgb Router(config-controller)#service data (CAS 假借比特信信令,用于 T1 传输组帖和时钟)Router(config-controller)#cas-group 3 timeslots 11-13 type e&mfgb service dataRouter(config-controller)#clock sourc
3、e line primary/secondary | internal(从网络或设备内部读取时钟,用于同步)Router(config-controller)#framing sf/esf |crc4/nocrc4 (sf/esf-Router(config-controller)#T1,crc4/nocrc4 -E1)Router(config-controller)#linecode ami/b8zs/hdb3 (ami-T1,hdb3_e1)Router(config-controller)#cablelength short 133/266 (可选,如果电缆长度小于 655英尺时用)R
4、outer(config-controller)#cablelengh long gain26/-15 (可选,如果电缆长度大于655 英尺时用,值为 DB 增益)Router(config-controller)#line termination 75-ohm|120-ohm (可选,意思显而易见)Router(config-controller)#exitRouter(config)#interface s 1:2 (其中,1 与前面 controller e1 1 相对,2 与 channel-group 值 相对)Router(config-interface)#physical-la
5、yer asynchronous(对 a/s 端口用)Router(config-interface)#encapsulation ppp/hdlc (以全 CISCO 设备,HDCL 是默认,但建议用 PPP)Router(config-interface)#ppp authen chapRouter(config-interface)#ppp chap hostname wangRouter(config-interface)#ppp chap password wangRouter(config-interface)#compress stac/predictor(hdlc 只有 stc
6、)Router(config-interface)#crc 12 (可选,默以好像是 16bits)Router(config-interface)#inver data (可选,非 B8ZS 的 T1 上用,如果 DSU/CSU 上已反转,ROUTER 上就不能用了)Router(config-interface)#pulse-time 5 (用于 DRT 脉冲,可选)Router(config-interface)#clock rate 56000(可选值很多,在 DCE 上用,视具体情况而定,一般高速率在短距离上使用)Router(config-interface)#transmit-c
7、lock internal 6Router(config-interface)#scrmable (防扰码知警)Router(config-interface)#ip add 10.1.1.1 255.255.255.0Router(config-interface)#no shutinterface s1:3 略如果是集成的 T1 服务模块上命令有所其别(高端模块)sRouter(config-interface)#ervice-module t1 clock source internal/line (默认是line)Router(config-interface)#service-mod
8、ule t1 framing sf-esf等等,基本上就是加上 service-module t1 而以2,POS,主要介绍 OC-3,STM-1 155M 接口Router(config)#interface pos 3/1Router(config)#pos framing-sdhRouter(config)#clock sourceRouter(config)#pos scramble-atm(完善 pyaload scrambling 的转换密度)Router(config)#loop internale (启动环测)Router(config)#loop line (远端坏测)Rou
9、ter(config)#no shutRouter(config)#ip add 10.1.1.1 255.255.255.0Router(config)#aps working 1 (工作方式,其中 1 和保护口的值关链)Router(config)#或Router(config)#aps prtect 1 192.168.1.1 255.255.255.0(注:aps 即是自动保护交换,顾名思义,可以把设置成工作方式和保护方式)Router(config)#crc 16/62Router(config)#mtu 3000 带 DPT )C-12c 俺也没玩过,就不写了POS 的配置参数很多
10、,也记不全了,但是用得参数要视具体情况3,FR,帖中继的区里够多了简单写一点Router(config)#interface s0/1Router(config-interfcae)#encapsulation frame-relay cisco/ieftRouter(config-interfcae)#frame-relay lmi-type ansi/cisco/q933aRouter(config-interfcae)#keepalive 15 (默认是 10 秒)Router(config-interfcae)#no shutdown子接口Router(config-interfcae
11、)#interface s0/1.1 point-to-point/multipoint (默认好像是multi)Router(config-interfcae)#frame-relay map ip 192.168.1.12 100 broadcast (把对端IP 映谢到本地 DLCI)Router(config-interfcae)#frame-relay interfcae-dhci 100Router(config-interfcae)#ip address 192.168.1.11 255.255.255.0FR 中另一个重要配置就是整形和映射类(QOS) ,这里不例4,拔号配置(
12、内置 MICA)Router(config)#modem china micaRouter(configpool)#modem-pool wang (MODEM 池命名)Router(configpool)#pool-range (32-40) (MICA 的 line)Router(configpool)#alled-number 3333312 mxa-connection 3 (通过拔入号码找MODEM POOL)Router(configpool)#exitline 32 40Router(config-line)#transport input/all/outputRouter(co
13、nfig-line)#autoselect ppp/slipRouter(config-line)#modem inout/dialinRouter(config-line)#modem prefrered noneRouter(config-line)#speed 115200Router(config-line)# flowcontrol hardwareRouter(config-line)#stopbits 1Router(config)#modem autoconf discovryRouter(config)#int xxx(老帖太多,略)以下是常用的 MODEM 诊断,维护命令modem badmodem shutdown (前为占线,后为禁用,可选)modem recovery threshhold 10modem rrcovery-time 3 (此处为分)modem revovery action disable/download/nonemodem recovery maitenance actionexit