Adding a second IP address to RedHat Linux Vs. 4.2
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Adding a second IP address to RedHat Linux Vs. 4.2
I have several servers in our branch offices running Red Hat Linux vs. 4.2 with kernel vs. 2.0.30. The software company that provided the servers does not want to upgrade to a newer version of Linux because their software may not run on it. I want to add a second IP address to this configuration for routing and management capabilities but I'm not sure if a second IP is capable of being added on this old a kernel. Can someone tell me for sure? If it is able to, please steer me in the right direction for configuration.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
If you want to add an interface for management, it's better to add a second physical card configured to be on your management network (not the same subnet as the original NIC!).
You should really put together a plan to test the vendor's hardware on a newer version of Linux. RH 4 is over a decade old and potentially has dozens of unpatched security vulnerabilities.
That version of RedHat has 2.6 kernel which allows multiple ip addresses per nic. You can assign a second network ip address on the same nic with command:
ifconfig eth0:1 192.168.1.1
Both addresses should be on the same network unless you have VLAN capable switches.
That version of RedHat has 2.6 kernel which allows multiple ip addresses per nic. You can assign a second network ip address on the same nic with command:
ifconfig eth0:1 192.168.1.1
Both addresses should be on the same network unless you have VLAN capable switches.
According to another source I have, you may be thinking of the newer enterprise version. This is the old original version 4.2 that's about 10 or 12 years old.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
Quote:
Originally Posted by BWFinance
Thanks for the info. I'll look further into upgrading the kernel.
You're not going to be able to upgrade the kernel in place without breaking your userland interaction.
You can try using virtual interfaces on 2.0 kernel and see if it works. The worst that will happen is you will get an error message about that operation not being supported.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.