CISCO 配置。DHCP 和 VLAN 已配置。但无法 ping 其他 VLAN 客户端

CISCO 配置。DHCP 和 VLAN 已配置。但无法 ping 其他 VLAN 客户端

我已经使用 CISCO Packet Tracer 创建了一个网络测试实验室。我已执行以下操作以使 DHCP 和 VLAN(使用 Trucking)正常工作:

  1. 配置的路由器接口(g0/0 + g0/0.10-0.50)
  2. 在路由器上配置 DHCP 设置
  3. 路由器上启用中继
  4. 在交换机上配置 VLAN
  5. 交换机上启用中继

下面我发布了路由器和交换机的>运行演示<。工作站可以获得 DHCP IP 地址,并且 VLAN 隔离正在运行。

工作站可以 ping 路由器,但无法 ping 单独 VLAN 网络上的其他工作站。

路由器配置

shanelab#show run
Building configuration...

Current configuration : 2184 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname shanelab
!
!
!
enable secret 5 $1$mERr$xqDCepYvK4SAD6V0cxKQ3.
!
!
ip dhcp excluded-address 192.168.10.1 192.168.10.10
ip dhcp excluded-address 192.168.20.1 192.168.20.10
ip dhcp excluded-address 192.168.30.1 192.168.30.10
ip dhcp excluded-address 192.168.40.1 192.168.40.10
ip dhcp excluded-address 192.168.50.1
ip dhcp excluded-address 192.168.60.1
ip dhcp excluded-address 192.168.50.1 192.168.50.10
ip dhcp excluded-address 192.168.60.1 192.168.60.10
!
ip dhcp pool ITC
 network 192.168.10.0 255.255.255.0
 default-router 192.165.10.1
ip dhcp pool Manuf
 network 192.168.20.0 255.255.255.0
 default-router 192.168.20.1
ip dhcp pool billing
 network 192.168.30.0 255.255.255.0
 default-router 192.168.30.1
ip dhcp pool sales
 network 192.168.40.0 255.255.255.0
 default-router 192.168.40.1
ip dhcp pool HR
 network 192.168.50.0 255.255.255.0
 default-router 192.168.50.1
ip dhcp pool Management
 network 192.168.60.0 255.255.255.0
 default-router 192.168.60.1
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX1524KDLE-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/0.10
 encapsulation dot1Q 10
 ip address 192.168.10.1 255.255.255.0
!
interface GigabitEthernet0/0.20
 encapsulation dot1Q 20
 ip address 192.168.20.1 255.255.255.0
!
interface GigabitEthernet0/0.30
 encapsulation dot1Q 30
 ip address 192.168.30.1 255.255.255.0
!
interface GigabitEthernet0/0.40
 encapsulation dot1Q 40
 ip address 192.168.40.1 255.255.255.0
!
interface GigabitEthernet0/0.50
 encapsulation dot1Q 50
 ip address 192.168.50.1 255.255.255.0
!
interface GigabitEthernet0/0.60
 encapsulation dot1Q 60
 ip address 192.168.60.1 255.255.255.0
!
interface GigabitEthernet0/1
 no ip address
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
ip classless

shanelab#
shanelab#

交换机配置

Switch#show run
Building configuration...

Current configuration : 1385 bytes
!
version 15.0
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
 switchport access vlan 10
 switchport mode access
!
interface FastEthernet0/2
 switchport access vlan 20
 switchport mode access
!
interface FastEthernet0/3
 switchport access vlan 30
 switchport mode access
!
interface FastEthernet0/4
 switchport access vlan 40
 switchport mode access
!
interface FastEthernet0/5
 switchport access vlan 50
 switchport mode access
!
interface FastEthernet0/6
 switchport access vlan 60
!
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
 switchport mode trunk
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
 no ip address
 shutdown
!
!
!
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
!
!
!
end


Switch#

答案1

我觉得你的配置没什么问题。你可以在 ping 时使用模拟模式来确定 ICMP 数据包发生了什么。

相关内容