1

Quick question - I was learning about subinterfaces and using Cisco Packet Tracer I wanted to create simple network with two computers (every in different networks (192.168.1.1/24 and 192.168.2.1/24 and different VLAN) and using one router connect them. So my problem is that when I was typing the network R1(config-subif)#ip address 192.168.1.10 255.255.255.0 wasn't working while R1(config-subif)#ip address 192.168.1.1 255.255.255.0 was working. I'm just curious why there is there difference because both 192.168.1.1/24 and 192.168.1.10/24 will give 192.168.1.1 - 192.168.1.254 host adresses.

Edit: So to be more precise I was just pinging two computers and there was "Request timed out" message. enter image description here

  • 1
    wasn't working isn't descriptive. You need to edit your question to explain it, and you need to include the exact message, if any, that you got. – Ron Maupin Dec 13 '16 at 19:27
  • @RonMaupin Ok, I've updated the question with more info. – mikro098 Dec 13 '16 at 19:47
  • Please provide configurations of the switch and the router, without that it's only guessing. – Teun Vink Dec 13 '16 at 19:50
  • OK, we are starting to get somewhere. It sounds like PC0 has its gateway as 192.168.1.1. You should really include all the relevant information, including the router and switch configurations. – Ron Maupin Dec 13 '16 at 19:50
  • Well if PC0 has address 192.168.1.10 then you cannot configure that same address on the router a well. – hertitu Dec 13 '16 at 20:22
1

Besides on what was already mentioned, just to answer your question, it looks like you are trying to setup an IP address in the router which already belongs to PC0. Take a look and notice as they are the same - and you might know that two devices can not have the same IP address.

| improve this answer | |
0

Default gateway missing on PC's.

Your hosts/endpoints need to have a default gateway in addition to an IP address. Without the default gateway, the endpoint don't know how/where to send the packet for the other subnet. The default gateway is going to be on the same subnet as the PC's NIC card.

| improve this answer | |

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.