02-19-2010 03:41 PM - edited 03-06-2019 09:48 AM
Hi,
I am currently preparing for my CCNA and am having a lot of difficulty in getting inter vlan routing to work. I managed to get it up and running quite easily using a simulator but I am having issues when using real equipment.
I have a single 2950 switch connected from 'fastethernet 0/1' to 'fastethernet 0/0' on a 2621XM (12.4) router. I have two pc's connected to fastethernet 0/7 & 8 on the switch.
I have followed some standard instructions found on the net but can someone please explain the following before I go jump off a cliff!
PC1 (10.0.2.100/24) can ping its default gateway (10.0.2.2/24).
PC2 (10.0.1.100/24) can ping its own default gateway (10.0.1.2/24) as well as PC1's default gateway (10.0.2.2/24).
The router can ping PC1 and PC2.
Both PC's cannot ping each other!
All I want is the two PCs to be able to ping each other.
Any help is much appreciated
Cheers
Raf
Please find configs and other stuff below:
Config for router
===========
Using 950 out of 29688 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname ROUTER_A
!
boot-start-marker
boot system flash:c2600-advsecurityk9-mz.124-15.T9.bin
boot-end-marker
!
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
!
multilink bundle-name authenticated
!
!
!
!
!
archive
log config
hidekeys
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.0.2.2 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 10.0.1.2 255.255.255.0
!
interface Serial0/0
no ip address
shutdown
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
!
no ip forward-protocol nd
!
!
ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end
Config for Switch
============
Using 1829 out of 32768 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname SWITCHa
!
enable secret 5 $1$yymb$0MAHtzrTsrJe8wIyPfKtr/
enable password cent
!
username raf password 0 csas
ip subnet-zero
!
ip domain-name cisco.com
ip ssh time-out 120
ip ssh authentication-retries 3
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security mac-address sticky 0016.360b.a1d4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/8
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface FastEthernet0/25
!
interface FastEthernet0/26
!
interface Vlan1
ip address 20.0.1.1 255.255.255.0
no ip route-cache
!
ip http server
banner login ^CMy lab^C
!
line con 0
password 7 110A1016141D5A5E57
logging synchronous
login local
line vty 0 4
password cisco
login local
transport input telnet ssh
line vty 5 15
password cisco
login local
transport input telnet ssh
!
!
end
Output from ip route
===============
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 2 subnets
C 10.0.2.0 is directly connected, FastEthernet0/0.10
C 10.0.1.0 is directly connected, FastEthernet0/0.20
Vlan brief
=======
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5
Fa0/6, Fa0/9, Fa0/10, Fa0/11
Fa0/12, Fa0/13, Fa0/14, Fa0/15
Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24, Fa0/25, Fa0/26
10 net1 active Fa0/7
20 net2 active Fa0/8
Solved! Go to Solution.
02-20-2010 02:32 AM
Here is out from 'sh vlans' on router, if its any use:
==========================
Virtual LAN ID: 1 (IEEE 802.1Q Encapsulation)
vLAN Trunk Interface: FastEthernet0/0
This is configured as native Vlan for the following interface(s) :
FastEthernet0/0
Protocols Configured: Address: Received: Transmitted:
Other 0 165
84 packets, 15768 bytes input
165 packets, 11955 bytes output
Virtual LAN ID: 10 (IEEE 802.1Q Encapsulation)
vLAN Trunk Interface: FastEthernet0/0.10
Protocols Configured: Address: Received: Transmitted:
IP 10.0.2.2 8 11
Other 0 4
8 packets, 1286 bytes input
15 packets, 1042 bytes output
Virtual LAN ID: 20 (IEEE 802.1Q Encapsulation)
vLAN Trunk Interface: FastEthernet0/0.20
Protocols Configured: Address: Received: Transmitted:
IP 10.0.1.2 27 8
Other 0 6
27 packets, 3432 bytes input
14 packets, 900 bytes output
02-20-2010 02:33 AM
Yes, unfortunatley still got the issue.
02-20-2010 02:37 AM
rafcisco101 wrote:
Yes, unfortunatley still got the issue.
I cannot see an issue with the config. Can you try this and see what happens -
on the 2950
int fa0/1
switchport trunk native vlan 10
on the router
int fa0/0.10
encapsulation dot1q 10 native
and try again
Jon
02-20-2010 02:48 AM
still not working, do you think there is any merit in clearing down both configs and starting again?
02-20-2010 03:04 AM
rafcisco101 wrote:
still not working, do you think there is any merit in clearing down both configs and starting again?
Might be worth a try. It's weird because your config looks fine and PC2 seems to be working okay. It is PC1 that is having issues.
If you do start over when you configure the trunk link on the 2950 can you do this -
int fa0/1
switchport mode trunk
switch trunk allowed vlan 10,20
don't bother with the native stuff i just sent when you redo the router.
I don't suppose you have a different PC you could use other than PC1 ?
Jon
02-20-2010 03:20 AM
I very much appreciate the assistance you have given me. I will try another pc before starting afresh.
Will keep you posted mate.
Cheers
Raf
02-20-2010 04:33 AM
Hi,
I swapped PC1 for a different PC and hey presto it worked. Both PC's can ping each other. Cheers for your help mate.
Now I just have to try and figure out whats wrong with PC1. I have disabled firewall, but no luck so far.
Once again cheers
Raf
02-20-2010 04:43 AM
Hi,
Just to let you know, it was the network card in PC1 that was the issue, I swapped it to use the onboard LAN and all worked fine.
I'm not sure if I should shot the card in the bin.
Kind Regards
Raf
02-20-2010 07:57 AM
rafcisco101 wrote:
Hi,
Just to let you know, it was the network card in PC1 that was the issue, I swapped it to use the onboard LAN and all worked fine.
I'm not sure if I should shot the card in the bin.
Kind Regards
Raf
Raf
Glad you got it working after all that.
As for the card, post it to me, i will gladly take a hammer to it
Jon
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: