Reordering network cards

FLEURIOT Damien ml-SPAM at my.gd
Tue Jan 12 15:30:38 UTC 2010


Hello list,

I've got an annoying issue with Proxmox 1.4 randomizing network
card order, like this for example:


model bridge MAC
e1000 vmbr1  EA:5F:04:94:A4:21
e1000 vmbr9  9E:56:7A:17:A5:34
e1000 vmbr8  D2:4F:A2:C6:96:F4

Now this means I'll have the following mappings in FreeBSD 7.2:
vmbr1 -> em0
vmbr9 -> em1
vmbr8 -> em2

When I'd like to have the following order:
vmbr1 -> em0
vmbr9 -> em2
vmbr8 -> em1


I'm afraid there's no option for reordering the cards from proxmox
so I'd like to be able to force the order myself, by identifying
cards with their MAC address for example.

I've found the following sysctl vars but they're read-only:
# sysctl -a|egrep "dev\.em\.[0-9]\.%location"
dev.em.0.%location: slot=3 function=0 handle=\_SB_.PCI0.S3__
dev.em.1.%location: slot=4 function=0 handle=\_SB_.PCI0.S4__
dev.em.2.%location: slot=5 function=0 handle=\_SB_.PCI0.S5__



Do you have any suggestion guys ?
Please mind the -SPAM tag in my address when replying ;)


Regards,

--
Dam


More information about the freebsd-stable mailing list