Options

Router on a stick

odysseyeliteodysseyelite Member Posts: 504 ■■■■■□□□□□
I'm setting up Router on a Stick following the CBT nuggets. I'm having an issue with the two pc's being able to ping each other.

PC1 192.168.20.20 on vlan 20
sub interface 192.168.20.1

pc2 192.168.10.50 on vlan 10
sub interface 192.168.10.1


From the router I can ping both PC's. From the PC's I can ping the defauly gateway (ip sub interface for the vlan)

I can not ping the sub interface of the other's vlan. PC1 can not ping 192.168.10.1, PC2 is unable to ping 192.168.20.1

show run
Building configuration...

Current configuration : 1276 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$VM.Q$EzX.9wMo3JZiVvW8/eK.d.
!
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
!
!
!
!
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
!
!
!
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
interface Serial0/0
ip address 192.168.2.1 255.255.255.0
!
router rip
version 2
network 192.168.1.0
network 192.168.2.0
!
ip forward-protocol nd
!
!
ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
banner motd ^C
*********************************************
DO NOT LOG IN
********************************************
^C
!
line con 0
password 7 0822455D0A16
logging synchronous
login
line aux 0
password 7 110A1016141D
login
line vty 0 4
password 7 110A1016141D
logging synchronous
login
!
!
end
Currently reading: Start with Why: How Great Leaders Inspire Everyone to Take Action

Comments

  • Options
    ZartanasaurusZartanasaurus Member Posts: 2,008 ■■■■■■■■■□
    Switch trunk and access ports configured correctly?
    Currently reading:
    IPSec VPN Design 44%
    Mastering VMWare vSphere 5​ 42.8%
  • Options
    networker050184networker050184 Mod Posts: 11,962 Mod
    Default gateway correct on pcs?
    An expert is a man who has made all the mistakes which can be made.
  • Options
    alan2308alan2308 Member Posts: 1,854 ■■■■■■■■□□
    Do not put an IP address on the the interface, just the two sub-interfaces.
  • Options
    odysseyeliteodysseyelite Member Posts: 504 ■■■■■□□□□□
    Ah I got it. I was using my main pc which connects to the internet through wireless as well as being connected to my lab. Once I disconnected from the wireless it worked properly.
    Currently reading: Start with Why: How Great Leaders Inspire Everyone to Take Action
  • Options
    ZartanasaurusZartanasaurus Member Posts: 2,008 ■■■■■■■■■□
    Ah I got it. I was using my main pc which connects to the internet through wireless as well as being connected to my lab. Once I disconnected from the wireless it worked properly.
    Multiple default gateways?
    Currently reading:
    IPSec VPN Design 44%
    Mastering VMWare vSphere 5​ 42.8%
  • Options
    odysseyeliteodysseyelite Member Posts: 504 ■■■■■□□□□□
    Multiple default gateways?

    I guess so. On my PC's they had dhcp form the wireless. In my lab I had static IP's. Still do not understand why I could ping the sub interface of the vlan. If there was a issue with gateways the ping should have gone out the wireless.

    So whats the best way in a lab for test pc's? Have them entirely by themselves?

    I would like to have two nics on my main pc so I don't have to have random pcs just for test.

    Is there a way to have the pc on both my home network and the lab network without issues?
    Currently reading: Start with Why: How Great Leaders Inspire Everyone to Take Action
  • Options
    networker050184networker050184 Mod Posts: 11,962 Mod
    Is there a way to have the pc on both my home network and the lab network without issues?

    You can just add a route for all the networks that you are using in your lab to point to the lab gateway. Then have your default gateway to the internet.
    An expert is a man who has made all the mistakes which can be made.
  • Options
    ZartanasaurusZartanasaurus Member Posts: 2,008 ■■■■■■■■■□
    I guess so. On my PC's they had dhcp form the wireless. In my lab I had static IP's. Still do not understand why I could ping the sub interface of the vlan.
    Your PC had a route to that lab network because it was directly attached. It did not have a route to the other lab network so it used the wireless default gateway. Even if you have two gateways on two NICs, only one will be the real default.

    Do a route print at the command prompt and you'll see which one has the lower metric. By default on Windows, the first default gateway that you create gets the lower metric (I think).

    Networker's comments above will take care of any issues you're having.
    Currently reading:
    IPSec VPN Design 44%
    Mastering VMWare vSphere 5​ 42.8%
  • Options
    ZartanasaurusZartanasaurus Member Posts: 2,008 ■■■■■■■■■□
    This issue should help give you a better understanding of routing in preparation for your ICND2 test. :)
    Currently reading:
    IPSec VPN Design 44%
    Mastering VMWare vSphere 5​ 42.8%
  • Options
    odysseyeliteodysseyelite Member Posts: 504 ■■■■■□□□□□
    This is why I like having a home lab. Any troubles I have now, I can apply that towards troubleshooting on the exam.
    Currently reading: Start with Why: How Great Leaders Inspire Everyone to Take Action
  • Options
    odysseyeliteodysseyelite Member Posts: 504 ■■■■■□□□□□
    Well I was still having a problem with my setup. Some pings would be successful while others would not.

    After reading my notes and watching the video again I found what I was missing: setting the port on the switch to trunk port.
    Currently reading: Start with Why: How Great Leaders Inspire Everyone to Take Action
  • Options
    odysseyeliteodysseyelite Member Posts: 504 ■■■■■□□□□□
    You can just add a route for all the networks that you are using in your lab to point to the lab gateway. Then have your default gateway to the internet.

    Worked perfectly for what I needed.

    Thanks!
    Currently reading: Start with Why: How Great Leaders Inspire Everyone to Take Action
Sign In or Register to comment.