- 积分
- 111
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2012-7-20
- 最后登录
- 1970-1-1
- 阅读权限
- 20
- 听众
- 收听
助理工程师
![Rank: 2](https://cdn.hh010.com/static/image/common/star_level1.gif) ![Rank: 2](https://cdn.hh010.com/static/image/common/star_level1.gif)
|
R1配置的是单臂路由,其他路由协议重分发都可以正常ping通,唯独就是R1与R2直连这块ping不通,求解?
R1配置:
R1# show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
18.0.0.0/24 is subnetted, 1 subnets
C 18.1.1.0 is directly connected, FastEthernet0/1
172.16.0.0/24 is subnetted, 4 subnets
C 172.16.1.0 is directly connected, FastEthernet0/0.1
C 172.16.2.0 is directly connected, FastEthernet0/0.2
C 172.16.3.0 is directly connected, FastEthernet0/0.3
C 172.16.4.0 is directly connected, FastEthernet0/0.4
R1#
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.1
encapsulation dot1Q 10
ip address 172.16.1.1 255.255.255.0
!
interface FastEthernet0/0.2
encapsulation dot1Q 20
ip address 172.16.2.1 255.255.255.0
!
interface FastEthernet0/0.3
encapsulation dot1Q 30
ip address 172.16.3.1 255.255.255.0
!
interface FastEthernet0/0.4
encapsulation dot1Q 40
ip address 172.16.4.1 255.255.255.0
!
interface FastEthernet0/1
ip address 18.1.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
no ip address
shutdown
!
interface Serial0/1
no ip address
shutdown
!
interface Serial0/2
no ip address
shutdown
!
interface Serial0/3
no ip address
shutdown
!
interface Ethernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Ethernet1/1
no ip address
duplex auto
speed auto
shutdown
!
interface Ethernet1/2
no ip address
duplex auto
speed auto
shutdown
!
interface Ethernet1/3
no ip address
duplex auto
speed auto
shutdown
!
ip classless
R2配置:
R2#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
18.0.0.0/24 is subnetted, 1 subnets
C 18.1.1.0 is directly connected, FastEthernet0/1
24.0.0.0/24 is subnetted, 1 subnets
S 24.1.1.0 [1/0] via 123.1.1.2
35.0.0.0/24 is subnetted, 1 subnets
S 35.1.1.0 [1/0] via 123.1.1.3
57.0.0.0/24 is subnetted, 1 subnets
S 57.1.1.0 [1/0] via 123.1.1.3
123.0.0.0/24 is subnetted, 1 subnets
C 123.1.1.0 is directly connected, FastEthernet0/0
172.16.0.0/24 is subnetted, 4 subnets
S 172.16.1.0 [1/0] via 18.1.1.0
S 172.16.2.0 [1/0] via 18.1.1.0
S 172.16.3.0 [1/0] via 18.1.1.0
S 172.16.4.0 [1/0] via 18.1.1.0
R2#interface FastEthernet0/0
ip address 123.1.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 18.1.1.2 255.255.255.0
duplex auto
speed auto
router ospf 100
log-adjacency-changes
network 123.1.1.0 0.0.0.255 area 0
!
ip classless
ip route 172.16.1.0 255.255.255.0 18.1.1.0
ip route 172.16.2.0 255.255.255.0 18.1.1.0
ip route 172.16.3.0 255.255.255.0 18.1.1.0
ip route 172.16.4.0 255.255.255.0 18.1.1.0
ip route 57.1.1.0 255.255.255.0 123.1.1.3
ip route 35.1.1.0 255.255.255.0 123.1.1.3
ip route 24.1.1.0 255.255.255.0 123.1.1.2
!
|
-
|