How to create persistent device dummy0 on CentOS 7.4?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I need to give my server some additional IPs as IPsec VPN endpoint addresses (weird setup where our customer insists we use some of their public IPs on our end of the tunnel).



The way I had it set up on an old CentOS 5 was through /etc/sysconfig/network-scripts/ifcfg-dummy0 and ifcfg-dummy0:1, :2, etc.



This doesn't seem to work in CentOS 7.4. I've got this ifcfg-dummy0:



[root@vpn ~]# cat /etc/sysconfig/network-scripts/ifcfg-dummy0 
DEVICE=dummy0
ONBOOT=yes
IPADDR=12x.x.x.20
NETMASK=255.255.255.255


And I've got the dummy module loaded and the interface exists:



[root@vpn ~]# ip a
....
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 9e:49:da:4f:cb:b4 brd ff:ff:ff:ff:ff:ff


Unfortunately the address doesn't come up after reboot and even bringing it up manually doesn't work:



[root@vpn ~]# ifup dummy0
Error: Connection activation failed: No suitable device found for this connection.


I guess I'll have to somehow configure it through NetworkManager? I only have SSH access to the server so can't use any of the GUI tools.










share|improve this question









New contributor




Fer Dah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1




    There's a NetworkManager-tui package ("yum install" it) which provides a text based menu for Network Manager. Useful for ssh sessions!
    – Stephen Harris
    Nov 20 at 2:14














up vote
0
down vote

favorite












I need to give my server some additional IPs as IPsec VPN endpoint addresses (weird setup where our customer insists we use some of their public IPs on our end of the tunnel).



The way I had it set up on an old CentOS 5 was through /etc/sysconfig/network-scripts/ifcfg-dummy0 and ifcfg-dummy0:1, :2, etc.



This doesn't seem to work in CentOS 7.4. I've got this ifcfg-dummy0:



[root@vpn ~]# cat /etc/sysconfig/network-scripts/ifcfg-dummy0 
DEVICE=dummy0
ONBOOT=yes
IPADDR=12x.x.x.20
NETMASK=255.255.255.255


And I've got the dummy module loaded and the interface exists:



[root@vpn ~]# ip a
....
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 9e:49:da:4f:cb:b4 brd ff:ff:ff:ff:ff:ff


Unfortunately the address doesn't come up after reboot and even bringing it up manually doesn't work:



[root@vpn ~]# ifup dummy0
Error: Connection activation failed: No suitable device found for this connection.


I guess I'll have to somehow configure it through NetworkManager? I only have SSH access to the server so can't use any of the GUI tools.










share|improve this question









New contributor




Fer Dah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1




    There's a NetworkManager-tui package ("yum install" it) which provides a text based menu for Network Manager. Useful for ssh sessions!
    – Stephen Harris
    Nov 20 at 2:14












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I need to give my server some additional IPs as IPsec VPN endpoint addresses (weird setup where our customer insists we use some of their public IPs on our end of the tunnel).



The way I had it set up on an old CentOS 5 was through /etc/sysconfig/network-scripts/ifcfg-dummy0 and ifcfg-dummy0:1, :2, etc.



This doesn't seem to work in CentOS 7.4. I've got this ifcfg-dummy0:



[root@vpn ~]# cat /etc/sysconfig/network-scripts/ifcfg-dummy0 
DEVICE=dummy0
ONBOOT=yes
IPADDR=12x.x.x.20
NETMASK=255.255.255.255


And I've got the dummy module loaded and the interface exists:



[root@vpn ~]# ip a
....
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 9e:49:da:4f:cb:b4 brd ff:ff:ff:ff:ff:ff


Unfortunately the address doesn't come up after reboot and even bringing it up manually doesn't work:



[root@vpn ~]# ifup dummy0
Error: Connection activation failed: No suitable device found for this connection.


I guess I'll have to somehow configure it through NetworkManager? I only have SSH access to the server so can't use any of the GUI tools.










share|improve this question









New contributor




Fer Dah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I need to give my server some additional IPs as IPsec VPN endpoint addresses (weird setup where our customer insists we use some of their public IPs on our end of the tunnel).



The way I had it set up on an old CentOS 5 was through /etc/sysconfig/network-scripts/ifcfg-dummy0 and ifcfg-dummy0:1, :2, etc.



This doesn't seem to work in CentOS 7.4. I've got this ifcfg-dummy0:



[root@vpn ~]# cat /etc/sysconfig/network-scripts/ifcfg-dummy0 
DEVICE=dummy0
ONBOOT=yes
IPADDR=12x.x.x.20
NETMASK=255.255.255.255


And I've got the dummy module loaded and the interface exists:



[root@vpn ~]# ip a
....
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 9e:49:da:4f:cb:b4 brd ff:ff:ff:ff:ff:ff


Unfortunately the address doesn't come up after reboot and even bringing it up manually doesn't work:



[root@vpn ~]# ifup dummy0
Error: Connection activation failed: No suitable device found for this connection.


I guess I'll have to somehow configure it through NetworkManager? I only have SSH access to the server so can't use any of the GUI tools.







centos rhel systemd networkmanager






share|improve this question









New contributor




Fer Dah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Fer Dah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 20 at 6:27









Rui F Ribeiro

38.2k1475125




38.2k1475125






New contributor




Fer Dah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 20 at 1:06









Fer Dah

101




101




New contributor




Fer Dah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Fer Dah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Fer Dah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 1




    There's a NetworkManager-tui package ("yum install" it) which provides a text based menu for Network Manager. Useful for ssh sessions!
    – Stephen Harris
    Nov 20 at 2:14












  • 1




    There's a NetworkManager-tui package ("yum install" it) which provides a text based menu for Network Manager. Useful for ssh sessions!
    – Stephen Harris
    Nov 20 at 2:14







1




1




There's a NetworkManager-tui package ("yum install" it) which provides a text based menu for Network Manager. Useful for ssh sessions!
– Stephen Harris
Nov 20 at 2:14




There's a NetworkManager-tui package ("yum install" it) which provides a text based menu for Network Manager. Useful for ssh sessions!
– Stephen Harris
Nov 20 at 2:14















active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Fer Dah is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f482876%2fhow-to-create-persistent-device-dummy0-on-centos-7-4%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








Fer Dah is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















Fer Dah is a new contributor. Be nice, and check out our Code of Conduct.












Fer Dah is a new contributor. Be nice, and check out our Code of Conduct.











Fer Dah is a new contributor. Be nice, and check out our Code of Conduct.













 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f482876%2fhow-to-create-persistent-device-dummy0-on-centos-7-4%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)