cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4366
Views
23
Helpful
18
Replies

Router on Stick (I can't do Inter Vlan communication)

bravealikhan
Level 1
Level 1

Hello,

I wanted to configure Router on Stick. But I can't inter communicate in two vlans, both vlans can ping their own default gateways but can't ping each other default getways. I'll appreciate if some one plz help me that were im doing mistake so i'm not be able to do inter vlan communication?

I'm using Cisco Switch 2950 and Cisco Router 3660.

I can ping the default gateway of my 172.12.2.1

But I can't ping the other vlan's default geteway 172.12.4.1

The configuration of my router and switch are:

Router # show run

version 12.2

!

hostname Router

interface FastEthernet0/0

no ip address

duplex auto

speed auto

!

interface FastEthernet0/0.2

encapsulation dot1Q 2

ip address 172.12.2.1 255.255.255.0

!

interface FastEthernet0/0.4

encapsulation dot1Q 4

ip address 172.12.4.1 255.255.255.0

!

Router#show interface fa0/0

FastEthernet0/0 is up, line protocol is up

Hardware is AmdFE, address is 000d.281c.64a0 (bia 000d.281c.64a0)

MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation 802.1Q Virtual LAN, Vlan ID 1., loopback not set

Keepalive set (10 sec)

Switch#show inter trunk

Port Mode Encapsulation Status Native vlan

Fa0/1 on 802.1q trunking 1

Port Vlans allowed on trunk

Fa0/1 1-4094

Port Vlans allowed and active in management domain

Fa0/1 1-2,4

Port Vlans in spanning tree forwarding state and not pruned

Fa0/1 1-2,4

Switch#show vlan bri

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/3, Fa0/5, Fa0/6, Fa0/7

Fa0/8, Fa0/9, Fa0/10, Fa0/11

Fa0/12

2 VLAN0002 active Fa0/2

4 VLAN0004 active Fa0/4

Switch#show interface fa0/2

FastEthernet0/2 is up, line protocol is up (connected)

Hardware is Fast Ethernet, address is 000b.5fde.d0c2 (bia 000b.5fde.d0c2)

MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

Keepalive set (10 sec)

Full-duplex, 100Mb/s, media type is 100BaseTX

Switch#show interface fa0/4

FastEthernet0/4 is up, line protocol is up (connected)

Hardware is Fast Ethernet, address is 000b.5fde.d0c4 (bia 000b.5fde.d0c4)

MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

Keepalive set (10 sec)

Full-duplex, 100Mb/s, media type is 100BaseTX

C:\>ping 172.12.2.1

Pinging 172.12.2.1 with 32 bytes of data:

Reply from 172.12.2.1: bytes=32 time=2ms TTL=255

Reply from 172.12.2.1: bytes=32 time=1ms TTL=255

Reply from 172.12.2.1: bytes=32 time<1ms TTL=255

Reply from 172.12.2.1: bytes=32 time<1ms TTL=255

Ping statistics for 172.12.2.1:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 2ms, Average = 0ms

C:\>ping 172.12.4.1

Pinging 172.12.4.1 with 32 bytes of data:

Request timed out.

Request timed out.

Request timed out.

Request timed out.

Ping statistics for 172.12.4.1:

Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

Thank you

Regards

Ali

18 Replies 18

Hi Lads!

My issue has been resolved, as you all urged me that the configuration seems fine and everything is ok.

The main problem was Windows Vista Business Edition :(

I have had already disable my Vista firewall and Norton 360 firewall and I was thinking that I can now ping anything but I was wrong.

In the last when I put my another laptop with Windows XP professional and tried to ping two VLAN's default gateways and I was just surprised to saw that its pinging without any problem  I can ping all the Vlan configured interfaces with XP but can't ping via Vista… its very strange :(

I also tried to configured windows vista's Windows Firewall & Advanced security and allowed inbound and outbound ICMPv4 packets but that didn't help as well. Any ways.

I would like to say a Millions Thanks for all of you friends who helped me to find out this issue.

God Bless You,

Many regards

Muhammad Ali

Glad to hear, and thanks for reporting back.

I am curious, did you try this on the Vista machine?

http://blogs.msdn.com/p2p/archive/2007/07/03/ping.aspx

Just wondering if it would of worked:

For ICMPv4:

netsh advfirewall firewall add rule name="ICMPv4 Inbound" dir=in action=allow enable=yes profile=any localip=any remoteip=any protocol=icmpv4:8,any interfacetype=any edge=yes

For ICMPv6:

netsh advfirewall firewall add rule name="ICMPv6 Inbound" dir=in action=allow enable=yes profile=any localip=any remoteip=any protocol=icmpv6:128,any interfacetype=any edge=yes

Ya i followed the steps that are given in that link, such as i im using IPv4 so make a policy that allow me to snd and receive ICMP packets on Visa 64-bit Business Edition that im using, but after that i could't ping, then i tried that with XP laptop and just surprisd that i was doing ping to every interface i configured,

i still don't know y i can't ping from vista, i also chck some Event viwer errors but coudn't find any relavent problem that would help me to sort that out that way im unable to ping once i have alrday disable my firewalls and also allowed inbound & outbond icmp v 4 packets.

Review Cisco Networking products for a $25 gift card