Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-18-2008, 08:44 AM
Igor Gomes
 
Posts: n/a
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
Reply With Quote
  #2 (permalink)  
Old 07-18-2008, 11:38 PM
David Schwartz
 
Posts: n/a
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
Reply With Quote
  #3 (permalink)  
Old 07-19-2008, 03:08 AM
Bruce Cook
 
Posts: n/a
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
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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



All times are GMT. The time now is 07:51 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Mortgages | Credit Cards | McDonalds | Garcia Marquez | Credit



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109