Solved

IP Aliasing and kernel 2.2.16 vs 2.2.19

Posted on 2001-06-12
5
217 Views
Last Modified: 2010-03-18
I'm building a Slackware server for Web hosting that will need to use IP based hosting for SSL.  The kernel I currently have is 2.2.16 and I have been told that 2.2.16 does not support IP Aliasing so I cannot assign multiple IP addresses to the same NIC.  I have also been told that I should upgrade to 2.2.19.

Is there a workaround on 2.2.16 that will allow me to use multiple addresses on the same NIC or do I have to go to the 2.2.19 kernel?

For that matter, does the 2.2.19 kernel support IP aliasing?

TIA,
Diana
0
Comment
Question by:dianam
5 Comments
 
LVL 1

Expert Comment

by:vreddypatil
ID: 6182570
I think 2.2.16 supports ip aliasing, You have to conifgure
your kernel for ip aliasing
Or just try this to know wheteher you kernel supports ip aliasisng ot not.
Linux# ifconfig eth:0 192.168.1.1 netmask 255.255.255.0 up
if it gives error thenn you have to enable support for aliasing in kernel configuration.

Hope this helps

--Vijayapal
0
 

Author Comment

by:dianam
ID: 6183282
Thanks for your comment but I have already tried that.  I found out from the Slackware forum that 2.2.16 does not include ip_alias.o so there is no aliasing support to enable in that particular kernel.

Again, thank you for responding.
Diana
0
 
LVL 5

Expert Comment

by:vsamtani
ID: 6185263
Diana:

Kernel 2.2.12 on a redhat distribution definitely includes ip aliasing support. It doesn't include ip_alias.o - aliasing is compiled into the kernel, rather than made available as a module. The ifconfig command quoted above isn't quite correct - it needs to be

ifconfig eth0:0 <ipaddress> netmask <netmask> up

and it needs to be executed as root. Then execute ifconfig to examine the results.

If it doesn't work, then you have a kernel which has been compiled without aliasing support, either built-in or as a module. In this case, I would recommend acquiring the kernel sources and recompiling. As you're building a web server, this is not a bad idea anyway, because you'll be able to fine-tune the kernel for optimal performance as well.


Vijay
0
 
LVL 2

Expert Comment

by:pheur
ID: 6190690
An old problem with default slackware kernel is that is not compiled with IP aliasing (and IP aliasing is not available as a module). You will have to simply recompile your kernel. If kernel recompilation scares you, do not enable or disable anything except support for IP aliasing (it is in networking options group). To recompile your kernel, install teh kernel source (k1/linux.tgz) and do that:

su
cd /usr/src/linux
make menuconfig
....(enable IP aliasing in config)....
make dep bzlilo modules modules_install
reboot

----
Radu-Adrian Feurdean
Brainbench Linux MVP
 www.brainbench.com

0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8276203
All,
I am unlocking this question in preparation for cleanup.  I will return in 7 days to finalize this question.  Please leave any recommendations for the final state of this question, I will take all recommendations into consideration.  Failing any feedback, I may decide in 7 days to delete or PAQ this question with no refund.  Thanks.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now