Skip to contentSkip to conversation

Question about netmask format

DISCUSSION Orion Poplawski 2 participants 5 messages Oct 13, 2014 – Nov 3, 2014 4 messages not in the archive

lore
Share & tools
lore
#0 lore raw

The dracut.cmdline man page lists:

ip=<client-IP>:[<peer>]:<gateway-IP>:<netmask>:<client_hostname>:<interface>:
{none|off|dhcp|on|any|dhcp6|auto6|ibft}[:[<dns1>][:<dns2>]]

for explicit (static) network configuration. To my old mind, "netmask" refers to something of the form 255.X.X.X. However if I use that form with EL7 or Fedora 20, it fails with a message like:

Bringing up interface eth0: Error: an inet prefix is expected rather than "10.8.0.0/255.255.255.0".

It works if I give it a CIDR suffix. It appears that the netmask for used to work.

- Orion

#2 lore raw
In reply to a message not in the archive
Quoted 9 lines · Orion Poplawski

The dracut.cmdline man page lists:

ip=<client-IP>:[<peer>]:<gateway-IP>:<netmask>:<client_hostname>:<interface>:

   {none|off|dhcp|on|any|dhcp6|auto6|ibft}[:[<dns1>][:<dns2>]]

for explicit (static) network configuration. To my old mind, "netmask" refers to something of the form 255.X.X.X. However if I use that form with EL7 or Fedora 20, it fails with a message like:

Quoted 7 lines

Bringing up interface eth0: Error: an inet prefix is expected rather than "10.8.0.0/255.255.255.0".

It works if I give it a CIDR suffix. It appears that the netmask for used to work.

- Orion

Hmm, in my case

	"ip=192.168.50.101::192.168.50.1:255.255.255.0:iscsi-1:ens3:off"

results in:

ip addr flush dev ens3
ip addr add 192.168.50.101/255.255.255.0 brd + dev ens3 ip route replace default via 192.168.50.1 dev ens3 echo iscsi-1 > /proc/sys/kernel/hostname

Which works on my machine.

#4 lore raw
In reply to a message not in the archive
Quoted 22 lines · Harald Hoyer
Quoted 9 lines · Orion Poplawski

The dracut.cmdline man page lists:

ip=<client-IP>:[<peer>]:<gateway-IP>:<netmask>:<client_hostname>:<interface>:

   {none|off|dhcp|on|any|dhcp6|auto6|ibft}[:[<dns1>][:<dns2>]]

for explicit (static) network configuration. To my old mind, "netmask" refers to something of the form 255.X.X.X. However if I use that form with EL7 or Fedora 20, it fails with a message like:

Quoted 7 lines

Bringing up interface eth0: Error: an inet prefix is expected rather than "10.8.0.0/255.255.255.0".

It works if I give it a CIDR suffix. It appears that the netmask for used to work.

- Orion

Hmm, in my case

	"ip=192.168.50.101::192.168.50.1:255.255.255.0:iscsi-1:ens3:off"
Quoted 8 lines

results in:

ip addr flush dev ens3
ip addr add 192.168.50.101/255.255.255.0 brd + dev ens3 ip route replace default via 192.168.50.1 dev ens3 echo iscsi-1 > /proc/sys/kernel/hostname

Which works on my machine.

My full (obsufscated) args are:

method=http://centos/7.0.1406/os/x86_64 ksdevice=eth0 lang= text net.ifnames=0 ks=http://cobbler/ks ip=4.X.X.X::4.X.X.X:255.255.225.224:test.domain.com:eth0:none:10.10.10.1:10.10.10.2 kssendmac

No idea how to determine what commands were run as a result of this.

This is an anaconda install, so not sure what interaction there might be with that.

Same result with F21, rawhide is uninstallable today so can try that.

Signature · 5 lines
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       [email protected]
Boulder, CO 80301                   http://www.nwra.com
#6 lore raw
In reply to a message not in the archive
Quoted 39 lines · Orion Poplawski
Quoted 22 lines · Harald Hoyer
Quoted 9 lines · Orion Poplawski

The dracut.cmdline man page lists:

ip=<client-IP>:[<peer>]:<gateway-IP>:<netmask>:<client_hostname>:<interface>:

   {none|off|dhcp|on|any|dhcp6|auto6|ibft}[:[<dns1>][:<dns2>]]

for explicit (static) network configuration. To my old mind, "netmask" refers to something of the form 255.X.X.X. However if I use that form with EL7 or Fedora 20, it fails with a message like:

Quoted 7 lines

Bringing up interface eth0: Error: an inet prefix is expected rather than "10.8.0.0/255.255.255.0".

It works if I give it a CIDR suffix. It appears that the netmask for used to work.

- Orion

Hmm, in my case

	"ip=192.168.50.101::192.168.50.1:255.255.255.0:iscsi-1:ens3:off"
Quoted 8 lines

results in:

ip addr flush dev ens3
ip addr add 192.168.50.101/255.255.255.0 brd + dev ens3 ip route replace default via 192.168.50.1 dev ens3 echo iscsi-1 > /proc/sys/kernel/hostname

Which works on my machine.

My full (obsufscated) args are:

method=http://centos/7.0.1406/os/x86_64 ksdevice=eth0 lang= text net.ifnames=0 ks=http://cobbler/ks ip=4.X.X.X::4.X.X.X:255.255.225.224:test.domain.com:eth0:none:10.10.10.1:10.10.10.2 kssendmac

Quoted 7 lines

No idea how to determine what commands were run as a result of this.

This is an anaconda install, so not sure what interaction there might be with that.

Same result with F21, rawhide is uninstallable today so can try that.

add "rd.debug" to the kernel cmdline.

Then inspect /run/initramfs/rdsosreport.txt

#8 lore raw
In reply to a message not in the archive
Quoted 5 lines · Harald Hoyer

add "rd.debug" to the kernel cmdline.

Then inspect /run/initramfs/rdsosreport.txt

Turns out I had 255.255.225.224 instead of 255.255.255.224. Finally started at it enough to catch it. Sorry for the noise.

Signature · 5 lines
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       [email protected]
Boulder, CO 80301                   http://www.nwra.com