我在 D-Link (DGS 1210) 交换机上进行简单的 VLAN 配置时遇到问题。
D-Link 交换机上有端口 24,它连接到 Cisco 路由器。这基本上需要是一个中继,因为它将携带多个 VLAN。配置如下。
Router#sh run
Building configuration...
Current configuration : 1450 bytes
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
cts logging verbose
!
!
license udi pid CISCO1941/K9 sn FCZ193991KJ
!
!
!
redundancy
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 130.1.70.70 255.255.0.0
ip nat inside
ip virtual-reassembly in
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/1.110
encapsulation dot1Q 110
ip address 10.1.110.1 255.255.255.0
!
interface GigabitEthernet0/1.120
encapsulation dot1Q 120
ip address 10.1.120.1 255.255.255.0
!
interface GigabitEthernet0/1.130
encapsulation dot1Q 130
ip address 10.1.130.1 255.255.255.0
ip nat outside
ip virtual-reassembly in
!
interface GigabitEthernet0/1.140
encapsulation dot1Q 140
ip address 192.168.140.1 255.255.255.0
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
!
!
access-list 1 permit any
!
control-plane
!
!
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
login
transport input none
!
scheduler allocate 20000 1000
!
end
Router#
在 D-Link 交换机上,我正在配置 802.1Q 非对称 VLAN,但没有成功。我的配置如下。
交换机上的端口 2 将连接我的 PC(配置了正确的 IP 地址)。但是我无法 ping 网关 192.168.140.1
我错过了什么还是配置不正确?