On Sat, 5 Jan 2002, David Kramer wrote:
> I know this can be done, but looking at the man pages for the network
> configuration files, I am at a loss.
>
> I currently have a linux box connected to a DSL line with a static IP
> address and domain name. I now have a second IP address, and will soon
> have another domain name.
This will work...but did you know that you don't need a separate IP to
have a second domain name? Unless you need to run a secure web server,
it's not a necessity, any more.
> 1) How do I set up the network configuration to accept two IP addresses on
> the same card?
Most people will tell you to use netcfg to accomplish this. I use webmin,
myself...or, you can just create a file called
/etc/sysconfig/network-scripts/ifcfg-eth0:0 (the :0, :1, etc all indicate
virtual interfaces...the one card, eth0, will then answer to any IP
assigned to eth0:x)
The format of this file is the same as ifcfg-eth0, but doesn't need
everything that is in the ifcfg-eth0 file. You'll really only need the
following lines:
DEVICE=eth0:0 (or eth0:1, etc)
IPADDR=xxx.xxx.xxx.xxx (put in the new IP address, here)
NETMASK=yyy.yyy.yyy.yyy (if your new IP address is in the same range as
the old one, this should be the same as the netmask in ifcfg-eth0.
Otherwise, you should put in whichever netmask you were assigned.)
> 2) If I want to have different email addresses on the second domain name,
> how can I do that?
The specifics vary, depending on which MTA you're using, but in most
cases, it revolves around using the virtual user table. Check your MTA's
documentation regarding implementation of virtual users and domains.
> 3) Can I have the same usernames (i.e. the real linux logins) work with
> both domain names?
Yes...they will by default.
> 4) I assume some sendmail.cf tweaking is in order. I remember there's a
> file, I think sendmail.cw, that holds a list of domain names this machine
> collects mail for. There must be more changes than that, though.
Sendmail.cw will need all the domains for which the machine will accept
mail. Sendmail.cf won't need any tweaking unless it doesn't already have
pointes to the virtual user table (the file is usually called
virtusertable).
Hope that helps.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list