Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 487
  • Last Modified:

IP Aliasing under Linux Slackware

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
lorenkia
Asked:
lorenkia
1 Solution
 
XMSCommented:
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
 
lorenkiaAuthor Commented:
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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now