Cisco Support Community
cancel
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 192.168.2.2 255.255.255.0

interface GigabiteEthernet0/1.2

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.

Everyone's tags (3)
3 REPLIES

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 192.168.1.0/24 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!

1313
Views
0
Helpful
3
Replies
CreatePlease to create content