Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
Community Member

How to assign VLANs?

I have config like that, for Cisco router:

interface GigabiteEthernet0/0.2

encapsulation dot1Q 2

ip address

interface GigabiteEthernet0/1.2

encapsulation dot1Q 2 native

ip address


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 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.

Everyone's tags (3)

Re: How to assign VLANs?

Can you ping the ISP router from this router? Can you post:

show vlan-switc

Also, what type of router is this? And do you have the linux server on the subnet?

HTH, John *** Please rate all useful posts ***
Community Member

Re: How to assign VLANs?

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

Community Member

How to assign VLANs?

The subject is closed. Everybody thank!

CreatePlease to create content