ifcfg-rh: handle missing PREFIX by generating one
Based on what the initscripts do with ipcalc, which was tripping a few people up when they forgot to do PREFIX/NETMASK.
This commit is contained in:
@@ -54,7 +54,10 @@ EXTRA_DIST = \
|
||||
ifcfg-test-wired-static-routes-legacy \
|
||||
route-test-wired-static-routes-legacy \
|
||||
ifcfg-test-wired-ipv6-manual \
|
||||
route6-test-wired-ipv6-manual
|
||||
route6-test-wired-ipv6-manual \
|
||||
ifcfg-test-wired-static-no-prefix-8 \
|
||||
ifcfg-test-wired-static-no-prefix-16 \
|
||||
ifcfg-test-wired-static-no-prefix-24
|
||||
|
||||
check-local:
|
||||
@for f in $(EXTRA_DIST); do \
|
||||
|
@@ -0,0 +1,14 @@
|
||||
# Intel Corporation 82540EP Gigabit Ethernet Controller (Mobile)
|
||||
TYPE=Ethernet
|
||||
DEVICE=eth0
|
||||
HWADDR=00:11:22:33:44:ee
|
||||
BOOTPROTO=none
|
||||
ONBOOT=yes
|
||||
USERCTL=yes
|
||||
MTU=1492
|
||||
NM_CONTROLLED=yes
|
||||
DNS1=4.2.2.1
|
||||
DNS2=4.2.2.2
|
||||
IPADDR=172.16.3.4
|
||||
GATEWAY=172.16.3.1
|
||||
|
@@ -0,0 +1,14 @@
|
||||
# Intel Corporation 82540EP Gigabit Ethernet Controller (Mobile)
|
||||
TYPE=Ethernet
|
||||
DEVICE=eth0
|
||||
HWADDR=00:11:22:33:44:ee
|
||||
BOOTPROTO=none
|
||||
ONBOOT=yes
|
||||
USERCTL=yes
|
||||
MTU=1492
|
||||
NM_CONTROLLED=yes
|
||||
DNS1=4.2.2.1
|
||||
DNS2=4.2.2.2
|
||||
IPADDR=192.168.1.5
|
||||
GATEWAY=192.168.1.1
|
||||
|
@@ -0,0 +1,14 @@
|
||||
# Intel Corporation 82540EP Gigabit Ethernet Controller (Mobile)
|
||||
TYPE=Ethernet
|
||||
DEVICE=eth0
|
||||
HWADDR=00:11:22:33:44:ee
|
||||
BOOTPROTO=none
|
||||
ONBOOT=yes
|
||||
USERCTL=yes
|
||||
MTU=1492
|
||||
NM_CONTROLLED=yes
|
||||
DNS1=4.2.2.1
|
||||
DNS2=4.2.2.2
|
||||
IPADDR=10.11.12.13
|
||||
GATEWAY=10.0.0.1
|
||||
|
Reference in New Issue
Block a user