- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- IP Aliasing using DHCP in RedHat
Categories
Company
Local Language
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
Forums
Discussions
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
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО01-21-2004 01:40 PM
тАО01-21-2004 01:40 PM
Thanks for all your help!
Ty
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2004 02:27 PM
тАО01-21-2004 02:27 PM
Re: IP Aliasing using DHCP in RedHat
You have a Linux box as a client?
And you want it to get *two* addressese from a DHCP server?
If that is the case, then you set up two interfaces both of which request an address. It should get two different addresses.
(see /etc/sysconfig/network-scripts/ifcfg-eth* and /usr/share/doc/initscripts-*/sysinit.txt).
Or is it the other way around, you've got a RH DHCP server, and you want to assign a Windows PC two addresses?
I'm not sure if this can be done, but you could try over-loading the config, specifying a configuration for the MAC, and forcing two addrseses into it. No guarantee's there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2004 02:50 PM
тАО01-21-2004 02:50 PM
Re: IP Aliasing using DHCP in RedHat
====================
Output from command
====================
/sbin/ifup eth0
Determining IP information for eth0... done.
error in ifcfg-eth0:1: didn't specify device or ipaddr
::::::::::::::
ifcfg-eth0
::::::::::::::
DEVICE="eth0"
BOOTPROTO="dhcp"
ONBOOT="yes"
IPADDR=""
NETMASK=""
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"
::::::::::::::
ifcfg-eth0:1
::::::::::::::
DEVICE="eth0:1"
BOOTPROTO="dhcp"
ONBOOT="yes"
IPADDR=""
NETMASK=""
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2004 04:15 PM
тАО01-21-2004 04:15 PM
SolutionI'm gonna make some assumptions here..
You're using RH 7.x, which uses 'pump' to get it's DHCP data.
It appears as if 'pump' is limited to physical interfaces for retrieving an address.
In reality, a DHCP server uses the mac (hardware) address of a network device to differentiate it from other requests, so it probably can't assign two IP's to the same MAC.
Sorry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2004 05:22 PM
тАО01-21-2004 05:22 PM
Re: IP Aliasing using DHCP in RedHat
If you follow the examples above and create a few virtual interfaces, and then monitor the interface and virutuals using a gui tool you will see this:
All the traffic is really going through the main ip address. Its tough to see the advantage of doing this with DHCP even if you could.
What you could do is have a script run right after network configuration is done.
The main ip address is say 192.168.0.20
The script does and ifconfg eth0:1 192.168.0.21 netmask 255.255.255.0 , based on adding 1 to the fourth octet of the IP address.
You just need to make sure the DHCP side reserves both addresses at run time, because this methodology will be blow up if the second ip address isn't reserved.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2004 07:18 PM
тАО01-21-2004 07:18 PM
Re: IP Aliasing using DHCP in RedHat
Unfortunately I share our specialists advice. DHCP process is getting an IP for a MAC address, once it's done, the process is happy with that.
Maybe another way round (not sure it would work) could be, creating an alias as you did, to assign a new mac address yourself to it (being sure it's not used on your LAN of course) and check if by chance the system would assimilate this to 2 different NICs...
Good luck
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-21-2004 11:39 PM
тАО01-21-2004 11:39 PM
Re: IP Aliasing using DHCP in RedHat
Although I have never done it, there is nothing in the dhcpd man pages that suggests you can't do this, you just supply the interface name (eth0 eth0:1) on the dhcpd command line.
My suggestion therefore is to ignore all the red hat specific startup scripts and do it yourself using ifconfig and dhcpd and putting them in whatever amounts to rc.local on red hat these days.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2004 12:59 AM
тАО01-22-2004 12:59 AM
Re: IP Aliasing using DHCP in RedHat
Mark,
How can you specify to bring up a interface using a DHCP address with ifconfig?? I am not sure how to do that, I only know how to bring it up and specify the static IP it shoudl bind to...
Thanks for all your help...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2004 01:21 AM
тАО01-22-2004 01:21 AM