1 |
Timothy A. Holmes wrote: |
2 |
>> On Monday 06 November 2006 21:59, Hans-Werner Hilse wrote: |
3 |
>> |
4 |
>> |
5 |
>>>> I would like to reverse those two names, so that snort |
6 |
>>>> |
7 |
>> can use the |
8 |
>> |
9 |
>>>> higher capacity card for its sniffer. I am not quite |
10 |
>>>> |
11 |
>> sure where to |
12 |
>> |
13 |
>>>> look even to begin this process. |
14 |
>>>> |
15 |
>>> You can give arbitrary names to those interfaces by configuring udev |
16 |
>>> appropriately: |
17 |
>>> |
18 |
>>> e.g. /etc/udev/rules.d/10-my-own-rules: |
19 |
>>> ---snip |
20 |
>>> KERNEL=="eth*", SYSFS{address}=="00:12:34:fe:dc:ba", NAME="eth-lan" |
21 |
>>> KERNEL=="eth*", SYSFS{address}=="00:56:78:98:76:54", |
22 |
>>> |
23 |
>> NAME="eth-sniff" |
24 |
>> |
25 |
>>> ---snip |
26 |
>>> |
27 |
>> You could also just tell Snort to use eth1. But this is useful info. |
28 |
>> |
29 |
>> - Noven |
30 |
>> -- |
31 |
>> |
32 |
>>> -- Novensiles divi Flamen --< |
33 |
>>> ---- Miles Militis Fons ----< |
34 |
>>> |
35 |
>> |
36 |
> |
37 |
> Ive been trying to do that - I can do it from command line, but not from |
38 |
> init script which is why im trying to change the names around |
39 |
> |
40 |
> Timothy A. Holmes |
41 |
> IT Manager / Network Admin / Web Master / Computer Teacher |
42 |
> Medina Christian Academy |
43 |
> A Higher Standard... |
44 |
> |
45 |
> |
46 |
> |
47 |
|
48 |
Another approach: |
49 |
When linux loads the modules it assigns the names by the order of |
50 |
loading. If the module for the Intel NIC is loaded first it becomes |
51 |
eth0, the next NIC whose module is loaded becomes eth1 and so on. |
52 |
If you have your drivers built into the kernel then the names are |
53 |
related to the PCI slots - the NIC connected to the PCI with lowest |
54 |
number become eth0 and so on. So you could change their places on the |
55 |
main board. |
56 |
|
57 |
|
58 |
HTH |
59 |
|
60 |
-- |
61 |
Best regards, |
62 |
Daniel |
63 |
|
64 |
|
65 |
-- |
66 |
gentoo-user@g.o mailing list |