cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
292
Views
0
Helpful
1
Replies

Inter Vlan Communication

sivi143
Level 1
Level 1

Hi All!! Hope Yoou are fine

though i have completed my ccna, i have this doubt in my mind always!!

iam working in packet tracer

iam having two 2950t switches , say s1 and s2

s1 is connected with s2 throu cross over cable, whereas s1 is connected with two hosts computers

s2 is also connected in the same way( hosts computers are h1 and h2 for s1 , and h3 and h4 for s2)

i have a router 1841 which is directly connected with s1

i need to perform inter vlan routing

the only doubt for me is how to configure trunks on both switches, i have a ping probelm between s1 and s2, but when i ping from router to all hosts its pinging,

note that s1 is of vlan2 and s3 is of vlan 3

i have tried switch port mode access command but it always fail to ping,

im really frustrated with these kinda scenario...

help me out

1 Reply 1

John Blakley
VIP Alumni
VIP Alumni

I don't have access to packet tracer, so I'm going to have to answer this without seeing your topology.

If you have 2950 switches, I'm assuming those are L2 switches. That being said, in order to do intervlan routing, you'll need something to route between the vlans be it a L3 switch or a router. In your scenario, you have a L2 switch and a router, so we'll configure the vlans on the router:

int fa0/0

ip address 192.168.1.1 255.255.255.0

int fa0/0.2

encapsulation dot1q 2

ip address 192.168.2.1 255.255.255.0

int fa0/0.3

encapsulation dot1q 3

ip address 192.168.3.1 255.255.255.0

If you have the router connected to port 1 on S1, you'll need to have the vlans on this switch:

vlan 1, 2, 3

int fa0/1 (router connected to port)

switchport mode trunk

(Trunk ports allow all vlans by default)

Between the switches, say on port 48, you'll need to trunk the ports too.

On S1 and S2 port 48:

int fa0/48

switchport mode trunk

On S2 create the vlans:

vlan 1,2,3

on your host on S3, add it to vlan 3 as a test:

int fa0/10 (supposing it's on port 10)

switchport mode access

switchport access vlan 3

On S2 host, add it to vlan 2:

int fa0/5 (supposing it's on port 5)

switchport mode access

switchport access vlan 2

You should be able to ping from host on S3 to host on S2 and vice versa, but you have to have the router configured as above. The two hosts on the switches will have their respective addresses in the subnet that's attached to the vlan:

Host on S2

IP: 192.168.2.100 /24

GW: 192.168.2.1

Host on S3

IP: 192.168.3.100 /24

GW: 192.168.3.1

HTH,
John

*** Please rate all useful posts ***

HTH, John *** Please rate all useful posts ***
Review Cisco Networking for a $25 gift card