HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Attribute IP address based on HP switch number...
Operating System - Linux
1829243
Members
2183
Online
109987
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2009 03:58 AM
03-22-2009 03:58 AM
Attribute IP address based on HP switch number/port number ?
Hello,
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 ?
Regards,
Mr Lejeune
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 ?
Regards,
Mr Lejeune
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2009 04:23 PM
03-22-2009 04:23 PM
Re: Attribute IP address based on HP switch number/port number ?
Interesting question. Not that I know of but maybe I can suggest some workarounds.
1. Assumptions your DHCP server can assign a IP address to a MAC address.
2. SNMP supported switch.
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.
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.
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.
1. Assumptions your DHCP server can assign a IP address to a MAC address.
2. SNMP supported switch.
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.
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2009 02:54 PM
03-23-2009 02:54 PM
Re: Attribute IP address based on HP switch number/port number ?
If you allocate IP addresses by switch ports, what happens when someone plugs a hub with two or more hosts into one port?
MK
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2009 04:39 AM
03-24-2009 04:39 AM
Re: Attribute IP address based on HP switch number/port number ?
It doesn't matter because I use a radius authentification system based on mac address, so one device is allowed per port.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP