Solved

IP Aliasing and kernel 2.2.16 vs 2.2.19

Posted on 2001-06-12
5
236 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

16 Experts available now in Live!

Get 1:1 Help Now