Page 1 of 1

2x ethernet cards?

Posted: Fri Nov 26, 2004 5:28 pm
by volkan
Hi,
Can you have 2 ethernet cards in one server to speed it up?, (both get conntected to a router), If you can, if im trying to access apache via local IP. Would the IP of both cards go to the same site?
eg
192.168.0.1 (card1)
192.168.0.2 (card 2)


will they go to the same apache site?

also will the remote Ip be the same? or will there be config errors?

Cheers
Volkan

...

Posted: Fri Nov 26, 2004 5:42 pm
by Calimero
Use this way if you want to do it with Domain Name Server:

In your DNS server:

For the first adress - create one A record, web.your-domain.com

for the second one - create one CNAME record, web2.your-domain.com


They would go to the same machine - just not sure will they work if you try to access them trough the internet.


Other way is trough settings of php.ini, which I'm not sure of.

Reffer to :

viewtopic.php?t=26558&highlight=virtual


But if you test your site in a local network - you don't need 2 ethernet cards - one will do the job.

Hope this helps.

Re: 2x ethernet cards?

Posted: Fri Nov 26, 2004 9:26 pm
by jl
volkan wrote:Hi,
Can you have 2 ethernet cards in one server to speed it up?, (both get conntected to a router), If you can, if im trying to access apache via local IP. Would the IP of both cards go to the same site?
eg
192.168.0.1 (card1)
192.168.0.2 (card 2)
Yes you can have two cards. And I believe apache needs to be bound to a particular IP to recognise requests from it. You can decide in the apache config what happens to requests on that IP. Remotely you'll be able to access it via either IP, or however you configure Apache.

How are you imagining you'll get a speed increase from doing that?

Posted: Sat Nov 27, 2004 5:36 am
by volkan
Hi
I was imaginging it would increase my bandwidth speed, am I wrong?,

Posted: Sat Nov 27, 2004 6:06 am
by timvw
if it alreay increases something, it would be from your server to your router. usually, that is not the bottleneck..