<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Attribute IP address based on HP switch number/port number ? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/attribute-ip-address-based-on-hp-switch-number-port-number/m-p/4385076#M81990</link>
    <description>&lt;!--!*#--&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;      I have several 2650 switches (in stack) on a LAN, the IP addresses are attributed by a DHCP server, I would like to know if it's possible to attribute the IP address based on the switch number of the stack and the port number ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mr Lejeune</description>
    <pubDate>Sun, 22 Mar 2009 10:58:36 GMT</pubDate>
    <dc:creator>Lejeune Vianney</dc:creator>
    <dc:date>2009-03-22T10:58:36Z</dc:date>
    <item>
      <title>Attribute IP address based on HP switch number/port number ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/attribute-ip-address-based-on-hp-switch-number-port-number/m-p/4385076#M81990</link>
      <description>&lt;!--!*#--&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;      I have several 2650 switches (in stack) on a LAN, the IP addresses are attributed by a DHCP server, I would like to know if it's possible to attribute the IP address based on the switch number of the stack and the port number ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mr Lejeune</description>
      <pubDate>Sun, 22 Mar 2009 10:58:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/attribute-ip-address-based-on-hp-switch-number-port-number/m-p/4385076#M81990</guid>
      <dc:creator>Lejeune Vianney</dc:creator>
      <dc:date>2009-03-22T10:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute IP address based on HP switch number/port number ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/attribute-ip-address-based-on-hp-switch-number-port-number/m-p/4385077#M81991</link>
      <description>Interesting question.  Not that I know of but maybe I can suggest some workarounds.&lt;BR /&gt;&lt;BR /&gt;1. Assumptions your DHCP server can assign a IP address to a MAC address.&lt;BR /&gt;&lt;BR /&gt;2. SNMP supported switch.&lt;BR /&gt;&lt;BR /&gt;What you will need to do is run a program to get a snmp dump of the switch port table.  The switch port table mib will give you a port number and mac address.&lt;BR /&gt;&lt;BR /&gt;From that output you can create a DHCP config where the IP is based on the switch and port number and mapped to a mac address.&lt;BR /&gt;&lt;BR /&gt;Does this help you figure out how you might do it.  You can use the snmpget command to get the data from a mib via the command line.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Mar 2009 23:23:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/attribute-ip-address-based-on-hp-switch-number-port-number/m-p/4385077#M81991</guid>
      <dc:creator>Emil Velez</dc:creator>
      <dc:date>2009-03-22T23:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute IP address based on HP switch number/port number ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/attribute-ip-address-based-on-hp-switch-number-port-number/m-p/4385078#M81992</link>
      <description>If you allocate IP addresses by switch ports, what happens when someone plugs a hub with two or more hosts into one port?&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Mon, 23 Mar 2009 21:54:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/attribute-ip-address-based-on-hp-switch-number-port-number/m-p/4385078#M81992</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-03-23T21:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute IP address based on HP switch number/port number ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/attribute-ip-address-based-on-hp-switch-number-port-number/m-p/4385079#M81993</link>
      <description>It doesn't matter because I use a radius authentification system based on mac address, so one device is allowed per port.</description>
      <pubDate>Tue, 24 Mar 2009 11:39:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/attribute-ip-address-based-on-hp-switch-number-port-number/m-p/4385079#M81993</guid>
      <dc:creator>Lejeune Vianney</dc:creator>
      <dc:date>2009-03-24T11:39:22Z</dc:date>
    </item>
  </channel>
</rss>

