Red Hat Bugzilla – Bug 1380165
[NMCI] just last address specified in novice mode is written into profile
Last modified: 2017-08-01 05:19:37 EDT
Description of problem: [root@wlan-r2s10 ~]# nmcli -a connection add Connection type: wifi Interface name [*]: wlan0 SSID: qe-open There are 4 optional settings for Wi-Fi connection. Do you want to provide them? (yes/no) [yes] no There are 2 optional settings for IPv4 protocol. Do you want to provide them? (yes/no) [yes] yes You can specify this option more than once. Press <Enter> when you're done. IPv4 address (IP[/plen]) [none]: 1.2.3.4/24 IPv4 address (IP[/plen]) [none]: 2.1.3.4/24 IPv4 address (IP[/plen]) [none]: IPv4 gateway [none]: 1.1.1.1 There are 2 optional settings for IPv6 protocol. Do you want to provide them? (yes/no) [yes] no Connection 'wifi-wlan0' (c6f1b4ba-da58-4441-ba6f-73670e1eb3ac) successfully added. [root@wlan-r2s10 ~]# nmcli connection show wifi-wlan0 connection.id: wifi-wlan0 connection.uuid: c6f1b4ba-da58-4441-ba6f-73670e1eb3ac connection.stable-id: -- connection.interface-name: wlan0 connection.type: 802-11-wireless connection.autoconnect: yes connection.autoconnect-priority: 0 connection.timestamp: 1475093236 connection.read-only: no connection.permissions: connection.zone: -- connection.master: -- connection.slave-type: -- connection.autoconnect-slaves: -1 (default) connection.secondaries: connection.gateway-ping-timeout: 0 connection.metered: unknown connection.lldp: -1 (default) 802-11-wireless.ssid: qe-open 802-11-wireless.mode: infrastructure 802-11-wireless.band: -- 802-11-wireless.channel: 0 802-11-wireless.bssid: -- 802-11-wireless.rate: 0 802-11-wireless.tx-power: 0 802-11-wireless.mac-address: -- 802-11-wireless.cloned-mac-address: -- 802-11-wireless.generate-mac-address-mask:-- 802-11-wireless.mac-address-blacklist: 802-11-wireless.mac-address-randomization:default 802-11-wireless.mtu: auto 802-11-wireless.seen-bssids: 74:26:AC:2C:65:E0 802-11-wireless.hidden: no 802-11-wireless.powersave: default (0) ipv4.method: auto ipv4.dns: ipv4.dns-search: ipv4.dns-options: (default) ipv4.dns-priority: 0 ipv4.addresses: 2.1.3.4/24 ipv4.gateway: 1.1.1.1 Version-Release number of selected component (if applicable): NM-1.4.0-12 revealed by: nmcli - wifi - add connection in novice (nmcli -a) mode specifying IP setup
Created attachment 1205677 [details] [PATCH] cli: properly set multiple addresses in questionnaire mode
Patch applied: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=984d4f068456390352ab16416a55e835027ba66e https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?h=nm-1-4&id=11e3c88295a84aaeeb63b2be461f40faad41dfc8
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2299