All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about netmask format
@ 2014-10-13 22:23 Orion Poplawski
       [not found] ` <loom.20141014T001540-462-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Orion Poplawski @ 2014-10-13 22:23 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Question about netmask format
       [not found] ` <loom.20141014T001540-462-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
@ 2014-10-24  7:08   ` Harald Hoyer
       [not found]     ` <5449FB04.9030803-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Harald Hoyer @ 2014-10-24  7:08 UTC (permalink / raw)
  To: Orion Poplawski, initramfs-u79uwXL29TY76Z2rM5mHXA

On 14.10.2014 00:23, Orion Poplawski wrote:
> 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

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Question about netmask format
       [not found]     ` <5449FB04.9030803-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2014-10-31 16:55       ` Orion Poplawski
       [not found]         ` <5453BEE5.3030908-CVdf0l11yl+B+jHODAdFcQ@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Orion Poplawski @ 2014-10-31 16:55 UTC (permalink / raw)
  To: Harald Hoyer, initramfs-u79uwXL29TY76Z2rM5mHXA

On 10/24/2014 01:08 AM, Harald Hoyer wrote:
> On 14.10.2014 00:23, Orion Poplawski wrote:
>> 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
> 
> 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.

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.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion-CfuHcwXVrUc@public.gmane.org
Boulder, CO 80301                   http://www.nwra.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Question about netmask format
       [not found]         ` <5453BEE5.3030908-CVdf0l11yl+B+jHODAdFcQ@public.gmane.org>
@ 2014-11-03 11:28           ` Harald Hoyer
       [not found]             ` <545766EC.9020408-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Harald Hoyer @ 2014-11-03 11:28 UTC (permalink / raw)
  To: Orion Poplawski, initramfs-u79uwXL29TY76Z2rM5mHXA

On 31.10.2014 17:55, Orion Poplawski wrote:
> On 10/24/2014 01:08 AM, Harald Hoyer wrote:
>> On 14.10.2014 00:23, Orion Poplawski wrote:
>>> 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
>>
>> 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.
> 
> 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.
> 

add "rd.debug" to the kernel cmdline.

Then inspect /run/initramfs/rdsosreport.txt

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Question about netmask format
       [not found]             ` <545766EC.9020408-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2014-11-03 19:08               ` Orion Poplawski
  0 siblings, 0 replies; 5+ messages in thread
From: Orion Poplawski @ 2014-11-03 19:08 UTC (permalink / raw)
  To: Harald Hoyer, initramfs-u79uwXL29TY76Z2rM5mHXA

On 11/03/2014 04:28 AM, Harald Hoyer wrote:
> 
> 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.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion-CfuHcwXVrUc@public.gmane.org
Boulder, CO 80301                   http://www.nwra.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-03 19:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-13 22:23 Question about netmask format Orion Poplawski
     [not found] ` <loom.20141014T001540-462-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2014-10-24  7:08   ` Harald Hoyer
     [not found]     ` <5449FB04.9030803-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-10-31 16:55       ` Orion Poplawski
     [not found]         ` <5453BEE5.3030908-CVdf0l11yl+B+jHODAdFcQ@public.gmane.org>
2014-11-03 11:28           ` Harald Hoyer
     [not found]             ` <545766EC.9020408-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-11-03 19:08               ` Orion Poplawski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.