[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some administrativ questions



In opeBSD adding additional IPs to the NIC is very simple byt not without
the gotchas.
If you can afford reboot all you have to do is to add entry in
/etc/hostname.XXX file for the NIC.
Let say the NIC you want to add alias IP is eth0 and has already main IP
192.168.1.1/24
in /etc/hostname.eth0 you will add the second line:
inet 192.168.1.1 255.255.255.0 NONE
inet alias 192.168.1.2 255.255.255.255 NONE
and reboot.
If you cannot reboot, use ifconfig:
# ifconfig eth0 inet alias 192.168.1.2 netmask 255.255.255.255
Keep eye on that netmask though. If you applying only one alias IP it has to
be 255.255.255.255
Because ifconfig supports applying blocks of IP aliases at once you can
mess-up tings especially with your ssh access only.
to check the aliases on the NIC use
# ifconfig -A

Janusz


-----Original Message-----
From: owner-misc_(_at_)_openbsd_(_dot_)_org [mailto:owner-misc_(_at_)_openbsd_(_dot_)_org]On Behalf Of
van Helsing
Sent: Friday, June 11, 2004 12:19 PM
To: misc_(_at_)_openbsd_(_dot_)_org
Subject: Some administrativ questions


I've a WebServer wich runs OpenBSD and all is working very well.
But I've 2 questions now.

I follow the howto to keep my OS stable but there also games in the
CVS-source.

How could I exclude the games when I feth the source and rebuild the
complete OS? I've no need for games on a webserver.

The other questions deals with Apache.
I use Name-Based-Virtual-Hosting now but I would to swith to
IP-Based-Virtual-Hosting becourse I would set up https for the
subdomains.
Could somebody give me tips how to make openBSD multihomingable (X Ips
-> 1 NIC)?

I've no experience with this and I don't know how to configure the NIC
rightly for that. Do I've to use the 'vlandev' (man ifconfig) to set up
another IP for the same NIC?

I just fear to make something wrong becourse I can maintain the server
only via SSH.

Thank you for any help and ideas.

vh

[demime 0.98d removed an attachment of type application/pgp-signature]



Visit your host, monkey.org