Quote:
Originally Posted by ashl3y_
but, what I'm doing is defining the network devices correct?
|
Correct.
Quote:
So if I setup apache to listen to lets say the IP address 1.1.1.1 and I added
Code:
auto eth0:1
iface eth0:1 inet static
address 1.1.1.1
netmask 255.255.255.0
It would start accepting connections?
|
That is basically correct. You first set up the network devices/interfaces and then you point your service to it if needed (which is apache in your case, but can be any service).
Out of the box apache will listen on port 80 on all available interfaces. This is true for many services (but the port that the service listens on is different).
As root user try the following command:
Code:
netstat -planA inet
The above command shows ip's, ports and service (local and remote) used by your box.
Quote:
I don't have to add a gateway do I even if some IP addresses are completely different?
|
That depends on who needs to contact this IP and from where. If this is local testing using a
private network range then you probably do not need one.
This might explain it better:
Default gateway
Quote:
Edit: seems like Apache is not configured correctly.. I can ssh into that IP address now! (Which is progress)
|
If you can ssh using the newly created IP address then the network part seems to be ok.
Quote:
Restarting web server: apache2(98)Address already in use: make_sock: could not bind to address 1.1.1.1
|
1.1.1.1 isn't a private IP range.
I do wonder why you are trying to set it up this way.