Timothy A. Holmes wrote:
>> On Monday 06 November 2006 21:59, Hans-Werner Hilse wrote:
>>
>>     
>>>> I would like to reverse those two names, so that snort 
>>>>         
>> can use the 
>>     
>>>> higher capacity card for its sniffer.  I am not quite 
>>>>         
>> sure where to 
>>     
>>>> look even to begin this process.
>>>>         
>>> You can give arbitrary names to those interfaces by configuring udev
>>> appropriately:
>>>
>>> e.g. /etc/udev/rules.d/10-my-own-rules:
>>> ---snip
>>> KERNEL=="eth*", SYSFS{address}=="00:12:34:fe:dc:ba", NAME="eth-lan"
>>> KERNEL=="eth*", SYSFS{address}=="00:56:78:98:76:54", 
>>>       
>> NAME="eth-sniff"
>>     
>>> ---snip
>>>       
>> You could also just tell Snort to use eth1. But this is useful info.
>>
>> - Noven
>> -- 
>>     
>>> -- Novensiles divi Flamen --<
>>> ---- Miles Militis Fons ----<
>>>       
>>     
>
> Ive been trying to do that - I can do it from command line, but not from
> init script which is why im trying to change the names around
>
> Timothy A. Holmes
> IT Manager / Network Admin / Web Master / Computer Teacher
> Medina Christian Academy
> A Higher Standard...
>
>
>   

Another approach:
When linux loads the modules it assigns the names by the order of
loading. If the module for the Intel NIC is loaded first it becomes
eth0, the next NIC whose module is loaded becomes eth1 and so on.
If you have your drivers built into the kernel then the names are
related to the PCI slots - the NIC connected to the PCI with lowest
number become eth0 and so on. So you could change their places on the
main board.


HTH

-- 
Best regards,
Daniel


-- 
gentoo-user@gentoo.org mailing list

Reply via email to