- You can only do that on a l3 switch , here is an example :
switch(config)# interface ethernet x/y switch(config-if)# no switchport switch(config-if)# ip address 192.0.2.1/8
what is the device model IOS.
interface gi 0/1 -- change this as per requirement
no switchport -- this convert port to layer 3
ip address 10.10.10.1 255.255.255.0 < -- change this as per requirement.
*** Rate All Helpful Responses ***
do the configuration of the switch as indicated to me (see switch image) with an ip address 192.168.1.10, however, the IP address of the computer (see ipPC image) is different from the one configured in the port and there is communication, however In this scenario, should the switch reject the communication?
Perhaps there is something in the post that I am not understanding. When I look at the image showing switch I see an interface with an IP v4 address. When I look at the image showing PC I see the PC is configured with an IP v4 address that is in the same subnet as the switch address. I would expect the PC and the switch to be able to communicate using IP v4. Is there some reason why you would expect the switch to reject the communication?If so please explain to me what you believe the issue to be.