求路由器配置代码

局域网一台路由器,下面连接3台交换机,交换机分别连接几十台PC机,路由器与外部一个路由器相连。要求对此路由器进行RIP V2配置和RIP的明文认证及MD5认证。仅写下这个路由器的配置代码即可。

Configure terminal
Router rip
Version 2(定义RIP路由协议的版本为2)
Network 192.168.11.0(定义与本路由器相连的关联网络)
Network 192.168.12.0(定义与本路由器相连的关联网络)
路由器端口地址自己去配,这里只是假设2个地址。
(config)#key chain ***(指定一个名字)
(config-keychain)#key 1(指定一个编号)
(config-keychain-key)#key-string cisco(指定一个认证用的密码)
在一个网络中,KEY CHAIN的值可以不同,但KEY和KEY-STRING必须相同
在接口上开启认证:
(config-if)#ip rip authentication mode md5 在接口上开启MD5认证
(config-if)#ip rip auth key-chain *** 指定认证KEY-CHAIN的名字,必须与前
完毕!
温馨提示:答案为网友推荐,仅供参考
第1个回答  2013-09-21
router rip
vertion 2
netw x.x.x.x (所有路由器直连的网段都宣布出来就可以了)
明文认证我忘了,我也学的一般,也是正在学习中
第2个回答  2013-09-21
MD5认证是不是AAA认证
1. Cisco2950配置方法
Enable /*进入特权模式*/
config t /*进入全局配置模式*/
aaa new-model /*启用aaa认证*/
aaa authentication dot1x default group radius /*配置802.1x认证使用radius服务器数据库*/
aaa authorization network default group radius/*VLAN分配必须*/
radius-server host 192.168.1.132 key vrv /*指定radius服务器地址为192.168.1.132,通信密钥为vrv,端口不用制定,默认1812和1813*/
radius-server vsa send authentication /*配置VLAN分配必须使用IETF所规定的VSA值*/
int vlan 1
ip add 192.168.1.133 255.255.255.0
no shut
/*为交换机配置管理地址,以便和radius服务器通信*/
int range f0/1 - 11
dot1x port-control auto
switchport mode access
/*为1到11端口配置dot1x,12端口不配*/
dot1x guest-vlan ID (VLAN跳转命令)
exit
/*退回全局配置模式*/
dot1x system-auth-control
/*全局启动dot1x*/

2950交换机上VLAN的配置
vlan database
vlan ID
enable
config t
int range f0/1 – 20
switchport access vlan ID
switchport mode access
spanning-tree portfast
第3个回答  2013-09-21
你用的路由器品牌型号?
怀疑你是做什么的,设置这些都专业人士。