2x ethernet cards?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
volkan
Forum Commoner
Posts: 60
Joined: Sat Aug 21, 2004 1:12 pm
Location: London, United Kingdom

2x ethernet cards?

Post 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
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

...

Post 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.
jl
Forum Commoner
Posts: 53
Joined: Tue Nov 09, 2004 12:05 am

Re: 2x ethernet cards?

Post 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?
User avatar
volkan
Forum Commoner
Posts: 60
Joined: Sat Aug 21, 2004 1:12 pm
Location: London, United Kingdom

Post by volkan »

Hi
I was imaginging it would increase my bandwidth speed, am I wrong?,
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

if it alreay increases something, it would be from your server to your router. usually, that is not the bottleneck..
Post Reply