cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1643
Views
0
Helpful
3
Replies

How to assign VLANs?

microfeel
Level 1
Level 1

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.

3 Replies 3

John Blakley
VIP Alumni
VIP Alumni

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

jszapipes
Level 1
Level 1

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

microfeel
Level 1
Level 1

The subject is closed. Everybody thank!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: