嗨,这是我有史以来第一个问题,希望我能得到答案。
我正在为大学项目创建此网络。 到目前为止,我已经在总部建立了4个VLAN,在另一个办公室建立了一个VLAN。 有VLAN 11,22,33,44,55。 我已经在总公司设置了中继线,并在整个网络上进行了eigrp路由。
当我尝试从主网络ping到另一个网络时,它只是说目标主机不可达,并停留在vlan ip或子接口ip。
这是我设备的配置 R1
Building configuration...
Current configuration : 1892 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX1524F7V1
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.11
encapsulation dot1Q 11
ip address 172.31.0.254 255.255.255.0
!
interface GigabitEthernet0/0.22
encapsulation dot1Q 22
ip address 172.31.1.126 255.255.255.128
!
interface GigabitEthernet0/0.33
encapsulation dot1Q 33
ip address 172.31.1.190 255.255.255.192
!
interface GigabitEthernet0/0.44
encapsulation dot1Q 44
ip address 172.31.1.254 255.255.255.192
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/1.11
encapsulation dot1Q 11
no ip address
!
interface GigabitEthernet0/1.22
encapsulation dot1Q 22
no ip address
!
interface GigabitEthernet0/1.33
encapsulation dot1Q 33
no ip address
!
interface GigabitEthernet0/1.44
encapsulation dot1Q 44
no ip address
!
interface FastEthernet0/0/0
switchport mode trunk
!
interface FastEthernet0/0/1
switchport mode access
!
interface FastEthernet0/0/2
switchport mode access
!
interface FastEthernet0/0/3
switchport mode access
!
interface Serial0/1/0
bandwidth 50
ip address 172.31.2.57 255.255.255.252
clock rate 128000
!
interface Serial0/1/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
router eigrp 10
network 172.31.0.0 0.0.0.255
network 172.31.1.0 0.0.0.127
network 172.31.1.128 0.0.0.63
network 172.31.1.192 0.0.0.63
network 172.31.2.56 0.0.0.3
network 172.31.2.32 0.0.0.15
!
ip classless
ip route 0.0.0.0 0.0.0.0 Serial0/1/0
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
SWITCH_CORE
Current configuration : 2066 bytes
!
version 12.2(37)SE1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname SWITCH_CORE
!
!
!
!
!
!
ip routing
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/1
description TO_SWITCH_1
switchport trunk encapsulation dot1q
!
interface FastEthernet0/2
description TO_SWITCH_2
switchport trunk encapsulation dot1q
!
interface FastEthernet0/3
description TO_SWITCH_2
switchport trunk encapsulation dot1q
!
interface FastEthernet0/4
switchport trunk encapsulation dot1q
switchport mode trunk
!
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
!
interface GigabitEthernet0/1
no switchport
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
!
interface Vlan11
mac-address 00d0.9763.1401
ip address 172.31.0.254 255.255.255.0
!
interface Vlan22
mac-address 00d0.9763.1402
ip address 172.31.1.126 255.255.255.128
!
interface Vlan33
mac-address 00d0.9763.1403
ip address 172.31.1.190 255.255.255.192
!
interface Vlan44
mac-address 00d0.9763.1404
ip address 172.31.1.254 255.255.255.192
!
router eigrp 1
auto-summary
!
router eigrp 10
network 172.31.0.0 0.0.0.255
network 172.31.0.0
auto-summary
!
ip classless
ip route 172.31.2.0 255.255.255.224 GigabitEthernet0/1
ip route 0.0.0.0 0.0.0.0 GigabitEthernet0/1
ip route 172.31.2.0 255.255.255.224 172.31.2.41
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
路由器1
Building configuration...
Current configuration : 1016 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX1524LL16
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
ip address 172.31.2.30 255.255.255.224
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
no ip address
clock rate 2000000
!
interface Serial0/0/1
no ip address
clock rate 2000000
shutdown
!
interface Serial0/1/0
bandwidth 50
ip address 172.31.2.58 255.255.255.252
!
interface Serial0/1/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
router eigrp 10
network 172.31.2.0 0.0.0.31
network 172.31.2.56 0.0.0.3
!
ip classless
ip route 0.0.0.0 0.0.0.0 Serial0/0/0
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
如果您还有其他需要,请告诉我。 另外还要注意eigrp路由正在工作,并且正在填充路由表,它只是不会让WAN认为任何事情。
更新:发现我可以从较小的网络ping较大的网络上的所有PC。必须很容易解决!也许子接口和VLAN的IP是相同的?
谢谢!