Solved

IP Aliasing under Linux Slackware

Posted on 1997-12-07
2
460 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
2 Comments
 
LVL 1

Accepted Solution

by:
XMS earned 100 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Creating a Samba server for a small office. Ubuntu Linux and Samba can breathe new life into a retired PC and save an office money on new hardware/software. Our example server will have two hard disks, one exclusively for storing shared data. …
Users are often faced with high disk consumption without really knowing where the largest amount of data resides. Disk Usage Analyzer (aka Baobab) is is a graphical, menu-driven application to analyse disk usage in any Gnome environment and can e…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

831 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