问题描述:
路由器接一个H3C核心交换机A(三层),其中2个端口分别接了一个三层交换机B(端口配置为trunk口vlan all)和普通交换机C(未配置)。
交换机B下面接PC1,交换机C下面接考勤机K2,PC1所在VLAN为100(网关192.168.100.1),K2所在VLAN规划在200(网关192.168.200.1)。如何实现PC1访问K2?
组网及组网描述:
部分配置如下:
dis cu
#
version 5.20, Release 2222P08
#
sysname CoreSwitch
#
vlan 1
#
vlan 100
description
#
vlan 200
description
#
interface Vlan-interface1
ip address 192.168.1.1 255.255.255.0
#
interface Vlan-interface100
ip address 192.168.100.1 255.255.255.0
#
interface Vlan-interface200
ip address 192.168.200.1 255.255.255.0
#
interface GigabitEthernet1/0/2
port access vlan 200
#
interface GigabitEthernet1/0/19
port link-type trunk
port trunk permit vlan all
#
interface GigabitEthernet1/0/47
port link-type trunk
port trunk permit vlan all
#
#
ip route-static 0.0.0.0 0.0.0.0 192.168.1.254
ip route-static 0.0.0.0 255.255.255.0 218.17.23.90
ip route-static 192.168.100.0 255.255.255.0 192.168.1.254
#
port link-type trunk port trunk permit vlan all