访问手机版  

网络工程师培训选超级网工

招聘|合作 登陆|注册

CISCO路由器WAN配置实例,CISCO路由器WAN配置实例

    · CISCO路由器WAN配置实例,CISCO路由器WAN配置实例

    同步串行接口

    1,主要介绍E1,T1,T3类似
    Router#config t
    Router(config)#controller e1 1
    Router(config-controller)#channel-group 2 timeslots 1-10 speed 64
    Router(config-controller)#channel-group 3 timeslots 11-13 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 data
    Router(config-controller)#clock source 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英尺时用)
    Router(config-controller)#cablelengh long gain26/-15 (可选,如果电缆长度大于655英尺时用,值为DB增益)
    Router(config-controller)#line termination 75-ohm|120-ohm (可选,意思显而易见)
    Router(config-controller)#exit
    Router(config)#interface s 1:2 (其中,1与前面controller e1 1相对,2与channel-group值 相对)
    Router(config-interface)#physical-layer asynchronous(对a/s端口用)
    Router(config-interface)#encapsulation ppp/hdlc (以全CISCO设备,HDCL是默认,但建议用PPP)
    Router(config-interface)#ppp authen chap
    Router(config-interface)#ppp chap hostname wang
    Router(config-interface)#ppp chap password wang
    Router(config-interface)#compress stac/predictor(hdlc只有stc)
    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-clock internal 6
    Router(config-interface)#scrmable (防扰码知警)
    Router(config-interface)#ip add 10.1.1.1 255.255.255.0
    Router(config-interface)#no shut
    interface s1:3略

    如果是集成的T1服务模块上命令有所其别(高端模块)
    sRouter(config-interface)#ervice-module t1 clock source internal/line (默认是line)
    Router(config-interface)#service-module t1 framing sf-esf
    等等,基本上就是加上service-module t1而以

    2,POS,主要介绍OC-3,STM-1 155M接口

    Router(config)#interface pos 3/1
    Router(config)#pos framing-sdh
    Router(config)#clock source
    Router(config)#pos scramble-atm(完善pyaload scrambling的转换密度)
    Router(config)#loop internale (启动环测)
    Router(config)#loop line (远端坏测)
    Router(config)#no shut
    Router(config)#ip add 10.1.1.1 255.255.255.0
    Router(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/62
    Router(config)#mtu 3000 

    3,FR,帧中继的区里够多了,简单写一点
    Router(config)#interface s0/1
    Router(config-interfcae)#encapsulation frame-relay cisco/ieft
    Router(config-interfcae)#frame-relay lmi-type ansi/cisco/q933a
    Router(config-interfcae)#keepalive 15 (默认是10秒)
    Router(config-interfcae)#no shutdown
    子接口
    Router(config-interfcae)#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 100
    Router(config-interfcae)#ip address 192.168.1.11 255.255.255.0
    FR中另一个重要配置就是整形和映射类(QOS),这里不例

    4,拔号配置(内置MICA)

    Router(config)#modem china mica
    Router(config-pool)#modem-pool wang  (MODEM池命名)
    Router(config-pool)#pool-range (32-40) (MICA的line)
    Router(config-pool)#alled-number 3333312 mxa-connection 3 (通过拔入号码找MODEM POOL)
    Router(config-pool)#exit
    line 32 40
    Router(config-line)#transport input/all/output
    Router(config-line)#autoselect ppp/slip
    Router(config-line)#modem inout/dialin
    Router(config-line)#modem prefrered none
    Router(config-line)#speed 115200
    Router(config-line)# flowcontrol hardware
    Router(config-line)#stopbits 1
    Router(config)#modem autoconf discovry
    Router(config)#int xxx(老帖太多,略)
    以下是常用的MODEM诊断,维护命令
    modem bad
    modem shutdown (前为占线,后为禁用,可选)
    modem recovery threshhold 10
    modem rrcovery-time 3 (此处为分)
    modem revovery action disable/download/none
    modem recovery maitenance action
    exit