05-13-2019 01:17 PM - edited 05-13-2019 01:26 PM
I have a switch on which 4 PCs are attached. Now I want to give IP addresses to ports that are connected to that switch. How do I do that on Cisco when using Switch-PT-Empty. When I try to assign IP I get following message:
int fa 0/1
ip address 192.168.2.1 255.255.255.0
^
Invalid input detection at '^' marker
What am I doing wrong?
Solved! Go to Solution.
05-13-2019 01:24 PM - edited 05-13-2019 01:25 PM
Hi @ahmadqayyum7 ,
On an L2 switch, IPs can not be assigned to the physical interfaces (fa0/1, fa0/2, etc).
In those devices you can only assign an IP to the vlan interface that you will use to manage the switch (interface vlan1 by default).
To route the PCs you need an L3 device, such as a router or a multilayer switch.
Regards
05-13-2019 01:24 PM - edited 05-13-2019 01:25 PM
Hi @ahmadqayyum7 ,
On an L2 switch, IPs can not be assigned to the physical interfaces (fa0/1, fa0/2, etc).
In those devices you can only assign an IP to the vlan interface that you will use to manage the switch (interface vlan1 by default).
To route the PCs you need an L3 device, such as a router or a multilayer switch.
Regards
05-13-2019 01:27 PM
can you post the configuration of the switch to have look, you need to have DHCP in the network to give IP lease, if not you neeed to setup static IP address to PC to enable network connectvity like internet.
05-13-2019 03:58 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide