I am following the tutorial given in the link https://www.digitalocean.com/community/tutorials/how-to-enable-digitalocean-private-networking-on-existing-droplets#ubuntu-1604 to set up private IP in the existing droplet.I added this
auto eth1 iface eth1 inet static address Droplet_Private_IP/16auto eth1 iface eth1 inet static address Droplet_Private_IP/16
I substituted the ‘Droplet_Private_IP’ with my Pirvate IP and ran the command
“sudo systemctl restart networking”
Now I get the message
“Job for networking.service failed because the control process exited with error code. See “systemctl status networking.service” and “journalctl -xe” for details.”
sadly the tutorial doe not say anything as what to do if we get any error message so here I want to ask what to do?
I ran the command “systemctl status networking.service” and I get:
● networking.service - Raise network interfaces Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled Drop-In: /run/systemd/generator/networking.service.d └─50-insserv.conf-$network.conf Active: failed (Result: exit-code) since Sun 2018-06-03 10:40:48 UTC; 3min 57s ago Docs: man:interfaces(5) Process: 6245 ExecStop=/sbin/ifdown -a --read-environment --exclude=lo (code=exited, sta Process: 6328 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE) Process: 6321 ExecStartPre=/bin/sh -c [ “$CONFIGURE_INTERFACES” != “no” ] && [ -n "$(ifq Main PID: 6328 (code=exited, status=1/FAILURE)
Jun 03 10:40:46 Starting Raise network interfaces… Jun 03 10:40:48 Waiting for DAD… Done Jun 03 10:40:48 Cannot find device “eth1” Jun 03 10:40:48 Failed to bring up eth1. Jun 03 10:40:48 networking.service: Main process exited, code=ex Jun 03 10:40:48 Failed to start Raise network interfaces. Jun 03 10:40:48 networking.service: Unit entered failed state. Jun 03 10:40:48 networking.service: Failed with result 'exit-cod lines 1-19/19 (END)
Any help?
Thank you!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Why you have this duplicity in config ?
auto eth1
iface eth1 inet static
address DropletPrivateIP/16auto eth1
iface eth1 inet static
address DropletPrivateIP/16
You should have one definition in config:
auto eth1
iface eth1 inet static
address DropletPrivateIP/16
or try ( I never used /subnet, rather specify netmask ):
auto eth1
iface eth1 inet static
address DropletPrivateIP
netmask 255.255.0.0
Try reboot Droplet for networking changes. If Droplet hangs use console to comment out eth1 definition.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.