Setting up /etc/network/interfaces

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








up vote
1
down vote

favorite












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 255.255.255.252

  • 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
netmask 255.255.255.252
gateway 47.x.x.61

# The primary network interface
auto eno2
#iface eno2 inet dhcp
iface eno2 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.1






share|improve this question






















  • this is for ubuntu 16.04
    – Gary
    Apr 23 at 14:31










  • eno2 is supposed to be statis as well? Are you sure the gateway is accepting static ips?
    – Philippe Delteil
    Apr 23 at 15:18










  • What exactly is your problem?
    – AsenM
    Apr 23 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 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 at 15:23















up vote
1
down vote

favorite












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 255.255.255.252

  • 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
netmask 255.255.255.252
gateway 47.x.x.61

# The primary network interface
auto eno2
#iface eno2 inet dhcp
iface eno2 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.1






share|improve this question






















  • this is for ubuntu 16.04
    – Gary
    Apr 23 at 14:31










  • eno2 is supposed to be statis as well? Are you sure the gateway is accepting static ips?
    – Philippe Delteil
    Apr 23 at 15:18










  • What exactly is your problem?
    – AsenM
    Apr 23 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 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 at 15:23













up vote
1
down vote

favorite









up vote
1
down vote

favorite











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 255.255.255.252

  • 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
netmask 255.255.255.252
gateway 47.x.x.61

# The primary network interface
auto eno2
#iface eno2 inet dhcp
iface eno2 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.1






share|improve this question














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 255.255.255.252

  • 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
netmask 255.255.255.252
gateway 47.x.x.61

# The primary network interface
auto eno2
#iface eno2 inet dhcp
iface eno2 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.1








share|improve this question













share|improve this question




share|improve this question








edited Apr 23 at 14:35









Terrance

17.2k23784




17.2k23784










asked Apr 23 at 14:14









Gary

61




61











  • this is for ubuntu 16.04
    – Gary
    Apr 23 at 14:31










  • eno2 is supposed to be statis as well? Are you sure the gateway is accepting static ips?
    – Philippe Delteil
    Apr 23 at 15:18










  • What exactly is your problem?
    – AsenM
    Apr 23 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 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 at 15:23

















  • this is for ubuntu 16.04
    – Gary
    Apr 23 at 14:31










  • eno2 is supposed to be statis as well? Are you sure the gateway is accepting static ips?
    – Philippe Delteil
    Apr 23 at 15:18










  • What exactly is your problem?
    – AsenM
    Apr 23 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 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 at 15:23
















this is for ubuntu 16.04
– Gary
Apr 23 at 14:31




this is for ubuntu 16.04
– Gary
Apr 23 at 14:31












eno2 is supposed to be statis as well? Are you sure the gateway is accepting static ips?
– Philippe Delteil
Apr 23 at 15:18




eno2 is supposed to be statis as well? Are you sure the gateway is accepting static ips?
– Philippe Delteil
Apr 23 at 15:18












What exactly is your problem?
– AsenM
Apr 23 at 15:22




What exactly is your problem?
– AsenM
Apr 23 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 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 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 at 15:23





on my optimun business account i have to set up IP subnet gateway and primary/secondary dns server to access it
– Gary
Apr 23 at 15:23











1 Answer
1






active

oldest

votes

















up vote
1
down vote













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).





share|improve this answer






















  • when i put dns-nameservers in on ifconfig I get host name lookup failure
    – Gary
    Apr 23 at 15:27










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027479%2fsetting-up-etc-network-interfaces%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













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).





share|improve this answer






















  • when i put dns-nameservers in on ifconfig I get host name lookup failure
    – Gary
    Apr 23 at 15:27














up vote
1
down vote













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).





share|improve this answer






















  • when i put dns-nameservers in on ifconfig I get host name lookup failure
    – Gary
    Apr 23 at 15:27












up vote
1
down vote










up vote
1
down vote









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).





share|improve this answer














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).






share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 23 at 15:27

























answered Apr 23 at 15:25









AsenM

4607




4607











  • when i put dns-nameservers in on ifconfig I get host name lookup failure
    – Gary
    Apr 23 at 15:27
















  • when i put dns-nameservers in on ifconfig I get host name lookup failure
    – Gary
    Apr 23 at 15:27















when i put dns-nameservers in on ifconfig I get host name lookup failure
– Gary
Apr 23 at 15:27




when i put dns-nameservers in on ifconfig I get host name lookup failure
– Gary
Apr 23 at 15:27

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1027479%2fsetting-up-etc-network-interfaces%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491