I have config like that, for Cisco router:
encapsulation dot1Q 2
ip address 192.168.2.2 255.255.255.0
encapsulation dot1Q 2 native
ip address 192.168.1.1 255.255.255.0
ip 0.0.0.0 0.0.0.0 192.168.2.1
The linux box is connected to the G0/1.2 port which assigned to Native VLAN 2. Another G0/0.2 port assigned VLAN 2 and is connected to the ISP router. The router has 192.168.2.1 IP address. Interfaces G0/0 and G0/1 have setting by default (VLAN 1 native).
While I send ping request from the linux box it can’t reach to the ISP gateway.
What’s wrong in my config? I guess I’m not clear about L2.
Can you ping the ISP router from this router? Can you post:
Also, what type of router is this? And do you have the linux server on the 192.168.1.0/24 subnet?
Have you verified vlan 2 exists on the switch? Your port config states vlan 2 and your sub interfaces on the router specify dot1q 2, but if you issue the command "show vlan brief" on the switch do you see vlan 2?
Sent from Cisco Technical Support iPhone App