How to Configure Subinterfaces on a Cisco Router

routingsubnet

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

Best Answer

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.

Related Topic