Setting up /etc/network/interfaces
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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
16.04 networking server network-manager dns
 |Â
show 2 more comments
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
16.04 networking server network-manager dns
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
 |Â
show 2 more comments
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
16.04 networking server network-manager dns
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
16.04 networking server network-manager dns
edited Apr 23 at 14:35
![](https://i.stack.imgur.com/1hPwN.jpg?s=32&g=1)
![](https://i.stack.imgur.com/1hPwN.jpg?s=32&g=1)
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
 |Â
show 2 more comments
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
 |Â
show 2 more comments
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.
- add
dns-nameservers IP
to your interfaces file. - 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 at 15:27
add a comment |Â
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.
- add
dns-nameservers IP
to your interfaces file. - 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 at 15:27
add a comment |Â
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.
- add
dns-nameservers IP
to your interfaces file. - 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 at 15:27
add a comment |Â
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.
- add
dns-nameservers IP
to your interfaces file. - or add
nameserver IP
to/etc/resolv.conf
(this is not permanent solution).
Your question is a bit unclear, but in case you want to set custom DNS you can do it in few ways.
- add
dns-nameservers IP
to your interfaces file. - or add
nameserver IP
to/etc/resolv.conf
(this is not permanent solution).
edited Apr 23 at 15:27
answered Apr 23 at 15:25
![](https://i.stack.imgur.com/rKDzT.png?s=32&g=1)
![](https://i.stack.imgur.com/rKDzT.png?s=32&g=1)
AsenM
4607
4607
when i put dns-nameservers in on ifconfig I get host name lookup failure
â Gary
Apr 23 at 15:27
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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