OSPF高级应用-创新互联
通过OSPF协议实现全网全通
R1配置
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Loopback1
ip address 192.168.0.1 255.255.255.0
!
interface Loopback2
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/0
ip address 10.0.0.5 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.0.0.1 255.255.255.252
duplex auto
speed auto
!
routerospf 1
router-id 1.1.1.1
log-adjacency-changes
area 1 nssa
network 1.1.1.1 0.0.0.0 area 0
network 10.0.0.0 0.0.0.3 area 0
network 10.0.0.4 0.0.0.3 area 1
network 192.168.0.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
!
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/11] via 10.0.0.2, 00:14:38, FastEthernet0/1
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/21] via 10.0.0.2, 00:14:38, FastEthernet0/1
192.168.8.0/29 is subnetted, 1 subnets //信息类型静态
O N2 192.168.8.0 [110/20] via 10.0.0.6,00:12:51, FastEthernet0/0 //NSSA区域内为N2
4.0.0.0/32 is subnetted, 1 subnets
O IA 4.4.4.4 [110/31] via 10.0.0.2, 00:12:56, FastEthernet0/1
5.0.0.0/32 is subnetted, 1 subnets
O 5.5.5.5 [110/11] via 10.0.0.6, 00:24:24, FastEthernet0/0
192.168.4.0/32 is subnetted, 1 subnets
O IA 192.168.4.1 [110/31] via 10.0.0.2, 00:12:58, FastEthernet0/1
192.168.5.0/32 is subnetted, 1 subnets
O 192.168.5.1 [110/11] via 10.0.0.6, 00:24:25, FastEthernet0/0
10.0.0.0/30 is subnetted, 4 subnets
O IA 10.0.0.8 [110/20] via 10.0.0.2, 00:14:40, FastEthernet0/1
O IA 10.0.0.12 [110/30] via 10.0.0.2, 00:14:40, FastEthernet0/1
C 10.0.0.0 is directly connected, FastEthernet0/1
C 10.0.0.4 is directly connected, FastEthernet0/0
C 192.168.0.0/24 is directly connected, Loopback1
C 192.168.1.0/24 is directly connected, Loopback2
192.168.2.0/32 is subnetted, 1 subnets
O 192.168.2.1 [110/11] via 10.0.0.2, 00:14:40, FastEthernet0/1
192.168.3.0/32 is subnetted, 1 subnets
O IA 192.168.3.1 [110/21] via 10.0.0.2, 00:14:40, FastEthernet0/1
R1# shipos ne
Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 1 FULL/DR 00:00:34 10.0.0.2 FastEthernet0/1
5.5.5.5 1 FULL/DR 00:00:30 10.0.0.6 FastEthernet0/0
R1#sh ipos da
OSPF Router with ID (1.1.1.1) (Process ID 1)
RouterLink States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 868 0x80000005 0x0020D6 4
2.2.2.2 2.2.2.2 67 0x80000006 0x0036F4 4
3.3.3.3 3.3.3.3 2 (DNA) 0x80000002 0x0008E9 1
NetLink States (Area 0)
Link ID ADV Router Age Seq# Checksum
10.0.0.2 2.2.2.2 839 0x80000003 0x002DED
SummaryNet Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
3.3.3.3 2.2.2.2 839 0x80000003 0x002DEE
3.3.3.3 3.3.3.3 888 (DNA) 0x80000001 0x00AE75
4.4.4.4 3.3.3.3 2 (DNA) 0x80000001 0x00E431
5.5.5.5 1.1.1.1 868 0x80000003 0x00EE29
10.0.0.4 1.1.1.1 868 0x80000004 0x000D14
10.0.0.8 2.2.2.2 839 0x80000004 0x00C652
10.0.0.8 3.3.3.3 888 (DNA) 0x80000001 0x00AE69
10.0.0.12 3.3.3.3 888 (DNA) 0x80000001 0x00868D
192.168.3.1 2.2.2.2 841 0x80000003 0x00DADF
192.168.3.1 3.3.3.3 888 (DNA) 0x80000001 0x005C66
192.168.4.1 3.3.3.3 2 (DNA) 0x80000001 0x00B502
192.168.5.1 1.1.1.1 870 0x80000003 0x00E2D9
RouterLink States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 870 0x80000005 0x0020D5 1
5.5.5.5 5.5.5.5 106 0x80000006 0x0073BB 3
NetLink States (Area 1)
Link ID ADV Router Age Seq# Checksum
10.0.0.6 5.5.5.5 836 0x80000003 0x00B642
SummaryNet Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
1.1.1.1 1.1.1.1 870 0x80000003 0x00E843
2.2.2.2 1.1.1.1 871 0x80000003 0x001FFE
3.3.3.3 1.1.1.1 871 0x80000003 0x0055BA
4.4.4.4 1.1.1.1 109 0x80000002 0x008D75
10.0.0.0 1.1.1.1 871 0x80000004 0x00DA44
10.0.0.8 1.1.1.1 871 0x80000003 0x00F01D
10.0.0.12 1.1.1.1 109 0x80000002 0x002FD1
192.168.0.1 1.1.1.1 871 0x80000003 0x005B6A
192.168.1.1 1.1.1.1 871 0x80000003 0x005074
192.168.2.1 1.1.1.1 871 0x80000003 0x00A910
192.168.3.1 1.1.1.1 871 0x80000003 0x0003AB
192.168.4.1 1.1.1.1 109 0x80000002 0x005E46
Type-7AS External Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Tag
192.168.8.0 5.5.5.5 39 0x80000001 0x000F99 0
Type-5AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
192.168.8.0 1.1.1.1 38 0x80000001 0x001CA6 0
R2配置
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Loopback1
ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet0/0
ip address 10.0.0.9 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.0.0.2 255.255.255.252
duplex auto
speed auto
!
routerospf 1
router-id 2.2.2.2
log-adjacency-changes
area 2 virtual-link3.3.3.3 //虚链路
network 2.2.2.2 0.0.0.0 area 0
network 10.0.0.0 0.0.0.3 area 0
network 10.0.0.8 0.0.0.3 area 2
network 192.168.2.0 0.0.0.255 area 0
!
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/11] via 10.0.0.1, 00:14:04, FastEthernet0/1
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/11] via 10.0.0.10, 00:17:13, FastEthernet0/0
192.168.8.0/29 issubnetted, 1 subnets
O E2 192.168.8.0 [110/20] via 10.0.0.1,00:14:04, FastEthernet0/1
4.0.0.0/32 is subnetted, 1 subnets
O IA 4.4.4.4 [110/21] via 10.0.0.10, 00:14:04, FastEthernet0/0
5.0.0.0/32 is subnetted, 1 subnets
O IA 5.5.5.5 [110/21] via 10.0.0.1, 00:14:05, FastEthernet0/1
192.168.4.0/32 is subnetted, 1 subnets
O IA 192.168.4.1 [110/21] via 10.0.0.10, 00:14:07, FastEthernet0/0
192.168.5.0/32 is subnetted, 1 subnets
O IA 192.168.5.1 [110/21] via 10.0.0.1, 00:14:07, FastEthernet0/1
10.0.0.0/30 is subnetted, 4 subnets
C 10.0.0.8 is directly connected, FastEthernet0/0
O IA 10.0.0.12 [110/20] via 10.0.0.10, 00:14:07, FastEthernet0/0
C 10.0.0.0 is directly connected, FastEthernet0/1
O IA 10.0.0.4 [110/20] via 10.0.0.1, 00:14:07, FastEthernet0/1
192.168.0.0/32 is subnetted, 1 subnets
O 192.168.0.1 [110/11] via 10.0.0.1, 00:14:07, FastEthernet0/1
192.168.1.0/32 is subnetted, 1 subnets
O 192.168.1.1 [110/11] via 10.0.0.1, 00:14:07, FastEthernet0/1
C 192.168.2.0/24 is directly connected, Loopback1
192.168.3.0/32 is subnetted, 1 subnets
O 192.168.3.1 [110/11] via 10.0.0.10, 00:17:16, FastEthernet0/0
R2(config-router)#do shipos ne
Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 0 FULL/ - - 10.0.0.10 OSPF_VL4
1.1.1.1 1 FULL/BDR 00:00:37 10.0.0.1 FastEthernet0/1
3.3.3.3 1 FULL/DR 00:00:30 10.0.0.10 FastEthernet0/0
R2(config-router)#do shipos da
OSPF Router with ID (2.2.2.2) (Process ID 1)
RouterLink States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 1886 0x80000004 0x0022D5 4
2.2.2.2 2.2.2.2 1111 0x80000005 0x0038F3 4
3.3.3.3 3.3.3.3 1 (DNA) 0x80000002 0x0008E9 1
NetLink States (Area 0)
Link ID ADV Router Age Seq# Checksum
10.0.0.2 2.2.2.2 1897 0x80000002 0x002FEC
SummaryNet Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
3.3.3.3 2.2.2.2 1897 0x80000002 0x002FED
3.3.3.3 3.3.3.3 887 (DNA) 0x80000001 0x00AE75
4.4.4.4 3.3.3.3 1 (DNA) 0x80000001 0x00E431
5.5.5.5 1.1.1.1 1886 0x80000002 0x00F028
10.0.0.4 1.1.1.1 1886 0x80000003 0x000F13
10.0.0.8 2.2.2.2 1897 0x80000003 0x00C851
10.0.0.8 3.3.3.3 887 (DNA) 0x80000001 0x00AE69
10.0.0.12 3.3.3.3 887 (DNA) 0x80000001 0x00868D
192.168.3.1 2.2.2.2 1900 0x80000002 0x00DCDE
192.168.3.1 3.3.3.3 887 (DNA) 0x80000001 0x005C66
192.168.4.1 3.3.3.3 1 (DNA) 0x80000001 0x00B502
192.168.5.1 1.1.1.1 1888 0x80000002 0x00E4D8
RouterLink States (Area 2)
Link ID ADV Router Age Seq# Checksum Link count
2.2.2.2 2.2.2.2 1113 0x80000005 0x009455 1
3.3.3.3 3.3.3.3 1114 0x80000006 0x00192B 3
NetLink States (Area 2)
Link ID ADV Router Age Seq# Checksum
10.0.0.10 3.3.3.3 1859 0x80000002 0x0015F2
SummaryNet Link States (Area 2)
Link ID ADV Router Age Seq# Checksum
1.1.1.1 2.2.2.2 1900 0x80000002 0x008B99
2.2.2.2 2.2.2.2 1901 0x80000002 0x00F832
4.4.4.4 3.3.3.3 999 0x80000001 0x00E431
5.5.5.5 2.2.2.2 1901 0x80000002 0x0037D3
10.0.0.0 2.2.2.2 1901 0x80000003 0x001909
10.0.0.4 2.2.2.2 1901 0x80000002 0x0057BD
10.0.0.12 3.3.3.3 115 0x80000002 0x00848E
192.168.0.1 2.2.2.2 1901 0x80000002 0x00FDC0
192.168.1.1 2.2.2.2 1901 0x80000002 0x00F2CA
192.168.2.1 2.2.2.2 1901 0x80000002 0x008343
192.168.4.1 3.3.3.3 999 0x80000001 0x00B502
192.168.5.1 2.2.2.2 1901 0x80000002 0x002B84
SummaryASB Link States (Area 2)
Link ID ADV Router Age Seq# Checksum
1.1.1.1 2.2.2.2 1901 0x80000002 0x0073B1
1.1.1.1 3.3.3.3 1111 0x80000001 0x00BB5C
Type-5AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
192.168.8.0 1.1.1.1 1676 0x80000001 0x0015AD 0
R3配置
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Loopback1
ip address 192.168.3.1 255.255.255.0
!
interface FastEthernet0/0
ip address 10.0.0.10 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.0.0.13 255.255.255.252
duplex auto
speed auto
!
routerospf 1
router-id 3.3.3.3
log-adjacency-changes
area 2 virtual-link 2.2.2.2 // 虚链路配置
area 3 stub no-summary //完全末梢区域ABR配置
network 3.3.3.3 0.0.0.0 area 2
network 10.0.0.8 0.0.0.3 area 2
network 10.0.0.12 0.0.0.3 area 3
network 192.168.3.0 0.0.0.255 area 2
R3(config-router)#do shipos ne
Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 0 FULL/ - - 10.0.0.9 OSPF_VL1
2.2.2.2 1 FULL/BDR 00:00:29 10.0.0.9 FastEthernet0/0
4.4.4.4 1 FULL/DR 00:00:35 10.0.0.14 FastEthernet0/1
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/21] via 10.0.0.9, 00:16:36, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/11] via 10.0.0.9, 00:16:36, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
192.168.8.0/29 issubnetted, 1 subnets //信息类型静态
O E2 192.168.8.0 [110/20] via 10.0.0.9,00:16:36, FastEthernet0/0 //LAS 4泛洪通告
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/11] via 10.0.0.14, 00:16:36, FastEthernet0/1
5.0.0.0/32 is subnetted, 1 subnets
O IA 5.5.5.5 [110/31] via 10.0.0.9, 00:16:37, FastEthernet0/0
192.168.4.0/32 is subnetted, 1 subnets
O 192.168.4.1 [110/11] via 10.0.0.14, 00:16:39, FastEthernet0/1
192.168.5.0/32 is subnetted, 1 subnets
O IA 192.168.5.1 [110/31] via 10.0.0.9, 00:16:39, FastEthernet0/0
10.0.0.0/30 is subnetted, 4 subnets
C 10.0.0.8 is directly connected, FastEthernet0/0
C 10.0.0.12 is directly connected, FastEthernet0/1
O 10.0.0.0 [110/20] via 10.0.0.9, 00:16:39, FastEthernet0/0
O IA 10.0.0.4 [110/30] via 10.0.0.9, 00:16:39, FastEthernet0/0
192.168.0.0/32 is subnetted, 1 subnets
O 192.168.0.1 [110/21] via 10.0.0.9, 00:16:39, FastEthernet0/0
192.168.1.0/32 is subnetted, 1 subnets
O 192.168.1.1 [110/21] via 10.0.0.9, 00:16:39, FastEthernet0/0
192.168.2.0/32 is subnetted, 1 subnets
O 192.168.2.1 [110/11] via 10.0.0.9, 00:16:39, FastEthernet0/0
C 192.168.3.0/24 is directly connected, Loopback1
R3(config-router)# do shipos da
OSPF Router with ID (3.3.3.3) (Process ID 1)
RouterLink States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 775 (DNA) 0x80000004 0x0022D5 4
2.2.2.2 2.2.2.2 1 (DNA) 0x80000005 0x0038F3 4
3.3.3.3 3.3.3.3 1293 0x80000002 0x0008E9 1
NetLink States (Area 0)
Link ID ADV Router Age Seq# Checksum
10.0.0.2 2.2.2.2 786 (DNA) 0x80000002 0x002FEC
SummaryNet Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
3.3.3.3 2.2.2.2 786 (DNA) 0x80000002 0x002FED
3.3.3.3 3.3.3.3 293 0x80000002 0x00AC76
4.4.4.4 3.3.3.3 1177 0x80000001 0x00E431
5.5.5.5 1.1.1.1 775 (DNA) 0x80000002 0x00F028
10.0.0.4 1.1.1.1 775 (DNA) 0x80000003 0x000F13
10.0.0.8 2.2.2.2 786 (DNA) 0x80000003 0x00C851
10.0.0.8 3.3.3.3 295 0x80000002 0x00AC6A
10.0.0.12 3.3.3.3 295 0x80000002 0x00848E
192.168.3.1 2.2.2.2 786 (DNA) 0x80000002 0x00DCDE
192.168.3.1 3.3.3.3 295 0x80000002 0x005A67
192.168.4.1 3.3.3.3 1179 0x80000001 0x00B502
192.168.5.1 1.1.1.1 775 (DNA) 0x80000002 0x00E4D8
RouterLink States (Area 2)
Link ID ADV Router Age Seq# Checksum Link count
2.2.2.2 2.2.2.2 1296 0x80000005 0x009455 1
3.3.3.3 3.3.3.3 1295 0x80000006 0x00192B 3
NetLink States (Area 2)
Link ID ADV Router Age Seq# Checksum
10.0.0.10 3.3.3.3 43 0x80000003 0x0013F3
SummaryNet Link States (Area 2)
Link ID ADV Router Age Seq# Checksum
1.1.1.1 2.2.2.2 27 0x80000003 0x00899A
2.2.2.2 2.2.2.2 29 0x80000003 0x00F633
4.4.4.4 3.3.3.3 1181 0x80000001 0x00E431
5.5.5.5 2.2.2.2 29 0x80000003 0x0035D4
10.0.0.0 2.2.2.2 29 0x80000004 0x00170A
10.0.0.4 2.2.2.2 29 0x80000003 0x0055BE
10.0.0.12 3.3.3.3 297 0x80000002 0x00848E
192.168.0.1 2.2.2.2 29 0x80000003 0x00FBC1
192.168.1.1 2.2.2.2 29 0x80000003 0x00F0CB
192.168.2.1 2.2.2.2 29 0x80000003 0x008144
192.168.4.1 3.3.3.3 1181 0x80000001 0x00B502
192.168.5.1 2.2.2.2 29 0x80000003 0x002985
SummaryASB Link States (Area 2)
Link ID ADV Router Age Seq# Checksum
1.1.1.1 2.2.2.2 29 0x80000003 0x0071B2
1.1.1.1 3.3.3.3 1292 0x80000001 0x00BB5C
RouterLink States (Area 3)
Link ID ADV Router Age Seq# Checksum Link count
3.3.3.3 3.3.3.3 1184 0x80000007 0x00B627 1
4.4.4.4 4.4.4.4 84 0x80000005 0x002A0D 3
NetLink States (Area 3)
Link ID ADV Router Age Seq# Checksum
10.0.0.14 4.4.4.4 84 0x80000003 0x003FB9
SummaryNet Link States (Area 3)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 3.3.3.3 1188 0x80000001 0x0057DA
Type-5AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
192.168.8.0 1.1.1.1 1859 0x80000001 0x0015AD 0
R4配置
!
interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface Loopback1
ip address 192.168.4.1 255.255.255.0
!
interface FastEthernet0/0
noip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.0.0.14 255.255.255.252
duplex auto
speed auto
!
routerospf 1
router-id 4.4.4.4
log-adjacency-changes
area 3 stub //完全末梢区域内路由器配置
network 4.4.4.4 0.0.0.0 area 3
network 10.0.0.12 0.0.0.3 area 3
network 192.168.4.0 0.0.0.255 area 3
!
R4# shipos ne
Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 1 FULL/BDR 00:00:31 10.0.0.13 FastEthernet0/1
Gateway of last resort is 10.0.0.13 tonetwork 0.0.0.0
4.0.0.0/32 is subnetted, 1 subnets
C 4.4.4.4 is directly connected, Loopback0
C 192.168.4.0/24 is directly connected, Loopback1
10.0.0.0/30 is subnetted, 1 subnets
C 10.0.0.12 is directly connected, FastEthernet0/1
O*IA 0.0.0.0/0 [110/11]via 10.0.0.13, 00:21:21, FastEthernet0/1 //完全末梢区域获取到默认
R5配置
!
interface Loopback0
ip address 5.5.5.5 255.255.255.255
!
interface Loopback1
ip address 192.168.5.1 255.255.255.0
!
interface FastEthernet0/0
ip address 10.0.0.6 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.0.0.17 255.255.255.252
duplex auto
speed auto
!
routerospf 1
router-id 5.5.5.5
log-adjacency-changes
area 1 nssa
summary-address 192.168.8.0 255.255.248.0 //ASBR网段汇总
redistribute static subnets //静态重分发
network 5.5.5.5 0.0.0.0 area 1
network 10.0.0.4 0.0.0.3 area 1
network 192.168.5.0 0.0.0.255 area 1
!
ip route 192.168.8.0 255.255.255.24810.0.0.18
!
R5(config-router)# do shipos ne
Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 1 FULL/BDR 00:00:34 10.0.0.5 FastEthernet0/0
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O IA 1.1.1.1 [110/11] via 10.0.0.5, 00:05:44, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
O IA 2.2.2.2 [110/21] via 10.0.0.5, 00:05:44, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
O IA 3.3.3.3 [110/31] via 10.0.0.5, 00:05:44, FastEthernet0/0
4.0.0.0/32 is subnetted, 1 subnets
O IA 4.4.4.4 [110/41] via 10.0.0.5, 00:05:44, FastEthernet0/0
5.0.0.0/32 is subnetted, 1 subnets
C 5.5.5.5 is directly connected, Loopback0
192.168.4.0/32 is subnetted, 1 subnets
O IA 192.168.4.1 [110/41] via 10.0.0.5, 00:05:46, FastEthernet0/0
C 192.168.5.0/24is directly connected, Loopback1
10.0.0.0/30 is subnetted, 5 subnets
O IA 10.0.0.8 [110/30] via 10.0.0.5, 00:05:46, FastEthernet0/0
O IA 10.0.0.12 [110/40] via 10.0.0.5, 00:05:46, FastEthernet0/0
O IA 10.0.0.0 [110/20] via 10.0.0.5, 00:05:46, FastEthernet0/0
C 10.0.0.4 is directly connected, FastEthernet0/0
C 10.0.0.16 is directly connected, FastEthernet0/1
192.168.0.0/32 is subnetted, 1 subnets
O IA 192.168.0.1 [110/11] via 10.0.0.5, 00:05:46, FastEthernet0/0
192.168.1.0/32 is subnetted, 1 subnets
O IA 192.168.1.1 [110/11] via 10.0.0.5, 00:05:46, FastEthernet0/0
192.168.2.0/32 is subnetted, 1 subnets
O IA 192.168.2.1 [110/21] via 10.0.0.5, 00:05:46, FastEthernet0/0
192.168.3.0/32 is subnetted, 1 subnets
O IA 192.168.3.1 [110/31] via 10.0.0.5, 00:05:46, FastEthernet0/0
S 192.168.8.0/21 [1/0] via 10.0.0.18
R6配置
!
interface Loopback0
ip address 192.168.8.1 255.255.255.0
!
interface Loopback1
ip address 192.168.9.1 255.255.255.0
!
interface Loopback2
ip address 192.168.10.1 255.255.255.0
!
interface Loopback3
ip address 192.168.11.1 255.255.255.0
!
interface FastEthernet0/0
noip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.0.0.18 255.255.255.252
duplex auto
speed auto
!
ip route 0.0.0.0 0.0.0.0 10.0.0.17
!
Gateway of last resort is 10.0.0.17 tonetwork 0.0.0.0
C 192.168.8.0/24 is directly connected, Loopback0
C 192.168.9.0/24 is directly connected, Loopback1
C 192.168.10.0/24 is directly connected, Loopback2
C 192.168.11.0/24 is directly connected, Loopback3
10.0.0.0/30 is subnetted, 1 subnets
C 10.0.0.16 is directly connected, FastEthernet0/1
S* 0.0.0.0/0 [1/0] via 10.0.0.17
在R1验证全网全通
R1# ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2,timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5),round-trip min/avg/max = 20/36/68 ms
R1#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3,timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5),round-trip min/avg/max = 40/52/84 ms
R1#ping 4.4.4.4
Type escape sequence toabort.
Sending 5, 100-byte ICMPEchos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100percent (5/5), round-trip min/avg/max = 60/76/100 ms
R1#ping 5.5.5.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5,timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5),round-trip min/avg/max = 20/32/64 ms
R1#ping 192.168.11.1
Type escape sequence toabort.
Sending 5, 100-byte ICMPEchos to 192.168.11.1, timeout is 2 seconds:
!!!!!
Success rate is 100percent (5/5), round-trip min/avg/max = 32/56/88 ms
R1#ping 192.168.9.1
Type escape sequence toabort.
Sending 5, 100-byte ICMPEchos to 192.168.9.1, timeout is 2 seconds:
!!!!!
Success rate is 100percent (5/5), round-trip min/avg/max = 40/52/84 ms
另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
文章标题:OSPF高级应用-创新互联
文章URL:http://scyanting.com/article/gcegg.html