Networking Forums

Networking Forums > Computer Networking > Windows Networking > Assign static IPs to port of a managed switch

Reply
Thread Tools Display Modes

Assign static IPs to port of a managed switch

 
 
Christian Neuner
Guest
Posts: n/a

 
      06-24-2005, 08:42 AM
Hallo group,

is the following scenario possible:

I want to connect 14 computer with GBit LAN via a GBit-Switch. Each of
the computers should get his IP via DHCP (the switch should act as DHCP
server). Every assigned IP address should depend on the port where the
computer is connected.

for example:
computer 1 is connected to port 1 of the switch and gets IP address
192.168.x.1,
computer 2 is connected to port 2 of the switch and gets IP address
192.168.x.2,
computer 3 is connected to port 3 of the switch and gets IP address
192.168.x.3,
....
computer 14 is connected to port 14 of the switch and gets IP address
192.168.x.14
via the DHCP Server running on the switch.

Is it possible to configure the DHCP server within the managed layer 2
or layer 3 switch to assign IPs depending on the connected port?
Is it possible use VLANs to get the same effect?

Thanks
Chris

 
Reply With Quote
 
 
 
 
Walter Roberson
Guest
Posts: n/a

 
      06-24-2005, 02:13 PM
In article <42bbc782$0$14559$(E-Mail Removed)>,
Christian Neuner <(E-Mail Removed)> wrote:
:I want to connect 14 computer with GBit LAN via a GBit-Switch. Each of
:the computers should get his IP via DHCP (the switch should act as DHCP
:server). Every assigned IP address should depend on the port where the
:computer is connected.

:Is it possible to configure the DHCP server within the managed layer 2
r layer 3 switch to assign IPs depending on the connected port?

Most *switches* will not act as DHCP servers at all. Whether any
particular switch will allow not only DHCP but location-sensitive DHCP
would depend greatly on the switch model and software revision,
which you have not specified.

:Is it possible use VLANs to get the same effect?

Not usually.


If you want port-specific DHCP then you should use a switch that
supports DHCP Forwarding, with Interface Tracking (Option 82).

--
"No one has the right to destroy another person's belief by
demanding empirical evidence." -- Ann Landers
 
Reply With Quote
 
bobb
Guest
Posts: n/a

 
      06-24-2005, 05:37 PM
On Fri, 24 Jun 2005 10:42:43 +0200, Christian Neuner
<(E-Mail Removed)> wrote:


>is the following scenario possible:



Probly not. As this is not DHCP anymore. You just want to automate the
setting of statics.
 
Reply With Quote
 
bobb
Guest
Posts: n/a

 
      06-24-2005, 06:06 PM
On second thought, you maybe able to tell a DHCP server, "assign this
IP to this MAC" but most likely that won't come from a switch. A
switch's main job is not DHCP. Some switches may have a rudimentary
DHCP server built-in, but not when you start to get fancy, then u need
an honest-to-God DHCP server running from a server box.

I could be wrong. <g>

 
Reply With Quote
 
Christian Neuner
Guest
Posts: n/a

 
      06-27-2005, 07:53 AM
Walter Roberson wrote:
> If you want port-specific DHCP then you should use a switch that
> supports DHCP Forwarding, with Interface Tracking (Option 82).


Thank you for the hint, I will look into that.

Christian
 
Reply With Quote
 
Christian Neuner
Guest
Posts: n/a

 
      06-27-2005, 07:56 AM
bobb wrote:
> On second thought, you maybe able to tell a DHCP server, "assign this
> IP to this MAC" but most likely that won't come from a switch.


This wouldn't help, because the IP adress should depend on the connected
port, not on the MAC adress.
For example if I connected a computer with the IP 192.168.x.5 (was
connected to port 5) to port 8 of the switch, it should get the IP
192.168.x.8.

Christian
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assign static IP to each switch port Igor Gomes Linux Networking 1 07-18-2008 11:38 PM
Golden Tree Managed 24 port 10/100 Switch Brenhin Windows Networking 1 04-01-2008 11:45 PM
Cisco 24 Port managed GB Switch Bikini Browser Windows Networking 3 10-07-2007 09:57 PM
Samsung 10/100 FastEther 24 port managed switch info please Rodney Gooding Network Routers 0 05-25-2005 12:25 AM
looking for low port density managed switch Ted Cekan Linux Networking 0 08-12-2004 06:20 PM



1 2 3 4 5 6 7 8 9 10 11