![]() |
|
|
|||
|
Assign static IP to each switch port
Hello all, Trying to learn a bit more... Always :- ) I'm designing a framework to automatically test computers. I need to put the machine on the test place and the system will perform an automated test (a complete framework with knowledge base for issues, statistics...). However, I'm facing an issue and need advices. I'm looking for a software/hardware solution for a in order to fulfill the following constraints/goals: - Assign a specific IP address to each switch port (I assure an isolated network and just one client per port) - Don't hard-bind any specific MAC address because the machines will change all the time on test places I found the DHCP Snooping on switch as a possible solution, but this is not the perfect one because demands specifics switches and needs to bind with MAC addresses. So, doesn't fit with my requirements. Do you guys have some tip/advice to make this assignment? Using DHCP, BIND, Hardware, Software... Cheers! Igor Gomes |
|
|||
|
Re: Assign static IP to each switch port
On Jul 18, 1:44*am, Igor Gomes <igor...@gmail.com> wrote:
> - Assign a specific IP address to each switch port (I assure an > isolated network and just one client per port) That makes no sense. > Do you guys have some tip/advice to make this assignment? Using DHCP, > BIND, Hardware, Software... Not possible. A switch has no idea what an IP address is. What you're asking is like trying to have one mailbox for letters with odd numbers of pages and one for letters with even numbers. The mailman doesn't know what's inside the letters, so he can't stuff them in a mailbox based on the number of pages. He can do it based on the address only. Switches understand MAC addresses. DS |
|
|||
|
Re: Assign static IP to each switch port
Igor Gomes wrote:
> > Hello all, > > Trying to learn a bit more... Always :- ) > > I'm designing a framework to automatically test computers. I need to > put the machine on the test place and the system will perform an > automated test (a complete framework with knowledge base for issues, > statistics...). > > However, I'm facing an issue and need advices. I'm looking for a > software/hardware solution for a in order to fulfill the following > constraints/goals: > > - Assign a specific IP address to each switch port (I assure an > isolated network and just one client per port) The way to do this is to find a switch that supports VLANs and 802.1q trunking. You assign each switchport a different VLAN, which you trunk back to your router on an 802.1q trunk port. On the router you create a set of interfaces, one on each of the VLANs. You can pick up a Cisco 2924XL-EN from ebay for almost nothing (Make sure you get the -EN model as it's the one that supports VLANS. On the linux box you're using as the router there is support built into the kernel for 802.1q trunking, setting up the interfaces is dependant upon your distribution :) 802.1q is a common standard available on many switch models. I have been doing this for years - it's a cheap way to get multiple interfaces on your linux box. Bruce |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|