static-device-names: Fix README
Signed-off-by: Jean-Sebastien Trottier <jst@qualipsoft.com>
This commit is contained in:
parent
0830379fc6
commit
5a027de26f
|
@ -48,12 +48,12 @@ device name like "eth0".
|
|||
Add a new `device` section called "WAN" to hold options for the network device
|
||||
named "eth0":
|
||||
|
||||
uci set static-device-names.WAN=device
|
||||
uci set static-device-names.WAN.name=eth0
|
||||
uci set static-device-names.WAN=device
|
||||
uci set static-device-names.WAN.name=eth0
|
||||
|
||||
Here's how to assign a specific **MAC address** to the "WAN" device section:
|
||||
|
||||
uci set static-device-names.WAN.mac=08:00:27:7a:4e:87
|
||||
uci set static-device-names.WAN.mac=08:00:27:7a:4e:87
|
||||
|
||||
Matching based on MAC address is the preferred method since all Ethernet
|
||||
devices have a unique "burnt-in" MAC address (with the exception of virtual
|
||||
|
@ -63,35 +63,35 @@ For advanced setups, you may want to match based on other criteria below.
|
|||
|
||||
Here's how to assign **PCI ID** for a PCI or USB device:
|
||||
|
||||
uci set static-device-names.WAN.pci_id=10ec:8125
|
||||
uci set static-device-names.WAN.pci_id=10ec:8125
|
||||
|
||||
PCI IDs are in the industry-standard hexadecimal "\<vendor\>:\<device\>" form.
|
||||
|
||||
Or, a **PCI slot**:
|
||||
|
||||
uci set static-device-names.WAN.pci_slot=07:00.0
|
||||
uci set static-device-names.WAN.pci_slot=07:00.0
|
||||
|
||||
PCI slots are assigned by the Linux kernel and are generally in the
|
||||
"\<bus\>:\<device\>.\<func\>" form.
|
||||
|
||||
Or, a **USB slot**:
|
||||
|
||||
uci set static-device-names.WAN.usb_slot=9-1:1.0
|
||||
uci set static-device-names.WAN.usb_slot=9-1:1.0
|
||||
|
||||
USB slots are assigned by the Linux kernel and are generally in the
|
||||
"\<bus\>-\<port\>:\<port\>.\<if\>" form.
|
||||
|
||||
Don't forget to commit the configuration changes:
|
||||
|
||||
uci commit static-commit-names
|
||||
uci commit static-commit-names
|
||||
|
||||
Any of `mac`, `pci_id`, `pci_slot`, and `usb_slot` options can be lists.
|
||||
This can be useful if configurations are staged or tested on a virtual machine
|
||||
or meant to be used on multiple devices:
|
||||
|
||||
uci add_list static-device-names.WAN.mac=08:00:27:7a:4e:87
|
||||
uci add_list static-device-names.WAN.mac=08:00:28:8a:5e:88
|
||||
uci commit static-commit-names
|
||||
uci add_list static-device-names.WAN.mac=08:00:27:7a:4e:87
|
||||
uci add_list static-device-names.WAN.mac=08:00:28:8a:5e:88
|
||||
uci commit static-commit-names
|
||||
|
||||
> [!TIP]
|
||||
> To determine the criteria that match your inserted devices, run the service's
|
||||
|
|
Loading…
Reference in New Issue