您的位置:首页 > 数据库

如何选择正确的SQL Server Compact安装包

2009-06-19 02:54 525 查看
关于路由重分的知识一
要求:我们在第一台路由器上使用RIP,第二台用RIP和OSPF,第三台使用OSPF和EIGRP
,在第四台上使用EIGRP
目标:让全网能够进行通信
在第一台路由器上的配置如下:
R1#show run
!
hostname R1
!
no ip domain lookup
!
interface Loopback0
ip address 1.1.1.1 255.255.255.0
!
interface Serial0/1
ip address 12.1.1.1 255.255.255.0
serial restart-delay 0
clock rate 64000
!
!
router rip
version 2
network 1.0.0.0
network 12.0.0.0
no auto-summary
line con 0
exec-timeout 0 0
logging synchronous

!
End
在第二台路由上的配置如下:
R2#show run
hostname R2
!
no ip domain lookup
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface Loopback1
ip address 200.1.1.1 255.255.255.0
!
interface Serial0/0
ip address 12.1.1.2 255.255.255.0
serial restart-delay 0
clock rate 64000
no fair-queue
!
interface Serial0/1
ip address 23.1.1.1 255.255.255.0
serial restart-delay 0
clock rate 64000
!
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
redistribute rip subnets
network 2.2.2.0 0.0.0.255 area 0
network 23.1.1.0 0.0.0.255 area 0
!
router rip
version 2
redistribute ospf 1 metric 1
network 12.0.0.0
network 200.1.1.0
no auto-summary
line con 0
exec-timeout 0 0
logging synchronous
!
End
在第三台上配置:
R3#show run
hostname R3
!
no ip domain lookup
!
interface Loopback0
ip address 3.3.3.3 255.255.255.0
!
interface Loopback1
ip address 30.1.1.1 255.255.255.0
!
interface Serial0/0
ip address 23.1.1.2 255.255.255.0
serial restart-delay 0
clock rate 64000
no fair-queue
!
interface Serial0/1
ip address 34.1.1.1 255.255.255.0
serial restart-delay 0
clock rate 64000
!
router eigrp 100
redistribute ospf 1 metric 10000 100 255 1 1500
network 30.1.1.0 0.0.0.255
network 34.1.1.0 0.0.0.255
no auto-summary
!
router ospf 1
router-id 3.3.3.3
log-adjacency-changes
redistribute eigrp 100 metric 1 subnets
network 3.3.3.0 0.0.0.255 area 0
network 23.1.1.0 0.0.0.255 area 0
!
line con 0
exec-timeout 0 0
logging synchronous
!
End
在第四台上的配置:
R4#show run

hostname R4
!
no ip domain lookup

!
interface Loopback0
ip address 4.4.4.4 255.255.255.0
!
interface Serial0/0
ip address 34.1.1.2 255.255.255.0
serial restart-delay 0
clock rate 64000
!
router eigrp 100
network 4.4.4.0 0.0.0.255
network 34.1.1.0 0.0.0.255
no auto-summary
!
line con 0
exec-timeout 0 0
logging synchronous
!
End
我们现在来测试一下网络的连通性
R4#ping 1.1.1.1 source 4.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 240/298/364 ms
R4#ping 2.2.2.2 source 4.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 144/202/264 ms
R4#ping 3.3.3.3 source 4.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 72/105/144 ms
从上面我们可以看出网络已经达到了我们的要求
下面是我们的总结部分:
RIP:把其它协议重分发到RIP中时METRIC值为无穷大
OSPF:把其它协议重分发到OSPF中时METRIC值为20
EIGRP:把其它协议重分发到EIGRP中时METRIC值也为无穷大

本文出自 “华苏科技网络实验室” 博客,请务必保留此出处http://pzh0227.blog.51cto.com/469111/105139
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: