您的位置:首页 > 编程语言 > Java开发

java synchronized详解

2012-12-05 11:48 302 查看
[align=center]EIGRP-2[/b]([/b]EIGRP[/b]的路由认证)[/b][/b][/align]
一、实验目的:[/b][/b]
EIGRP的路由认证
二、网络拓朴:[/b][/b]


[/b]
三、实验步骤:[/b][/b]
[/b]1.环境搭建:
!---R1
enable
conf t
ho R1
no ip do lo
line con 0
logg s
no exec-t
int lo0
ip add 172.16.1.1 255.255.255.0
int s1/1
ip add 10.1.1.1 255.255.255.0
no shut
exit

!---R2
enable
conf t
ho R2
no ip do lo
line con 0
logg s
no exec-t
int lo0
ip add 172.16.2.1 255.255.255.0
int s1/0
ip add 10.1.1.2 255.255.255.0
no shut
exit
[/b]
[/b]
[/b] 2.起用EIGRP:
!---R1
conf t
router eigrp 50
network 172.16.1.0
network 10.1.1.0
no auto
exit

!---R2
conf t
router eigrp 50
network 172.16.2.0
network 10.1.1.0
no auto
exit
此时R1和R2成功建立邻居,并且两个loopback口互通。

3.起用认证,配置如下:
!---R1
conf t
key chain my
key 1
key-string cisco
exit
exit

int s1/1
ip authentication mode eigrp 50 md5
ip authentication key-chain eigrp 50 my
exit
当我们对R1进行了认证只后,这时会发现邻居R2会丢失,因为我们还没有在R2上配置相对应的认证,这种情况下,R1和R2将不能建立邻居关系。
*Jan 9 21:51:10.251: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 50: Neighbor 10.1.1.2 (Serial1/1) is down: authentication mode changed
R1#show ip eigrp neighbors
IP-EIGRP neighbors for process 50

然而,当我们在R2上对EIGRP进行和R1上匹配的认证之后,R1和R2的邻居关系将会重新建立:
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#key chain my
R2(config-keychain)#key 1
R2(config-keychain-key)#key-string cisco
R2(config-keychain-key)#exit
R2(config-keychain)#exit
R2(config)#
R2(config)#int s1/0
R2(config-if)#ip authentication mode eigrp 50 md5
R2(config-if)#ip authentication key-chain eigrp 50 my
R2(config-if)#exit
R2(config)#
*Jan 9 21:59:23.283: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 50: Neighbor 10.1.1.1 (Serial1/0) is up: new adjacency
R1#show ip eigrp neighbors
IP-EIGRP neighbors for process 50
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 10.1.1.2 Se1/1 12 00:02:33 1254 5000 0 7 本文出自 “永不止步” 博客,请务必保留此出处http://lostmiss.blog.51cto.com/736134/262268
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: