Options

1 interface, 2 routes/network?

pham0329pham0329 Member Posts: 556
I was playing around with Packet Tracer and created this little diagram. Out of curiousity, is there a way for router5 to route packet sent from PC4 to PC6? I added a route on Router5 that looks something like
ip route 192.168.0.0 255.255.255.0 192.168.1.2




but it wouldnt work and when I go through the routing/switching process, I can't seem to figure out why.
  1. PC4 sends a packet to PC6 and realize that PC6 is on a different network and sends the packet to Router5.
  2. Router5 sees that packet is destined for the 192.168.0.0 network and looks in its routing table. It finds a route via 192.168.1.2 so it replaces the frame's source/destination MAC address and send it out to Router4.
  3. Router4 gets the packet and send it out to PC6.
Where did I go wrong/what am I missing?
samplen.jpg

Comments

  • Options
    hiddenknight821hiddenknight821 Member Posts: 1,209 ■■■■■■□□□□
    I never use Packet Tracer, but maybe you need to set up the default gateway on the switch. It should be either 192.168.1.1 or 192.168.1.2, but for what you're attempting (192.168.1.2 is preferred). Now it never occurs to me if I could place a switch between two routers, because you would need two gateways.
  • Options
    mark_s0mark_s0 Member Posts: 82 ■■■□□□□□□□
    Have you tried a trace route to see where the packet is stopping?
    It would be worth posting your router config's to see if anyone can spot anything that could resolve the problem?

    The switch wouldn't need any gateway configured as it would be providing layer 2 functions.
  • Options
    pham0329pham0329 Member Posts: 556
    Got back to the house and I went through the router's config to make sure I didn't miss anything and I didn't. I did a trace route and this time, it went through icon_scratch.gificon_scratch.gif
    Tracing route to 192.168.0.100 over a maximum of 30 hops:
    1 15 ms 13 ms 10 ms 192.168.1.1
    2 18 ms 18 ms 15 ms 192.168.1.2
    3 23 ms 25 ms 28 ms 192.168.0.100

    Have no idea why it didn't work earlier but oh well...at least it's working now.
Sign In or Register to comment.