# How do I permit my computer system to describe itself as any kind of ip on 192.168.1. *?

I'm making use of a Mac OS X, and also I'm attempting to begin making use of VirtualHost capability with Apache2. I've developed and also filled up a hosts submit that resembles this:

127.0.0.1      localhost
192.168.0.71    name1
192.168.0.71    name2


Right currently, I can just make use of 192.168.0.71 since that is my computer system is IP on my LAN. Just how can I make a wide series of IPs all indicate my very same computer system?

(I do not recognize a lot, if anything, concerning LANs. I really did not also set up my LAN, I'm simply utilizing my cordless router as one ... I have not done any kind of unique networking.)

0
2019-05-18 22:29:36
Source Share

What you require are digital NICs. I do not recognize specifically just how to do it in MacOS X, yet it appears something similar to this will certainly do:

ifconfig eth0 alias 192.168.1.1
ifconfig eth0 alias 192.168.1.2
ifconfig eth0 alias 192.168.1.3


and so on. or possibly:

ifconfig eth0:1 alias 192.168.1.1
ifconfig eth0:2 alias 192.168.1.2


Another alternatives is that if you are running a DNS web server, simply add CNAMEs (pen names) for your major A document. This is even more hassle-free and also less complicated, IMHO. Allow me recognize if you require any kind of aid with this.

0
2019-05-21 06:54:47
Source

You can set your network card to have 253 fixed IP addresses - yet that is actually not an excellent way to do this.

If you simply intend to host numerous websites on one IP address, usage name - based digital host as opposed to IP digital hosts (the apache matching of Host Headers in Windows/IIS).

Extra details ... http://httpd.apache.org/docs/2.0/vhosts/name-based.html

0
2019-05-21 06:53:17
Source