I am having an issue doing a simple VLAN configuration on a D-Link (DGS 1210) switch.
There is port 24 on the D-Link switch which is connected to a Cisco router. Which basically needs to be a Trunk as it will carry several VLANs. The configuration is as follows.
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#
On the D-Link switch I am configuring the 802.1Q Asymmetric VLAN without any success. My configuration is as follows.
Port 2 on the switch is where my PC (configured with the proper IP Address) will be connected. I am however unable to ping the gateway 192.168.140.1
Have I missed anything or is the configuration incorrect?
192.168.140.1
. Also, VLAN 1 needs to be excluded from port 2 on the switch. Having both VLAN 1 and VLAN 140 untagged on the same switch interface will cause problems.