LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   multiple network cards in a LAMP stack - how to monitor, allocate? (https://www.linuxquestions.org/questions/linux-server-73/multiple-network-cards-in-a-lamp-stack-how-to-monitor-allocate-845928/)

sneakyimp 11-22-2010 09:26 PM

multiple network cards in a LAMP stack - how to monitor, allocate?
 
I'm wondering a couple of things about my LAMP stacks:

1) How do I get a list of all the network cards installed in a linux box? I've run this command and it shows 2 network cards which is probably all of them:
Code:

mii-tool -v
2) How can I check the percent utilization of a given network card? I.e., at any given time, what linux command will tell me the how much of a network card's bandwidth is being consumed? I've checked both ethtool and mii-tool and I don't really see any helpful stats.

3) How can I make sure that a linux box will optimally use both network cards? I'm a bit fuzzy on how IP addresses and network cards and hostnames work together.

Any information would be greatly appreciated.

frieza 11-23-2010 05:23 PM

[QUOTE=sneakyimp;4167692]I'm wondering a couple of things about my LAMP stacks:

1) How do I get a list of all the network cards installed in a linux box? I've run this command and it shows 2 network cards which is probably all of them:
Code:

mii-tool -v
mii-tool -v seems to work
Quote:

Originally Posted by sneakyimp (Post 4167692)
2) How can I check the percent utilization of a given network card? I.e., at any given time, what linux command will tell me the how much of a network card's bandwidth is being consumed? I've checked both ethtool and mii-tool and I don't really see any helpful stats.

you can use a program like gkrellm or something like that, ntop for text mode i believe which displays a real-time usage of several aspects of a machine (assuming you are running X on this machine)
Quote:

Originally Posted by sneakyimp (Post 4167692)
3) How can I make sure that a linux box will optimally use both network cards? I'm a bit fuzzy on how IP addresses and network cards and hostnames work together.

depends on how the network cards are configured, our office has a LAMP server with two nics, one is pointed at the router attached to the public internet connection and one at our office's internal LAN, and we have ssh/webmin etc... only listening to the internal network thus the server can only be administered from within the office


All times are GMT -5. The time now is 05:52 PM.