mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Orion Poplawski <orion-CVdf0l11yl+B+jHODAdFcQ@public.gmane.org>,
	initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Question about netmask format
Date: Fri, 24 Oct 2014 09:08:52 +0200	[thread overview]
Message-ID: <5449FB04.9030803@redhat.com> (raw)
In-Reply-To: <loom.20141014T001540-462-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>

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.

  parent reply	other threads:[~2014-10-24  7:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5449FB04.9030803@redhat.com \
    --to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=orion-CVdf0l11yl+B+jHODAdFcQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox