Re: Using any network interface whatsoever (solution?)



Mike Meyer wrote:
In <4438A0A3.3050600@xxxxxxxxxxxx>, Darren Pilgrim <darren.pilgrim@xxxxxxxxxxxx> typed:
You could test two different drivers on the same hardware and you wouldn't have to duplicate or modify your ifconfig lines in /etc/rc.conf, just run:

Yup, and this is an advantage. On the other hand, if you tie the
device name to the slot number (the real goal), you can swap different
hardware into that slot without having to modify any configuration
information at all.

It wouldn't be too difficult to extend the configuration to allow entries like this:

Interface0_addr="MAC 01:23:45:67:89:ab"
Interface1_addr="PCI 0:1:2" # pci0, device 1, function 2
Interface2_addr="USB 0:1:2" # usb0, addr 1, port 2

Add some bits to grok dmesg or pciconf/usbdevs or maybe even trigger from devd and there you go.

I should mention that the second and third options could be broken by the addition or removal of a card with a PCI bridge or USB root hub on it.

Of course, this doesn't help the OP's problem of wanting to be able to
address the sole interface in a system without knowing it's name in
advance. Maybe a feature to provide a default name for an interface if
one isn't found in the config file would do that.

# ifconfig `ifconfig -l link` name GenericName

_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • RE: Share AppSettings configuration between a service Web and an asp.net web application
    ... the IIS root site and modify the AppSettings section in it, ... Here is a test function which open & modify web.config file in IIS site ... Microsoft MSDN Online Support Lead ... Share AppSettings configuration between a service Web and an ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Virtual Memory
    ... You'd be better off modifying the registry through the ... optimize you swap file settings. ... >> is receiving virtual memory errors with the pagefile. ... There was not an article for 2000 to modify ...
    (microsoft.public.win2000.registry)
  • RE: IE: cant change home page from MSN.com
    ... On the System configuration window click on StartUp Tab and uncheck the ... Click on it and select Modify and in the Data: http://www.bbc.co.uk for Ex ... click Ok and Exit the Registry Editor change the home page on the IE ... Properties also and Reboot and see if the issue resolved. ...
    (microsoft.public.windowsxp.general)
  • Re: [Full-Disclosure] Is Mozillas "patch" enough?
    ... >An attacker can exploit the ability to modify the user's configuration in ... make Mozilla use a trojanized Chrome or a trojanized ... At that point they already have the ability to run code on the box ... because they have to be able to do that to modify the config files. ...
    (Full-Disclosure)
  • Re: Automatic Memory Sizing - CEPC/CE 4.2
    ... Since you already have built images for 256 and 128 MB configuration, ... believe you do know how to modify the OEMAddressTable. ... For memory Auto Sizing, the codes are already available in i486 CSP codes. ...
    (microsoft.public.windowsce.platbuilder)