LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-22-2010, 09:26 PM   #1
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
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.
 
Old 11-23-2010, 05:23 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
[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 View Post
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 View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network stack behavior handling packets on multiple cores zman2245 Linux - Kernel 5 03-24-2010 12:41 PM
multiple network cards ahmad19 Linux - Networking 2 04-28-2008 03:04 PM
Multiple Network Cards ryanroler Slackware 11 01-14-2005 07:18 AM
multiple network cards in router Smerk Linux - Networking 4 03-06-2003 06:40 PM
VMWare and multiple network cards Syd Nicholson Linux - Networking 0 06-26-2001 06:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration