Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help newbie admin cause I can't find my guru 1

Status
Not open for further replies.

vonhaak

Programmer
Jul 24, 2001
1
US
I have a box on a colocation with the backbone.I have it set thru my Unix guru to resolve at a set ip address for my domain. What I need to do is add multiple ip's and domains (virtual sites)for clients. I believe you use ifconfig but I can't reach my guru. I have 30 sites I must put up. So the question is how do I assign an ip address to a particular folder and have it resolve there ? I am running Unix with free BSD. Any help would be a godsend. Example I have an ip 216.179.235.40 which I want to assign to resolve to a folder under the public_html called mortgage, but not have it interfere with my main domain. Also I need the client to be able to ftp in to that ip.

Thanks.


Phil
 
Hi Vonhaak,
You question is not clear for me. I think you are talking to add new system in domain so other system can see that right? ifconfig command is to configure network card not the entry.

Patel
 
Vonhaak - you *can* have multiple IP addresses bound to
a single card but the way to do that varies between
each version of unix, and isn't supported in all versions.
For instance, I think it was first supported in HPUX 10.20.

I don't know about *30* IP addresses on a single card
though.

From the Solaris man page for ifconfig:

LOGICAL INTERFACES

Solaris TCP/IP allows multiple logical interfaces to be
associated with a physical network interface. This allows a
single machine to be assigned multiple IP addresses, even
though it may have only one network interface. Physical net-
work interfaces have names of the form driver-name
physical-unit-number, while logical interfaces have names of
the form driver-name physical-unit-number:logical-unit-
number. A physical interface is configured into the system
using the plumb sub-command. For example:

ifconfig le0 plumb
Logical interfaces do not need to be "plumbed". Once a phy-
sical interface has been "plumbed", logical interfaces asso-
ciated with the physical interface can be configured by nam-
ing them in subsequent ifconfig commands. However, only
root can create or delete a logical interface. For example,
when executed by root the command:

ifconfig le0:1
allocates a logical interface associated with the physical
interface le0 and reports its status. When executed by a
non-privileged user, ifconfig will report the status of the
interface if it already exists, or give an error message if
it does not exist.

A logical interface can be configured with parameters (
address, netmask, and so on) different from the physical
interface with which it is associated. Logical interfaces
that are associated with the same physical interface can be
given different parameters as well. Each logical interface
must be associated with a physical interface. So, for exam-
ple, the logical interface le0:1 can only be configured
after the physical interface le0 has been plumbed.

To delete a logical interface, simply name the interface
specifying an address of 0, after ensuring that the inter-
face has been marked as "down". For example, the command:

ifconfig le0:1 0 down
will delete the logical interface le0:1.


Hope this gives you some idea of what to look for in freebsd, can't help you with assigning web servers to particular IP addresses though.
Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top