[OpenIndiana-discuss] Rename network interface

Thomas Wagner tom-oi-discuss at tom.bn-ulm.de
Wed Nov 23 12:06:53 UTC 2022


Hi Predrag,

instance numbering is made permanent in /etc/path_to_inst

Example:
grep e1000g path_to_inst
"/pci at 0,0/pci1af4,1100 at 3" 0 "e1000g"

So yours schould print something like "grep rge"
"/someonepath" 0 "rge"
"/someotherpath" 1 "rge"

So essentially it is a swap of the single "0" and "1".
You could delete the line with "0" and rename the "1" on
the other line to "0". 
The last step is rebuild the boot-archive to include a 
copy of the path_to_inst file and then reboot.

bootadm update-archive

Regards
Thomas



On Wed, Nov 23, 2022 at 12:40:32PM +0100, Predrag Zecevic via openindiana-discuss wrote:
> Hi all,
> 
> I have moved OI (rpool and other pools) from one PC to another with almost
> no problems (had to re-instate zpool cache devices, since partition
> enumeration was not done for them during zpool import operation).
> 
> Old PC has installed external (PCI) Realtek Network card and it was
> recognized as rge0.
> New PC have onboard different model Realtek Network cardand it is now
> indexed as rge1.
> 
> As rge0 card is not present anymore, how can I make OI to rename rge1 to
> rge0?
> (for example, zones are configured to use rge0, etc)
> 
> With best regards.
> 



More information about the openindiana-discuss mailing list