我有 4 个 IDF(cisco 3560)和一个 MDF(cisco 3560)。IDF 通过 fa0/24 连接到 MDF。每个 fa0/24 都处于中继模式。
看图

MDF 上的 Fa0/1-4 处于中继模式。
问题:我无法从其他任何 IDF ping 任何 IDF。
但是,如果我为来自同一网络的他们设置 IP - 它可以工作。
我应该配置什么来正确路由?
更新。
这是从配置 IDF4 中引用的
hostname IDF4
!
!
!
spanning-tree mode pvst
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
no switchport
ip address 10.6.64.1 255.255.224.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 10.6.0.0 255.255.224.0 FastEthernet0/24
ip route 10.6.32.0 255.255.224.0 FastEthernet0/24
ip route 10.6.96.0 255.255.224.0 FastEthernet0/24
ip route 0.0.0.0 0.0.0.0 FastEthernet0/24
!
ip flow-export version 9
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
end
和 IDF5 的配置
!
hostname IDF5
!
ip routing
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
no switchport
ip address 10.6.96.1 255.255.224.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
!
router rip
!
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet0/24
ip route 10.6.0.0 255.255.224.0 FastEthernet0/24
ip route 10.6.32.0 255.255.224.0 FastEthernet0/24
ip route 10.6.64.0 255.255.224.0 FastEthernet0/24
!
ip flow-export version 9
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
更新 2。
MDF(config)#int range fa0/1-4
MDF(config-if-range)#no switchport
MDF(config-if-range)#
MDF(config-if-range)#exit
MDF(config)#interface FastEthernet0/1
MDF(config-if)#no ip address
MDF(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up
ip address 10.6.31.254 255.0.0.0
MDF(config-if)#ip address 10.6.31.254 255.255.224.0
MDF(config-if)#
MDF(config-if)#exit
MDF(config)#interface FastEthernet0/1
MDF(config-if)#
MDF(config-if)#exit
MDF(config)#interface FastEthernet0/2
MDF(config-if)#ip address 10.6.63.254 255.255.224.0
MDF(config-if)#
MDF(config-if)#exit
MDF(config)#interface FastEthernet0/3
MDF(config-if)#ip address 10.6.95.254 255.255.224.0
MDF(config-if)#
MDF(config-if)#exit
MDF(config)#interface FastEthernet0/4
MDF(config-if)#ip address 10.6.128.126 255.255.224.0
MDF(config-if)#
添加路线后
IDF1(config)#ip route 10.6.32.0 255.255.224.0 fa0/24
和
IDF23(config)#ip route 10.6.0.0 255.255.224.0 fa0/24
IDF23(config)#end
IDF23#
%SYS-5-CONFIG_I: Configured from console by console
IDF23#
IDF23#
IDF23#ping 10.6.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.6.0.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)