Options

Question about InterVlan

kambalpogikambalpogi Member Posts: 38 ■■□□□□□□□□
i have here a topology I made because I'm curious if I can manage to ping
the result it failed
PC0 to PC2 =VLAN 10 =Failed
PC1 to PC3 = VLAN 20= Failed
PC0 to PC1 and PC4 = Successful
PC0 to PC6= Successful
PC1 to PC6 = Successful
Pc4 to PC2 and PC3 = Successful
PC2 to PC3 and PC6 = Successful
PC2 to PC4= Successful
PC3 to PC4 = Successful
Pc6 to PC0 and PC1 = Successful


by the way I use OSPF for the connection of the two routers
my question is how can I able to ping PC0 to PC2 and PC1 to PC3
(can i able to ping the PC's using intervlan on different network?)
Thanks !
1110xzr.jpg

Comments

  • Options
    huafisthuafist Member Posts: 69 ■■□□□□□□□□
    We need your running-configs from both routers and switches to even make an assumption of the issue.
  • Options
    kambalpogikambalpogi Member Posts: 38 ■■□□□□□□□□
    R1 config
    version 12.4
    no service timestamps log datetime msec
    no service timestamps debug datetime msec
    no service password-encryption
    !
    hostname R1
    !
    !
    spanning-tree mode pvst
    !
    !
    !
    !
    interface FastEthernet0/0
    no ip address
    duplex auto
    speed auto
    !
    interface FastEthernet0/0.10
    encapsulation dot1Q 10
    ip address 193.33.50.1 255.255.255.0
    !
    interface FastEthernet0/0.20
    encapsulation dot1Q 20
    ip address 195.23.30.1 255.255.255.0
    !
    interface FastEthernet0/1
    ip address 172.20.3.1 255.255.255.0
    duplex auto
    speed auto
    !
    interface Serial0/1/0
    ip address 192.168.20.1 255.255.255.252
    clock rate 64000
    !
    interface Serial0/1/1
    no ip address
    clock rate 2000000
    shutdown
    !
    interface Vlan1
    no ip address
    shutdown
    !
    router ospf 1
    log-adjacency-changes
    network 192.168.20.1 0.0.0.0 area 0
    network 195.23.30.0 0.0.0.255 area 0
    network 172.20.3.0 0.0.0.255 area 0
    network 193.33.50.0 0.0.0.255 area 0

    R2

    interface FastEthernet0/0
    no ip address
    duplex auto
    speed auto
    !
    interface FastEthernet0/0.10
    encapsulation dot1Q 10
    ip address 197.22.55.1 255.255.255.0
    !
    interface FastEthernet0/0.20
    encapsulation dot1Q 20
    ip address 196.22.30.1 255.255.255.0
    !
    interface FastEthernet0/1
    ip address 199.20.1.1 255.255.255.0
    duplex auto
    speed auto
    !
    interface Serial0/1/0
    ip address 192.168.20.2 255.255.255.252
    !
    interface Serial0/1/1
    no ip address
    clock rate 2000000
    shutdown
    !
    interface Vlan1
    no ip address
    shutdown
    !
    router ospf 12
    log-adjacency-changes
    !
    router ospf 1
    log-adjacency-changes
    network 192.168.20.2 0.0.0.0 area 0
    network 197.22.55.0 0.0.0.255 area 0
    network 199.20.1.0 0.0.0.255 area 0
    network 196.22.30.0 0.0.0.255 area 0

    SW0
    spanning-tree mode pvst
    !
    interface FastEthernet0/1
    switchport mode trunk
    !
    interface FastEthernet0/2
    switchport access vlan 10
    switchport mode access
    !
    interface FastEthernet0/3
    switchport access vlan 20
    switchport mode access

    SW1
    spanning-tree mode pvst
    !
    interface FastEthernet0/1
    switchport mode trunk
    !
    interface FastEthernet0/2
    switchport access vlan 10
    switchport mode access
    !
    interface FastEthernet0/3
    switchport access vlan 20
    switchport mode access
  • Options
    networker050184networker050184 Mod Posts: 11,962 Mod
    Did you create the VLANs on the switch? Make sure they are actually in the VLAN database and forwarding.

    Other than that I'd check default gateways on the PCs and stuff like that. Config looks decent to me.
    An expert is a man who has made all the mistakes which can be made.
  • Options
    huafisthuafist Member Posts: 69 ■■□□□□□□□□
    the first thing that sticks out to me is you're advertising the IP addresses of your serial links as networks instead of the network 192.168.0.0 0.0.0.3.
  • Options
    networker050184networker050184 Mod Posts: 11,962 Mod
    That doesn't matter one bit and is actually a preferred method for a lot of networks. It keeps it straight forward and you can know exactly what interface by the exact IP.

    Remember, the network command has no impact on what mask is advertised. All the network command does is specify what interface participates in OSPF (or EIGRP etc). Once the interface is participating in the process, the mask configured on the interface is what is used to determine what is advertised.
    An expert is a man who has made all the mistakes which can be made.
  • Options
    kambalpogikambalpogi Member Posts: 38 ■■□□□□□□□□
    Thanks to your inputs sir
    I created the vlans on each switch and I'm just wondering If I can ping the PC's to the other side of the network even it is configured as a InterVlan
  • Options
    networker050184networker050184 Mod Posts: 11,962 Mod
    Yes you can ping them if everything is set up correctly. Is this still not working? Can you ping the first hop router? The router on the other side? What is the PC gateway set to?
    An expert is a man who has made all the mistakes which can be made.
  • Options
    mtehonicamtehonica Registered Users Posts: 4 ■□□□□□□□□□
    My first thought was a problem with the default route... would you need the default-information originate command issued under your ospf process? Also, can you do a show ip route from the routers to give a little more info?
  • Options
    networker050184networker050184 Mod Posts: 11,962 Mod
    Why would a default route be needed? All networks should be known via OSPF.
    An expert is a man who has made all the mistakes which can be made.
  • Options
    kambalpogikambalpogi Member Posts: 38 ■■□□□□□□□□
    Sir thanks a lot I able to ping all the PC's !
  • Options
    mapletunemapletune Member Posts: 316
    kambalpogi wrote: »
    Sir thanks a lot I able to ping all the PC's !

    So... PC gateway problem?
    Studying: vmware, CompTIA Linux+, Storage+ or EMCISA
    Future: CCNP, CCIE
  • Options
    kambalpogikambalpogi Member Posts: 38 ■■□□□□□□□□
    I use Packet Tracer for the simulation when I try to use the GUI for ping it fails
    but when I tried to use cmd on each PC all the PC's ping
  • Options
    vishaw1986vishaw1986 Member Posts: 40 ■■□□□□□□□□
    networker050184 ​ Made good replies ....

  • Options
    Ltat42aLtat42a Member Posts: 587 ■■■□□□□□□□
    kambalpogi wrote: »
    I use Packet Tracer for the simulation when I try to use the GUI for ping it fails
    but when I tried to use cmd on each PC all the PC's ping

    Try using the GUI ping more than once. I've had times where it took 2-3 times for the ping to be successful.

    hth
Sign In or Register to comment.