R3#sh ip route
40.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 40.1.1.0/24 is directly connected, FastEthernet0/0
O 40.1.1.4/32 [110/10] via 40.1.1.4, 00:18:24, FastEthernet0/0
135.1.0.0/
32 is subnetted, 1 subnets
O 135.1.1.4 [110/11] via 40.1.1.4, 00:18:24, FastEthernet0/0
R3#wr t
hostname R3
interface FastEthernet0/0
ip address 40.1.1.3 255.255.255.0
ip ospf network point-to-multipoint non-broadcast
router ospf 1
log-adjacency-changes
network 40.1.1.3 0.0.0.0 area 10
neighbor 40.1.1.4 cost 10
====================================
R4#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
40.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 40.1.1.0/24 is directly connected, Ethernet0/0
O 40.1.1.3/32 [110/10] via 40.1.1.3, 00:22:28, Ethernet0/0
135.1.0.0/32 is subnetted, 1 subnets
C 135.1.1.4 is directly connected, Loopback0
R4#wr t
hostname R4
interface Loopback0
ip address 135.1.1.4 255.255.255.255
!
interface Ethernet0/0
ip address 40.1.1.4 255.255.255.0
ip ospf network point-to-multipoint non-broadcast
!
router ospf 1
log-adjacency-changes
network 40.1.1.4 0.0.0.0 area 10
network 135.1.1.4 0.0.0.0 area 10
neighbor 40.1.1.3
转载地址:http://www.net130.com/CMS/Pub/Tech/tech_zh/2005_09_13_77326.htm