I set up router and switch to check vlan routing. below is the configuration I made. but ping is not successd.
could you please tell me what's wrong with my config?
no ip address
encapsulation dot1Q 2
ip address 10.43.2.1 255.255.255.0
encapsulation dot1Q 6
ip address 10.43.6.1 255.255.255.0
switchport access vlan 2
switchport mode access
switchport mode trunk
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.43.2.1, timeout is 2 seconds:
Success rate is 0 percent (0/5)