Options

ping question

txn41655txn41655 Member Posts: 53 ■■□□□□□□□□
hi, I am still new to networking. Could anyone tell me why I able ping the gateway (10.0.1.1/29) and S1 (10.0.1.2/29 middle switch) from my PC but unable to ping the switch(10.0.1.3/29) where my pc(172.20.0.2) is Directly connected? thanks.icon_rolleyes.gif

*all switches are in VLAN 99 and the PC on VLAN 10.

Comments

  • Options
    MAC_AddyMAC_Addy Member Posts: 1,740 ■■■■□□□□□□
    Wrong default gateway on the switch, most likely. Can you post the configs? Maybe condense them a bit.
    2017 Certification Goals:
    CCNP R/S
  • Options
    txn41655txn41655 Member Posts: 53 ■■□□□□□□□□
    Router#show running-config
    Building configuration...


    Current configuration : 1312 bytes
    !
    version 15.1
    no service timestamps log datetime msec
    no service timestamps debug datetime msec
    no service password-encryption
    !
    hostname Router
    !
    no ip cef
    no ipv6 cef
    !
    license udi pid CISCO1941/K9 sn FTX152447HP
    !
    spanning-tree mode pvst
    !


    interface GigabitEthernet0/0
    no ip address
    duplex auto
    speed auto
    !
    interface GigabitEthernet0/0.10
    encapsulation dot1Q 10
    ip address 172.20.0.1 255.255.255.224
    !
    interface GigabitEthernet0/0.20
    encapsulation dot1Q 20
    ip address 172.20.0.33 255.255.255.224
    !
    interface GigabitEthernet0/0.99
    encapsulation dot1Q 99
    ip address 10.0.1.1 255.255.255.248
    !
    interface GigabitEthernet0/1
    no ip address
    duplex auto
    speed auto
    !
    interface GigabitEthernet0/1.10
    encapsulation dot1Q 10
    ip address 172.20.0.65 255.255.255.224
    !
    interface GigabitEthernet0/1.20
    encapsulation dot1Q 20
    ip address 172.20.0.97 255.255.255.224
    !
    interface GigabitEthernet0/1.99
    encapsulation dot1Q 99
    ip address 10.0.2.1 255.255.255.248
    !
    interface Serial0/0/0
    ip address 192.168.9.1 255.255.255.252
    !
    interface Serial0/0/1
    ip address 192.168.9.5 255.255.255.252
    !
    interface Vlan1
    no ip address
    shutdown
    !
    router rip
    !
    ip classless
    !
    ip flow-export version 9
    !
    line con 0
    !
    line aux 0
    !
    line vty 0 4
    login
    !
    end
  • Options
    txn41655txn41655 Member Posts: 53 ■■□□□□□□□□
    Actually My PC(172.20.0.2) is on VLAN 10 but I thought I configured the router for inter-VLAN communications!?
  • Options
    MAC_AddyMAC_Addy Member Posts: 1,740 ■■■■□□□□□□
    Looks like this is configured wrong:

    interface GigabitEthernet0/1.99
    encapsulation dot1Q 99
    ip address 10.0.2.1 255.255.255.248
    2017 Certification Goals:
    CCNP R/S
  • Options
    txn41655txn41655 Member Posts: 53 ■■□□□□□□□□
    Could you explain why is that configured wrong? thanks.

    *GigabitEthernet 0/1 is connected to middle switch S2 (10.0.2.2/29 VLAN 99).
  • Options
    MAC_AddyMAC_Addy Member Posts: 1,740 ■■■■□□□□□□
    You have this:

    interface GigabitEthernet0/0.99
    encapsulation dot1Q 99
    ip address 10.0.1.1 255.255.255.248

    And this:

    interface GigabitEthernet0/1.99
    encapsulation dot1Q 99
    ip address 10.0.2.1 255.255.255.248

    Both are different subnets.
    2017 Certification Goals:
    CCNP R/S
  • Options
    p@r0tuXusp@r0tuXus Member Posts: 532 ■■■■□□□□□□
    Both are different subnets.

    You've got the same issue going on with the other VLANs also. Check your subnets!
    Completed: ITIL-F, A+, S+, CCENT, CCNA R|S
    In Progress: Linux+/LPIC-1, Python, Bash
    Upcoming: eJPT, C|EH, CSA+, CCNA-Sec, PA-ACE
  • Options
    txn41655txn41655 Member Posts: 53 ■■□□□□□□□□
    yes,I have 2 subnets. Would that prevent my PC-A.1 ping the directly connected switch?
  • Options
    MAC_AddyMAC_Addy Member Posts: 1,740 ■■■■□□□□□□
    Can you ask the question again? You gave the diagram for the whole topology, but I cannot tell which PC you're trying to ping from.
    2017 Certification Goals:
    CCNP R/S
  • Options
    txn41655txn41655 Member Posts: 53 ■■□□□□□□□□
    sure, why CAn't I ping the switch(10.0.1.3/29) FROM my PC-A.1 (172.20.0.2)?? I can ping the middle switch and can ping the gateway.thanks.icon_rolleyes.gif
  • Options
    dontstopdontstop Member Posts: 579 ■■■■□□□□□□
    Is the SVI up on the switch? Is the SVI in the right VLAN? Can you show us the config & show ip int brief on the switch?
  • Options
    txn41655txn41655 Member Posts: 53 ■■□□□□□□□□
    PC-A.1 is connected to FastEthernet0/5 (vlan 10) . I am able ping switch S2 (10.0.2.2) from PC-A.1 (172.20.0.2).

    Switch#show ip interface brief
    Interface IP-Address OK? Method Status Protocol

    FastEthernet0/1 unassigned YES manual up up

    FastEthernet0/2 unassigned YES manual down down

    FastEthernet0/3 unassigned YES manual down down

    FastEthernet0/4 unassigned YES manual down down

    FastEthernet0/5 unassigned YES manual up up

    FastEthernet0/6 unassigned YES manual down down

    FastEthernet0/7 unassigned YES manual down down

    FastEthernet0/8 unassigned YES manual down down

    FastEthernet0/9 unassigned YES manual down down

    FastEthernet0/10 unassigned YES manual up up

    FastEthernet0/11 unassigned YES manual down down

    FastEthernet0/12 unassigned YES manual down down

    FastEthernet0/13 unassigned YES manual down down

    FastEthernet0/14 unassigned YES manual down down

    FastEthernet0/15 unassigned YES manual up up

    FastEthernet0/16 unassigned YES manual down down

    FastEthernet0/17 unassigned YES manual down down

    FastEthernet0/18 unassigned YES manual down down

    FastEthernet0/19 unassigned YES manual down down

    FastEthernet0/20 unassigned YES manual up up

    FastEthernet0/21 unassigned YES manual down down

    FastEthernet0/22 unassigned YES manual down down

    FastEthernet0/23 unassigned YES manual down down

    FastEthernet0/24 unassigned YES manual down down

    GigabitEthernet0/1 unassigned YES manual down down

    GigabitEthernet0/2 unassigned YES manual down down

    Vlan1 unassigned YES manual up up

    Vlan10 unassigned YES manual up up

    Vlan20 unassigned YES manual up up

    Vlan99 10.0.1.3 YES manual up up
  • Options
    dontstopdontstop Member Posts: 579 ■■■■□□□□□□
    If you can post up your packet tracer file to somewhere like http://www.filedropper.com/ please
  • Options
    yparkypark Member Posts: 120 ■■■□□□□□□□
    You don't have an IP address assigned to the switch and vlan 1 is shutdown. Also, I don't see a default-gateway configured.

    If you can ping SW1, look at the config on SW1 and see what's different.
    2022 Goals: [PCNSE] [JNCIS-SP] [JNCIS-SEC] [JNCIS-DevOps]
  • Options
    txn41655txn41655 Member Posts: 53 ■■□□□□□□□□
    thanks ypark, the default gateway was missing. it working now!! icon_cheers.gif
Sign In or Register to comment.