cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6370
Views
0
Helpful
2
Replies

Static IP-address on a switch port

j.sololid96
Level 1
Level 1

Hi.

I am curious if it is possible to set a certain ip-address to a port on a switch. So that every time a end device connects to the port and gets the static ip-address that is assigned to that port. 

A scenario that you want to change a printer and don't have to assign the static ip-address to the printer before installing it to the workstation. It would work kind of a "plug and play" function with that port without any problems with the DHCP protocols.

From what i have found personally it could be possible but would leave a security problem so that anyone can tap into the network through that port without any problem.

//Jonas

2 Replies 2

Milos Megis
Level 3
Level 3

Hi,
if you want to allow only one device on that port then you can use portsecurity (and specify allowed static MAC address).

Also you can specify DHCP pool which assign specific IP address according to MAC address.

One problem can happen if someone know MAC address of printer and change MAC address of network card in PC to MAC address of printer. Then will be able to connect to switch on that port.

EDIT: sorry, I misunderstand you. Above solution will not solve your problem (And I am not able to delete post)

Peter Koltl
Level 7
Level 7

You can

  • create a VLAN restricted to that single port
  • enable DHCP in that VLAN (very short lease time)
  • the pool should contain a single address