Solved

IP Aliasing and kernel 2.2.16 vs 2.2.19

Posted on 2001-06-12
5
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

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 video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

726 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