{"id":36,"date":"2006-07-14T16:20:39","date_gmt":"2006-07-14T04:20:39","guid":{"rendered":"http:\/\/craig.dubculture.co.nz\/blog\/2006\/07\/14\/using-udev-to-set-network-card-order\/"},"modified":"2007-04-14T14:34:14","modified_gmt":"2007-04-14T02:34:14","slug":"using-udev-to-set-network-card-order","status":"publish","type":"post","link":"http:\/\/craig.dubculture.co.nz\/blog\/2006\/07\/14\/using-udev-to-set-network-card-order\/","title":{"rendered":"Using udev to set network card order"},"content":{"rendered":"<p>Don't you hate it when you update a Linux machine, and the order that the network cards are detected, changes?<\/p>\n<div class='code_parent'>\n<div class='code_title'>Code:<\/div>\n<div class='code_child'><code><\/p>\n<div class='pre_container'>\n<pre>ifconfig | grep HWaddr | awk ' { printf\"KERNEL==\\\"eth*\\\",SYSFS{address}==\\\"%s\\\", NAME=\\\"%s\\\"\\n\", $5, $1; }' &gt; \/etc\/udev\/rules.d\/10-network-cards.rules<\/pre>\n<\/div>\n<p><\/code><\/div>\n<\/div>\n<p>The cables don't change around, so neither should the order in which they come up.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Don't you hate it when you update a Linux machine, and the order that the network cards are detected, changes? Code: ifconfig | grep HWaddr | awk ' { printf\"KERNEL==\\\"eth*\\\",SYSFS{address}==\\\"%s\\\", NAME=\\\"%s\\\"\\n\", $5, $1; }' &gt; \/etc\/udev\/rules.d\/10-network-cards.rules The cables don't change around, so neither should the order in which they come up.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[66,68],"tags":[8,27],"_links":{"self":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/posts\/36"}],"collection":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":0,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"wp:attachment":[{"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/craig.dubculture.co.nz\/blog\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}