我正在尝试通过 PT 连接几台 PC,混合使用 VLAN 和物理连接。我已设法 ping 2 台不同的 PC,但无法 ping 交换机、路由器或任何子路由。
这是IP地址的详细信息
192.168.50.15
255.255.255.0
192.168.10.1
这是交换机 B 上端口的设置
Using 2764 bytes
!
version 12.1
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 50
switchport trunk allowed vlan 1-99
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 50
switchport mode access
(这与 Fa0/12 相同)
interface FastEthernet0/13
switchport access vlan 80
switchport mode access
(这对于 24 之前的所有端口都是相同的)
interface GigabitEthernet0/1
switchport trunk allowed vlan 1-99
switchport mode trunk
!
interface GigabitEthernet0/2
switchport access vlan 32
switchport trunk allowed vlan 1-99
switchport mode trunk
!
interface Vlan1
ip address 192.168.70.1 255.255.255.0
!
interface Vlan50
mac-address 0002.4a18.6202
ip address 192.168.50.1 255.255.255.0
!
interface Vlan99
mac-address 0002.4a18.6203
ip address 192.168.99.2 255.255.255.0
!
ip default-gateway 192.168.10.1
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
end
这是交换机 A 上端口的设置
Building configuration...
Current configuration : 2762 bytes
!
version 12.1
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 50
switchport trunk allowed vlan 1-99
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 50
switchport mode access
(这与 fa0/12 相同)
interface FastEthernet0/13
switchport access vlan 80
switchport mode access
(这对所有端口都相同,直到 24)
interface GigabitEthernet0/1
switchport trunk allowed vlan 1-99
switchport mode trunk
!
interface GigabitEthernet0/2
switchport access vlan 32
switchport trunk allowed vlan 1-99
switchport mode trunk
!
interface Vlan1
ip address 192.168.1.1 255.255.255.0
!
!
interface Vlan50
mac-address 0001.64db.c002
ip address 192.168.50.1 255.255.255.0
!
interface Vlan99
mac-address 0001.64db.c003
ip address 192.168.99.1 255.255.255.0
!
ip default-gateway 192.168.10.1
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
!
!
end
这是路由器的详细信息
Current configuration : 1289 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
ip dhcp pool SERVICEPOOL
network 192.168.50.0 255.255.255.0
default-router 192.168.10.1
ip dhcp pool STUDENTPOOL
dns-server 8.8.8.8
domain-name STUDENTPOOL
ip dhcp pool ADMINPOOL
network 192.168.80.0 255.255.255.0
default-router 192.168.10.1
dns-server 8.8.8.8
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2901/K9 sn FTX1524S0XS
!
!
!
!
!
spanning-tree mode pvst
!
!
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1
ip address 192.168.10.1 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1.5
no ip address
!
interface GigabitEthernet0/1.50
encapsulation dot1Q 50
ip address 192.168.50.1 255.255.255.0
!
interface GigabitEthernet0/1.80
encapsulation dot1Q 80
ip address 192.168.89.254 255.255.255.0
!
interface Serial0/0/0
no ip address
clock rate 2000000
shutdown
!
interface Serial0/0/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
ip flow-export version 9
!
!
!
no cdp run
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
end
这是网络图
我确实设法找到了原始问题的一部分的解决方案,但我对其余部分感到困惑。
提前致谢