lkml.org 
[lkml]   [2004]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Dummy network device
| From: Rick Knight
|
| David S. Miller wrote:
|
| >On Tue, 09 Mar 2004 15:11:48 -0800
| >Rick Knight <rick@rlknight.com> wrote:
| >
| >
| >
| >>I found the answer. From the archive. Decided to look at dummy.c and
| >>numdummies=1, changed it to numdummies=3 and rebuilt that module. Works
| >>like a charm.
| >>
| >>Question/Suggestion, couldn't this be made an option at configuration?
| >>Kind of like number_of_ptys=256.
| >>
| >>
| >
| >Specify "numdummies=3" on the module load command line.
| >
| >
| >It's supposed to be changeable at module load time, without
| >rebuilding it. Try this e.g.:
| >
| >modprobe dummy numdummies=4
| >
| >--
| >~Randy
| >
| >
| Randy, David,
|
| Thanks for the replies.
|
| I did try 'modprobe dummy numdummies=3', however, I didn't quote
| numdummies=3. Are the quote required? Is there a modprobe.conf option?
| Probably "options dummy "numdummies=3".

No, the quotes are not required. This works for me:
modprobe dummy numdummies=3

Using /etc/modprobe.conf also works, as you suggested, but without
the quotation marks:
options dummy numdummies=3

Either way shows this in /proc/net/dev:

dummy0: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
dummy1: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
dummy2: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0


HTH.
--
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.035 / U:0.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site