I am setting up a connection to Optimum business with a static ip

  • Ip address 47.x.x.62
  • Default gateway 47.x.x.61
  • subnet mask
  • Primary DNS server 167.x.x.138
  • Seconday DNS Server 167.x.x.4

I am trying to set up eth0 (eno1) to be on the static IP and eth1 (eno2) to be on the network (LAN) eno2 is up and working but eno1 is not.

I don't seem to be getting to commands to set up to the name server correct any suggestions?

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eno1
#iface eno1 inet dhcp
iface eno1 inet static
    address 47.x.x.62
    gateway 47.x.x.61

# The primary network interface
auto eno2
#iface eno2 inet dhcp
iface eno2 inet static
  • this is for ubuntu 16.04 – Gary Apr 23 '18 at 14:31
  • eno2 is supposed to be statis as well? Are you sure the gateway is accepting static ips? – Philippe Delteil Apr 23 '18 at 15:18
  • What exactly is your problem? – AsenM Apr 23 '18 at 15:22
  • What do you mean by 'I don't seem to be getting to commands to set up to the name server correct' ? what name server? – Philippe Delteil Apr 23 '18 at 15:22
  • on my optimun business account i have to set up IP subnet gateway and primary/secondary dns server to access it – Gary Apr 23 '18 at 15:23

Your question is a bit unclear, but in case you want to set custom DNS you can do it in few ways.

  1. add dns-nameservers {IP} to your interfaces file.
  2. or add nameserver {IP} to /etc/resolv.conf (this is not permanent solution).
  • when i put dns-nameservers in on ifconfig I get host name lookup failure – Gary Apr 23 '18 at 15:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.