Skip to content

Instantly share code, notes, and snippets.

View Sugaroverdose's full-sized avatar

Sergei Shuykov Sugaroverdose

View GitHub Profile
@Sugaroverdose
Sugaroverdose / README.md
Last active December 28, 2023 07:28
Automatic creation of 70-persistent-net.rules on CentOS 7 with net.ifnames=0 and biosdevname=0

Automatic creation of 70-persistent-net.rules on CentOS 7 with net.ifnames=0 and biosdevname=0

All quoted scripts are direct copy from latest CentOS 6

  • Logon under root or sudo -s

  • Create "/lib/udev/write_net_rules" file with content:

#!/bin/sh -e
#
# Copyright (C) 2006 Marco d'Itri <[email protected]>