Use udev script write_net_rules.