CISCO路由器WAN配置攻略

发布者:上海IT外包来源:http://www.lanmon.net点击数:3296

同步串行接口

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
带DPT )C-12c我也没玩过,就不写了
POS的配置参数很多,也记不全了,但是用得参数要视具体情况

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

1998年,蓝色学苑www.bluestudy.net创立了,我们翻译了大量路由交换的资料和调试案例,启蒙了大批网络技术爱好者。我们的创始人也在1999年通过CCIE认证,成为国内为数不多的老牌CCIE之一。2002年,蓝色学苑骨干成员成立蓝盟www.lanmon.com 专注于网络维护、网管外包、电脑维护、服务器升级、网络改造、系统集成、网络咨询、服务管理、运维咨询、ITIL培训、ITSS咨询等一站式IT外包服务。我们拥有近200名工程师,正在为近500家客户提供“一站式” 的IT外包服务。网址:www.lanmon.net 官方微博:http://weibo.com/lanmon2012 咨询电话:4008200159
IT外包
>
400-635-8089
立即
咨询
电话咨询
服务热线
400-635-8089
微信咨询
微信咨询
微信咨询
公众号
公众号
公众号
返回顶部