免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1079 | 回复: 0
打印 上一主题 下一主题

OSPF在Frame Relay网络中的应用(ZT) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-24 16:44 |只看该作者 |倒序浏览



R1:R3 103:301      R2:R3 203:302   
  R1 loopback 1.1.1.1/32
  R2 loopback:2.2.2.2/32
  R3 loopback 3.3.3.3/32

NBMA

R1
conf t
int l 0
ip ad 1.1.1.1 255.255.255.255
exit
int s 0
encap f
no arp f
no frame inver
ip ad 10.1.1.1 255.255.255.0
frame map ip 10.1.1.3 103 b
frame map ip 10.1.1.2 103 b
ip ospf priority 0
no shut
exit
router ospf 1
nei 10.1.1.3
net 1.1.1.1 0.0.0.0 a 0
net 10.1.1.1 0.0.0.0 a
end

R2
conf t
int l0
ip ad 2.2.2.2 255.255.255.255
exit
int s 0
encap f
no arp f
no frame inver
ip ad 10.1.1.2 255.255.255.0
frame map ip 10.1.1.3 203 b
frame map ip 10.1.1.1 203 b
ip ospf priority 0
no shut
exit
router ospf 1
nei 10.1.1.3
net 2.2.2.2 0.0.0.0 a 0
net 10.1.1.2 0.0.0.0 a 0
exd

R3
conf t
int l 0
ip ad 3.3.3.3 255.255.255.255
exit
int s 0
encap f
no arp f
no frame inver
ip ad 10.1.1.3 255.255.255.0
frame map ip 10.1.1.1 301 b
frame map ip 10.1.1.2 302 b
no shut
exit
router ospf 1
nei 10.1.1.1
nei 10.1.1.2
net 3.3.3.3 0.0.0.0 a 0
net 10.1.1.3 0.0.0.0 a 0
end
  
R1#sh ip route ospf
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/65] via 10.1.1.2, 00:00:20, Serial2/0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 10.1.1.3, 00:00:20, Serial2/0
R1#sh ip ospf neighbor
R1#sh ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           1   FULL/DR         00:01:39    10.1.1.3        Serial2/0

R2#sh ip route ospf
     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 10.1.1.1, 00:01:12, Serial2/0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 10.1.1.3, 00:01:12, Serial2/0
R2#sh ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           1   FULL/DR         00:01:30    10.1.1.3        Serial2/0

R3#sh ip route ospf
     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 10.1.1.1, 00:01:45, Serial2/0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/65] via 10.1.1.2, 00:01:45, Serial2/0
R3#sh ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
10.1.1.1          0   FULL/DROTHER    00:01:30    10.1.1.1        Serial2/0
2.2.2.2           0   FULL/DROTHER    00:01:35    10.1.1.2        Serial2/0

POINT-TO-MULTIPOINT


R1
conf t

int l 0
ip ad 1.1.1.1 255.255.255.255
exit
int s 0
ip ad 10.1.1.1 255.255.255.0
encap f
no arp f
no frame inver
frame map ip 10.1.1.2 103 b
frame map ip 10.1.1.3 103 b
ip ospf network point-to-multipoint
no shut
exit
router ospf 1
net 1.1.1.1 0.0.0.0 a 0
net 10.1.1.1 0.0.0.0 a 0
end

R2
conf t
int l 0
ip ad 2.2.2.2 255.255.255.255
exit
int s 0
ip ad 10.1.1.2 255.255.255.0
encap f
no arp f
no frame inver
frame map ip 10.1.1.1 203 b
frame map ip 10.1.1.3 203 b
ip ospf network point-to-multipoint

no shut
exit
router ospf 1
net 2.2.2.2 0.0.0.0 a 0
net 10.1.1.2 0.0.0.0 a 0
end

R3
conf t
int l 0
ip ad 3.3.3.3 255.255.255.255
exit
int s 0
ip ad 10.1.1.3 255.255.255.0
encap f
no arp f
no frame inver
frame map ip 10.1.1.1 301 b
frame map ip 10.1.1.2 302 b
ip ospf network point-to-multipoint
no shut
exit
router ospf 1
net 3.3.3.3 0.0.0.0 a 0
net 10.1.1.3 0.0.0.0 a 0
end

R1#sh ip ospf n
Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           0   FULL/  -        00:01:55    10.1.1.3        Serial2/0
R1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
     1.0.0.0/32 is subnetted, 1 subnets
C       1.1.1.1 is directly connected, Loopback0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/129] via 10.1.1.3, 00:10:45, Serial2/0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 10.1.1.3, 00:10:45, Serial2/0
     10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O       10.1.1.2/32 [110/128] via 10.1.1.3, 00:10:45, Serial2/0
O       10.1.1.3/32 [110/64] via 10.1.1.3, 00:10:45, Serial2/0
C       10.1.1.0/24 is directly connected, Serial2/0

