Hi,

I've got a NIC that gets one address via dhcp and another one statically 
assigned. This is done with Fedora's legacy network service (systemctl start 
network) and these config files

/etc/sysconfig/network-scripts/ifcfg-enp0s25:

HWADDR=XX:XX:XX:XX:XX:XX
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=enp0s25
ONBOOT=yes
and

/etc/sysconfig/network-scripts/ifcfg-enp0s25:0:

TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.99.4
PREFIX=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME=static-ip
ONBOOT=yes
which works just fine:

# ip addr show
...
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP 
group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.68/24 brd 192.168.1.255 scope global dynamic enp0s25
       valid_lft 6887sec preferred_lft 6887sec
    inet 192.168.99.4/24 brd 192.168.99.255 scope global enp0s25:0
       valid_lft forever preferred_lft forever
    inet6 fe80::2ad2:44ff:fe7d:c66d/64 scope link 
       valid_lft forever preferred_lft forever

How can I achieve the same with NetworkManager? If I just disable the legacy 
network service and start NetworkManager with the same set of config files, 
I'll just get an IP address from the dhcp server (it seems the ifcfg-enp0s25:0 
file is simply ignored)

Any pointers are greatly appreciated!
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to