命令汇总
(1)单区域OSPF
1 router ospf // 启动OSPF 进程
2 router-id // 配置路由器ID
3 network // 通告网络及网络所在区域
4 ip ospf network // 配置接口网络类型
5 ip ospf cost // 配置接口cost值
6 ip ospf hello-interval // 配置hello间隔
7 ip ospf dead-interval // 配置ospf死亡时间
8 ip ospf priority // 配置接口优先级
9 auto-cost reference-bandwidth // 配置参考宽带
10 area area-id authentication // 启动区域简单口令认证
11 ip ospf authentication-key cisco // 配置认证密码
12 area 0 authentication message-digest // 区域0启用MD5 认证
13 ip ospf message-digest-key 1 md5 xxx // 配置认证key ID及 密码
14 ip ospf authentication //基于链路OSPF简单口令认证(明文认证)
15 ip ospf authentication-key xxx // 配置认证密码
16 ip ospf authentication message-digest-key // 基于链路的OSPF MD5 认证(密文认证)
17 ip ospf message-digest-key 1 md5 xxx // 配置key ID 及密钥
(2) 多区域OSPF
1 redistribute connected subnets // 路由协议重分布
2 area area-id range // 区域间路由汇总
3 summary-address // 外部路由汇总
4 area area-id stub // 把某区域配置成末节区域
5 area area-id stub no-summary // 把某区域配置成完全末节区域
6 area area-id nssa // 把某区域配置成NSSA 区域
7 area area-id virtuial-link // 配置虚链路
(3)PPP
1 encapsulation hdlc // 把接口的封装改为hdlc
2 encapsulation ppp // 把接口的封装改为ppp
3 ppp pap sent-username 用户名 password 密码 // 在远程路由器上,配置在中心路由器上登陆的用户和密码
4 ppp authenticatin pap // 在中心路由器, 配置pap验证
5 username 用户名 password 密码 // 在中心路由器R1 为远程路由器R2 设置用户名及密码
6 ppp authentication chap // ppp 的认证方式为chap
(4)帧中继
1 encapsulation frame-relay // 接口封装成帧中继
2 frame-relay switching // 把路由器当成帧中继交换机
3 frame-relay lmi-type cisco // 配置LMI 的类型
4 frame-relay intf-type dce // 配置接口是帧中继的DCE 还是DTE
5 ip split-horizon // 打开水平分割
6 int s0/3/0.1 point-to-point // 创建点到点子接口
7 int s0/3/0.1 multipoint // 创建点到多点子接口