R2#sh ip ospf n
Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           0   FULL/  -        00:01:47    10.1.1.3        Serial2/0
R2#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/129] via 10.1.1.3, 00:11:15, Serial2/0
     2.0.0.0/32 is subnetted, 1 subnets
C       2.2.2.2 is directly connected, Loopback0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 10.1.1.3, 00:11:15, Serial2/0
     10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O       10.1.1.3/32 [110/64] via 10.1.1.3, 00:11:15, Serial2/0
C       10.1.1.0/24 is directly connected, Serial2/0
O       10.1.1.1/32 [110/128] via 10.1.1.3, 00:11:15, Serial2/0

R3#sh ip ospf n
Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2.2           0   FULL/  -        00:01:38    10.1.1.2        Serial2/0
1.1.1.1           0   FULL/  -        00:01:35    10.1.1.1        Serial2/0
R3#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 10.1.1.1, 00:11:33, Serial2/0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/65] via 10.1.1.2, 00:11:33, Serial2/0
     3.0.0.0/32 is subnetted, 1 subnets
C       3.3.3.3 is directly connected, Loopback0
     10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O       10.1.1.2/32 [110/64] via 10.1.1.2, 00:11:33, Serial2/0
C       10.1.1.0/24 is directly connected, Serial2/0
O       10.1.1.1/32 [110/64] via 10.1.1.1, 00:11:33, Serial2/0

POINT-TO-POINT

R1
conf t
int l 0
ip ad 1.1.1.1 255.255.255.255
exit
int s 0
ip ad 10.1.1.1 255.255.255.0
encap f
no arp f
no frame inver
frame map ip 10.1.1.3 301 b
ip ospf network point-to-point
no shut
router ospf
net 1.1.1.1 0.0.0.0 a 0
net 10.1.1.1 0.0.0.0 a 0
end

R2
conf
int l 0
ip ad 2.2.2.2 255.255.255.255


int s 0
ip ad 10.1.2.2 255.255.255.0
encap f
no arp f
no frame inver
frame map ip 10.1.2.3 203 b
ip ospf network point-to-point
no shut
router ospf 1
net 2.2.2.2 0.0.0.0 a 0
net 10.1.2.2 0.0.0.0 a
end

R3
conf t
int l 0
ip ad 3.3.3.3 255.255.255.255
exit
int s 0
encap f
no arp f
no frame inver
no shut
exit
int s 0.1 p
ip ad 10.1.1.3 255.255.255.0
no arp f
no frame inver
frame interface-dlci 301
exit
ip ospf network point-to-point
exit
int s 0.2 p
ip ad 10.1.2.3 255.255.255.0
no arp f
no frame inver
frame interface-dlci 302
exit
ip ospf network point-to-point
exit
router ospf 1
net 3.3.3.3 0.0.0.0 a 0
net 10.1.1.3 0.0.0.0 a 0
net 10.1.2.3 0.0.0.0 a 0
end

R1# sh ip ospf n
Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           0   FULL/  -        00:00:32    10.1.1.3        Serial2/0
R1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
     1.0.0.0/32 is subnetted, 1 subnets
C       1.1.1.1 is directly connected, Loopback0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/129] via 10.1.1.3, 00:00:23, Serial2/0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 10.1.1.3, 00:00:23, Serial2/0
     10.0.0.0/24 is subnetted, 2 subnets
O       10.1.2.0 [110/128] via 10.1.1.3, 00:00:23, Serial2/0
C       10.1.1.0 is directly connected, Serial2/0

R2#sh ip ospf n
Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           0   FULL/  -        00:00:37    10.1.2.3        Serial2/0
R2#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/129] via 10.1.2.3, 00:00:13, Serial2/0
     2.0.0.0/32 is subnetted, 1 subnets
C       2.2.2.2 is directly connected, Loopback0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 10.1.2.3, 00:00:13, Serial2/0
     10.0.0.0/24 is subnetted, 2 subnets
C       10.1.2.0 is directly connected, Serial2/0
O       10.1.1.0 [110/128] via 10.1.2.3, 00:00:13, Serial2/0

R3# sh ip ospf n
Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2.2           0   FULL/  -        00:00:33    10.1.2.2        Serial2/0.2
1.1.1.1           0   FULL/  -        00:00:37    10.1.1.1        Serial2/0.1
R3#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 10.1.1.1, 00:00:02, Serial2/0.1
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/65] via 10.1.2.2, 00:00:02, Serial2/0.2
     3.0.0.0/32 is subnetted, 1 subnets
C       3.3.3.3 is directly connected, Loopback0
     10.0.0.0/24 is subnetted, 2 subnets
C       10.1.2.0 is directly connected, Serial2/0.2
C       10.1.1.0 is directly connected, Serial2/0.1

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/20074/showart_285328.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP