01-18-2013 02:32 PM - edited 03-07-2019 11:10 AM
Hello, I have setup 'router on a stick' VLANs between a switch and a router, however I cannot seem to ping from a PC to the different VLAN interfaces on the router. I can only ping to the router interface of the specific VLAN my PC is conected to on the switch. I am using three VLANs (99, 100, 200).
As an example, if my PC is connected to the swtich port for VLAN 99, it can only ping the VLAN 99 interface 192.168.1.99 and cannot ping to 192.168.200.1 (router interface of VLAN 200).
Could anyone please advise what I am doing wrong here ?
Thank you kindly.
Here is my switch config:
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
!
ip subnet-zero
ip routing
no ip domain-lookup
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
!
interface FastEthernet0/1
no ip address
!
interface FastEthernet0/2
no ip address
!
interface FastEthernet0/3
no ip address
!
interface FastEthernet0/4
no ip address
!
interface FastEthernet0/5
no ip address
!
interface FastEthernet0/6
no ip address
!
interface FastEthernet0/7
no ip address
!
interface FastEthernet0/8
no ip address
!
interface FastEthernet0/9
switchport access vlan 99
switchport mode access
no ip address
!
interface FastEthernet0/10
no ip address
!
interface FastEthernet0/11
no ip address
!
interface FastEthernet0/12
no ip address
!
interface FastEthernet0/13
no ip address
!
interface FastEthernet0/14
no ip address
!
interface FastEthernet0/15
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
!
interface FastEthernet0/16
no ip address
!
interface FastEthernet0/17
switchport access vlan 200
switchport mode access
switchport voice vlan 100
no ip address
spanning-tree portfast
!
interface FastEthernet0/18
switchport access vlan 200
switchport mode access
switchport voice vlan 100
no ip address
spanning-tree portfast
!
interface FastEthernet0/19
no ip address
!
interface FastEthernet0/20
no ip address
!
interface FastEthernet0/21
no ip address
!
interface FastEthernet0/22
no ip address
!
interface FastEthernet0/23
no ip address
!
interface FastEthernet0/24
no ip address
!
interface GigabitEthernet0/1
no ip address
!
interface GigabitEthernet0/2
no ip address
!
interface Vlan1
no ip address
!
interface Vlan99
ip address 192.168.1.100 255.255.255.0
!
ip default-gateway 192.168.1.99
ip classless
no ip http server
!
!
!
line con 0
logging synchronous
line vty 0 4
password phil
login
line vty 5 15
password phil
login
!
end
Here is my router config:
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot system flash:c2801-ipvoicek9-mz.151-2.T0a.bin
boot-end-marker
!
!
!
no aaa new-model
dot11 syslog
ip source-route
!
!
!
!
ip dhcp pool DATA_SCOPE
network 192.168.200.0 255.255.255.0
default-router 192.168.200.1
!
ip dhcp pool VOICE_SCOPE
network 192.168.100.0 255.255.255.0
default-router 192.168.100.1
!
ip dhcp pool MGMT_SCOPE
network 192.168.1.0 255.255.255.0
default-router 192.168.1.99
!
!
ip cef
no ip domain lookup
no ipv6 cef
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
voice-card 0
!
crypto pki token default removal timeout 0
!
crypto pki trustpoint TP-self-signed-2995340181
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-2995340181
revocation-check none
!
!
crypto pki certificate chain TP-self-signed-2995340181
certificate self-signed 01
3082023E 308201A7 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 32393935 33343031 3831301E 170D3733 30323137 31313231
35395A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D32 39393533
34303138 3130819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100C34D C8ECBB53 E01373A3 2E286B78 2D23042B 1C8588B1 A7861899 BA1C6860
AE1D7868 2A59E3BC 54D0A457 8FFDE27F C09104E5 C7A429F3 74CD9DA8 4A980366
675CC27C CDB94838 821CC05F 2C0AC2BC D882C132 6CAA1FA6 6DA740E4 562428B1
12B741F1 A50C9246 4CC35EDA DEE1D038 3883BB35 A91ABF8B 483E4160 F5FA4B5A
9A570203 010001A3 66306430 0F060355 1D130101 FF040530 030101FF 30110603
551D1104 0A300882 06526F75 74657230 1F060355 1D230418 30168014 72119640
F3396E1F E4168086 D31D8619 0D8337FF 301D0603 551D0E04 16041472 119640F3
396E1FE4 168086D3 1D86190D 8337FF30 0D06092A 864886F7 0D010104 05000381
81005DFE 4E6AFCB8 FAB7997D 0274C19C 76F2EF64 E0119D7A DD11438B 77E0CE2B
5C4A8EBE 2F697D06 B9BC8015 3D3C0F2F A6BA5E34 FD23D1B9 BB21A2D9 00086511
243F7781 D5788935 A97B4762 F14545CC 0674138C F92BB0E0 31DCEAB4 7DE487BE
141444B4 6BE74EE6 A30E3A5C 1DE56049 20751D84 20C1A5AB 8003B85B EE4D6607 A943
quit
!
!
license udi pid CISCO2801 sn FTX0947W07M
username phil privilege 15 password 0 phil
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
!
interface FastEthernet0/1.99
encapsulation dot1Q 99
ip address 192.168.1.99 255.255.255.0
!
interface FastEthernet0/1.100
description voice_VLAN
encapsulation dot1Q 100
ip address 192.168.100.1 255.255.255.0
!
interface FastEthernet0/1.200
description data_VLAN
encapsulation dot1Q 200
ip address 192.168.200.1 255.255.255.0
!
ip forward-protocol nd
!
!
ip http server
ip http authentication local
ip http secure-server
!
logging esm config
!
!
tftp-server flash:/phone/7940-7960/P00307020200.bin alias P00307020200.bin
tftp-server flash:/phone/7940-7960/P00307020200.loads alias P00307020200.loads
tftp-server flash:/phone/7940-7960/P00307020200.sb2 alias P00307020200.sb2
tftp-server flash:/phone/7940-7960/P00307020200.sbn alias P00307020200.sbn
!
control-plane
!
!
!
mgcp fax t38 ecm
!
!
!
!
telephony-service
max-ephones 10
max-dn 20
ip source-address 192.168.1.99 port 2000
max-conferences 4 gain -6
transfer-system full-consult
!
!
ephone-dn 1
number 1000
!
!
ephone-dn 2 dual-line
number 1001
!
!
ephone 1
mac-address C80A.A970.01DE
type CIPC
button 1:1 2:2
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
privilege level 15
login local
transport input telnet ssh
!
scheduler allocate 20000 1000
end
Solved! Go to Solution.
01-19-2013 11:14 AM
I solved the problem. I have two interfaces on the PC including one wireless interface. The default gateway for the wireless interface was intercepting packets and routing them onto the internet instead of through my home network.
As soon as I disabled the wireless interface or changed the priority value of it, the problem resolved itself.
Thanks for your help.
01-19-2013 11:20 AM
Glad you got it working and thanks for the update
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide