local $/ = "\n}\n"; while (<>) { s/ ^ (fixed-address .*\n) (hardware ethernet .*\n) /$2$1/xm; print; }