cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
350
Views
5
Helpful
6
Replies

Vlan connectivity issue

mirzamubbashir
Level 1
Level 1

I made two vlans on 2950 vlan 1 (by default) and vlan 2 which i made it.

vlan 1 ip address is 192.168.1.1/24 and vlan 2 ip address is 192.168.2.1/24.

i have connected 2 PC's one in vlan 1 which has ip address 192.168.1.10/24 and second in vlan 2 which has ip adress 192.168.2.10/24 .PC one can ping vlan 1 but PC 2 cannot ping vlan 2 which is 192.168.2.1..

also how i make a trunk b/w switch and router..does any body give me sample configuration .

6 Replies 6

pkhatri
Level 11
Level 11

What router are you using for your inter-vlan routing ? Can you post the config that you have on the router ?

Paresh

hi,

i am using 3600 series router but i think this not the router end problem because i just made a simple vlan on 2950 and add 1 port in it and connect the PC on that port ,i simply ping from PC to switch vlan IP and it did'nt happened.!

Let me guess... you assigned the address 192.168.1.1 to interface VLAN1 on the switch and this is the address you can ping from the PC in VLAN 1. The reason this works is that this address now becomes part of the management VLAN for the switch.

To configure the link between the router and the switch, do the following:

On the switch:

interface fastethernet 0/10

! change the interface number to the interface that connects to the router

switchport mode trunk

On the router:

interface fastethernet 0/0.2

! change the interface number to the interface that connects to the switch

encapsulation dot1q 2

ip address 192.168.2.1 255.255.255.0

Then, you should be able to ping the 192.168.2.1 from the PC in vlan 2.

Pls do rate the posts to show your appreciation for people who take the time to help you solve your issues.

Paresh

glen.grant
VIP Alumni
VIP Alumni

You can only have 1 ip address on a 2950 switch, this is used to manage the switch only. This is a layer 2 switch and cannot route between vlans . If you did a show ip int brief you would see that one interface is up and the other is down , this is by design . You need a router or l2/3 switch to route between vlans..

Thanx a million .so u said that in 2950 we can create actually by default it is only 1 vlan and we only give IP on it but what if we want to create another vlan and assign IP address.

Hello,

in case you need inter-VLAN routing one option is to get a router connected through a trunk to the 2950. The router will have one IP per VLAN subinterface. Or you get a L3-switch like the 3560, 3750 and so on.

Hope this helps! Please rate all posts.

Regards, Martin