Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 2010 16:32:34 +0100
From:      FLEURIOT Damien <ml-SPAM@my.gd>
To:        freebsd-stable@freebsd.org
Subject:   Reordering network cards
Message-ID:  <20100112153232.GA65181@ks306450.kimsufi.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100112153232.GA65181>