0

I am trying to learn computer networking by experimenting on cisco packet tracer. Here is what I have done, but I see that I cannot create a static route for it. The cisco packet tracer throws error -

Router(config)#ip route 192.168.2.0 255.255.255.0 192.168.2.101
%Invalid next hop address (it's this router)

I can't see that I can assign IP address to a switch.

Here is the topology.

enter image description here

  • You don't need to assign an ip address to the switches in order for the router to route between the two networks. You also don't need to manually create a route on the router for networks that it is directly connected to. Those routes will already exist. – joeqwerty Sep 20 '15 at 23:45
  • The 192.168.1.102 cannot ping 192.168.2.101 – dexterous_stranger Sep 20 '15 at 23:59
  • If your screenshot is an accurate representation, the links between the switches and the router are down, as represented by the red dots. They may be administratively down or you may have connected them with the wrong type of connector. – joeqwerty Sep 21 '15 at 0:28
  • 1
    "The 192.168.1.102 cannot ping 192.168.2.101" - most probably because 192.168.1.102 has no default router set - it should be set to your router's address (192.168.1.101). – Laszlo Valko Sep 21 '15 at 0:54
  • Is it running because STP is turned on? I thought that I have created a loop here. – dexterous_stranger Sep 21 '15 at 2:06
1

The Catalyst 2960 switches you are emulating are Layer 2 (L2) switches. Layer 2 switches does not operate on "network" Layer 3 (L3), where IP protocol resides. Instead it works at the "data link" layer (L2), where it only works with MAC addresses in case of Ethernet network. The only IP it might have are only for CPU interface, i.e. for managing the switch via network. Refer to OSI model for more information on network layers.

As you are most likely not using L2 managed switch features (VLANs for example) so this could be simplified to unmanaged network, with unmanaged switches. They don't have IP at all as they aren't configurable. When a packet comes to it's interface it reads source and destination MACs from a packet data link layer, records source MAC/port into it's own forward table, checks that table if the destination MAC are known. If it is, it resends the packet to designated port. If it's not it just sends the packet to every other than the source ports. This works until it learns the correct port when a return packet will come.

I believe Cisco Packet Tracer had a bundled example explaining how this works. I suggest you to learn & understand that part of networking first, before proceeding onto routed networks.

As for your situation as already noted in comments the link between your router and switches are down as indicated by the red dots nearby. Ensure that your router are "running" and links are connected with correct type of connectors. Also make sure you've corrected to a right interfaces of the router with correct networks. You should check which interface of your router has the 192.168.1.101 IP, if it's Fa0/0 for example you should connect that interface to the Switch0. Same goes for right side IP/interface, connect the correct on to Switch1.

0

The red dots on the links indicate that the ports on the router are not active, you need to turn the router ports on with the command no shutdown on each interface.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.