cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2509
Views
5
Helpful
17
Replies

ROAS, Couldnt ping between VLANS help

givencodes
Level 1
Level 1

im trying to set up a new network back at the office but im having problems communicating between vlans.

i hav one router(cisco 1941) and a switch (cisco catalyst 2960g). im using the router on a stick method.

i have two vlans on the switch and i have done everything according to instructions but i still cant ping from one vlan to another. the hosts in the vlan can ping the switch, router and a;; gateways but just not other hosts.

the weird part is that the same configurations works fine in packet tracer.

here are my configurations. just check them and lemme knw where i went wrong.

FROM THE SWITCH

Current configuration : 2180 bytes
!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
system mtu routing 1500
ip subnet-zero
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
spanning-tree vlan 1-1005 priority 4096
!
vlan internal allocation policy ascending
!
!
!
interface GigabitEthernet0/1
switchport trunk allowed vlan 1,10,20
switchport mode trunk
!
interface GigabitEthernet0/2
switchport access vlan 10
switchport mode access
!
interface GigabitEthernet0/3
switchport access vlan 20
switchport mode access
!
interface GigabitEthernet0/4
switchport mode access
!
interface GigabitEthernet0/5
switchport mode access
!
interface GigabitEthernet0/6
switchport mode access
!
interface GigabitEthernet0/7
switchport mode access
!
interface GigabitEthernet0/8
switchport mode access
!
interface GigabitEthernet0/9
switchport mode access
!
interface GigabitEthernet0/10
switchport mode access
!
interface GigabitEthernet0/11
switchport mode access
!
interface GigabitEthernet0/12
switchport mode access
!
interface GigabitEthernet0/13
switchport mode access
!
interface GigabitEthernet0/14
switchport mode access
!
interface GigabitEthernet0/15
switchport mode access
!
interface GigabitEthernet0/16
switchport mode access
!
interface GigabitEthernet0/17
switchport mode access
!
interface GigabitEthernet0/18
switchport mode access
!
interface GigabitEthernet0/19
switchport mode access
!
interface GigabitEthernet0/20
switchport mode access
!
interface GigabitEthernet0/21
switchport mode access
!
interface GigabitEthernet0/22
switchport mode access
!
interface GigabitEthernet0/23
switchport mode access
!
interface GigabitEthernet0/24
switchport mode access
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
interface Vlan10
ip address 192.168.10.2 255.255.255.0
no ip route-cache
!
interface Vlan20
ip address 192.168.20.2 255.255.255.0
no ip route-cache
!
ip default-gateway 192.168.10.1
ip http server
ip http secure-server
!
control-plane
!
!
line con 0
line vty 5 15
!
end

FROM THE ROUTER:
Router#show run
Building configuration...

Current configuration : 1251 bytes
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
ip cef
!
!
!
!
!
!
no ipv6 cef
multilink bundle-name authenticated
!
!
!
license udi pid CISCO1941/K9 sn FGL17152230
!
!
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/0.10
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/1.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface GigabitEthernet0/1.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
login
transport input all
!
scheduler allocate 20000 1000
!
end

17 Replies 17

i meant any client in other vlan can ping a host in vlan 10. but not vice versa

Right so you can -

from a PC in vlan 20 you can ping a host in vlan 10

but you can't

from a PC in vlan 10 ping a host in vlan 20

If so, can you ping the vlan 20 interface from the vlan 10 PC ?

If you can then it has to be an issue with the vlan 20 PC.

What happens if you swap the PCs around ie. change their IPs and default gateway and move them into each others ports on the switch ?

Jon

It's later over here so i'll pick this up tomorrow if no one else does.

Sorry it's taking so long to get working.

Jon

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:

Review Cisco Networking products for a $25 gift card