Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

IP Aliasing under Linux Slackware

Posted on 1997-12-07
2
Medium Priority
?
476 Views
Last Modified: 2013-12-05
I have IP aliasing already configured and working, however the person who helped me do this is currently unavailble to me and I need to add another IP to the group of subdomains currently running. I am running the latest linux kernel, I have already added the subdomain name and IP to my /var/named/pz/kia-sequoia.com file, but I think there are other steps and files I am missing. could anyone PLEASE give me a step by step on this? and the file names and approx locations of the files needing modification, and also the processes I will have to restart..... THANK YOU !!!
0
Comment
Question by:lorenkia
[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
2 Comments
 
LVL 1

Accepted Solution

by:
XMS earned 300 total points
ID: 1587053
I don't know the precise location of the network configuration files on Slackware systems, however, here's a step by step on setting it all up manually :

1) Run ifconfig with no extra parameters. This will give you a list of all interfaces currently in use on your system. The aliased interfaces should apper like eth0:0, eth0:1 etc.

2) Find the first unused instance (eth0:n) of the ethernet interface and ifconfig it with the new IP, netmask etc., (like for example "ifconfig eth0:2 192.168.1.69 netmask 255.255.255.192")

3) Add a route to the new subnet via the newly-configured aliased interface. (like for example "route add -net 192.168.1.64 netmask 255.255.255.192 dev eth0:2")

4) Make _sure_ you have made all the required alterations to the name server's config files.

5) Find the PID of the name server daemon (named) and restart it with a "kill -HUP".

At this point, all the requested changes should be active. Make all necessary tests.

As I said before, I have no clue at all on the location of the network configuration scripts on Slackware, but you may try the following to locate them (this is lame, but with great chances to work):

Recursively grep through the files in /etc for eth0:0 or whatever the name of your previously aliased interface's name is. There should be no more than 2-3 matching files.
Add the lines that you had previously typed on the command line (the ifconfig and the route command) to the files where you think they fit in. :-)

Good luck.

0
 

Author Comment

by:lorenkia
ID: 1587054
ok I figured out the first part, got as far as the route add, it tells me that I need to specify AF or address families, can you please tell me what this is? or at least what might fit the bill? it just won't do this last little thing.....
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
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…

609 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