Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Boot by mac address
2013-04-24, 10:09
Post: #1
Boot by mac address
Hi,

is there any solution to boot from a specific interface by mac address?

Code:
autoboot net0

Doesnt work reliable on some of my machines because net0 is sometimes net1 of the boot before. But i can identify my interfaces explicit by mac address. Any solution for that?

Just great would be:

Code:
autoboot 00:1f:bc:32:0a:c5
Find all posts by this user
Quote this message in a reply
2013-04-25, 15:39 (This post was last modified: 2013-04-25 15:40 by mcb30.)
Post: #2
RE: Boot by mac address
(2013-04-24 10:09)mino Wrote:  
Code:
autoboot net0

Doesnt work reliable on some of my machines because net0 is sometimes net1 of the boot before. But i can identify my interfaces explicit by mac address. Any solution for that?

You can use the iseq command to check the MAC address of an interface. For example:

Code:
set mac:hex 00:1f:bc:32:0a:c5
set bootif net0
iseq ${${bootif}/mac} ${bootmac} && goto boot ||
set bootif net1
iseq ${${bootif}/mac} ${bootmac} && goto boot ||
...
:boot
autoboot ${bootif}

There isn't currently any way to iterate over the available net devices, though such a facility may be added in the near future.

Michael
Visit this user's website Find all posts by this user
Quote this message in a reply
2013-04-26, 07:24
Post: #3
RE: Boot by mac address
Mino: You might also find interesting this embedded menu: https://gist.github.com/robinsmidsrod/3871687

It doesn't do exactly what you wanted, but it shows a similar way to choose which network interface to boot from interactively using a menu.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)