 |
|
 |
| 您现在的位置: 先创网 >> 网络应用 >> 组网技术 >> 文章正文 |
|
|
| 详解:Cisco路由器的基本配置 |
| 希赛网 |
| 2007-9-13 16:50:00文/佚名 |
|
|
|
|
|
随着IT业的飞速发展,Cisco路由器被广泛应用于各行各业,本文将从基础配置入手,简单介绍一下Cisco路由器的配置方法。 一、配置以太网端口 # conf t 从终端配置路由器(Cisco的各种命令均可以简写,只要不与其他命令重复即可,如configure terminal可以写成conf t)。 # int e0
指定E0口。 # ip addr ABCD XXXX
ABCD为以太网地址,XXXX为子网掩码。 # ip addr ABCD XXXX secondary
E0口可同时支持多个地址类型,只要各个地址类型不在同一个网段即可。 # no shutdown
激活E0口。 # exit 二、配置串口(SERIAL) 1. X.25的配置 # conf t # int S0 # ip addr ABCD XXXX # ip addr ABCD XXXX secondary
S0口同样支持多个地址类型。 # encap X25
封装X.25协议。 # x25 addr ABCD
ABCD为S0的X.25端口地址,由电信部门提供。 # x25 map ip ABCD XXXX br
映射X.25地址,ABCD为对方路由器(如S0)的IP地址,XXXX为对方路由器 (如S0)的X.25端口地址。 # x25 htc X
最高双向通道数X的取值范围为1~4095,要根据邮电局实际提供的数字配置。 # x25 nvc X
配置永久虚电路数。X不可超过邮电局实际提供的数值,否则将影响数据的正常传输。 # no shutdown # exit
2.帧中继的配置 # conf t # int s0 # ip addr ABCD XXXX # encap frante_relay # no nrzi_encoding NRZI=NO。 # frame_relay lmi_type q933a LMI使用Q933A标准。LMI(Local management Interface)有3种,分别是ANSI的T1.617、CCITT的Q933A和Cisco特有的标准。 # frame-relay intf-typ ABC ABC为帧中继设备类型,它们分别是DTE设备、DCE交换机或NNI(网络接点接口)支持设备。 # frame_relay interface_dlci 110 br 配置DLCI(数据链路连接标识符)。 # frame-relay map ip ABCD XXXX broadcast 建立帧中继映射。ABCD为对方IP地址,XXXX为本地DLCI号,broadcast允许广播向前转发或更新路由。 # no shutdown # exit
3.帧中继子接口的配置
# conf t # int s0.1 point-to-point
对应S0的子接口1,点对点方式。 # ip addr ABCD XXXX
ABCD为子口1的IP地址,XXXX为子网掩码。 # frame-relay interface-dlci 100 br
[1] [2] 下一页 |
|
|
|
|
|
|
 |
|
 |
|
|
|