[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:
mii-tool -v seems to work
Quote:
Originally Posted by sneakyimp
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
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