Switch ISPs and lost internet connection on debian server












0














Version



root@server:~# cat /etc/debian_version
8.11


Can't resolve host names



root@server:~# ping www.google.com
ping: unknown host www.google.com


ifconfig -a



root@server:/# ifconfig -a
docker0 Link encap:Ethernet HWaddr 02:42:cc:08:fa:30
inet addr:172.17.0.1 Bcase:172.17.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth0 Link encap:Ethernet HWaddr 48:5b:39:c1:ce54
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:15390 (15.0 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.255.0.0
inet6 addr: ::1/128 Scope:Host
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:14591 errors:0 dropped:0 overruns:0 frame:0
TX packets:14591 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:4115174 (3.0 MiB) TX bytes:4115174 (3.9 MiB)


ping router IP (expected default gateway)



root@server:/# ping 192.168.xxx.xxx
connect: Network is unreachable


Contents of /etc/hosts



root@server:~# cat /etc/hosts
# This configuration file is auto-generated.
# WARNING: Do not edit this file, your changes will be lost.
127.0.0.1 localhost
127.0.1.1 server.local server

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-localnet
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


Contents of my /etc/network/interfaces file:



root@server:~# cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

#eth0n network interface
auto eth0 allow-hotplug eth0
iface eth0 inet dhcp
iface eth0 inet6 manual
pre-down ip -6 addr flush dev $IFACE


Contents of /etc/nsswitch.conf



root@server:/# cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the glibc-doc-refence' and info' packages installed, try:
# `info libc "Name Service Switch" for information about this file.

passwd: compat
group: compat
shadow: compat

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis









share|improve this question
























  • What is your question? I note your eth interface first not have an IP address assigned to it, which is probably the core of your problem. Maybe ia cable/plug fault with new equipment. Possibly (but less likely a DHCP issue or port speed negotiation issue.
    – davidgo
    Dec 9 at 22:54
















0














Version



root@server:~# cat /etc/debian_version
8.11


Can't resolve host names



root@server:~# ping www.google.com
ping: unknown host www.google.com


ifconfig -a



root@server:/# ifconfig -a
docker0 Link encap:Ethernet HWaddr 02:42:cc:08:fa:30
inet addr:172.17.0.1 Bcase:172.17.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth0 Link encap:Ethernet HWaddr 48:5b:39:c1:ce54
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:15390 (15.0 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.255.0.0
inet6 addr: ::1/128 Scope:Host
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:14591 errors:0 dropped:0 overruns:0 frame:0
TX packets:14591 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:4115174 (3.0 MiB) TX bytes:4115174 (3.9 MiB)


ping router IP (expected default gateway)



root@server:/# ping 192.168.xxx.xxx
connect: Network is unreachable


Contents of /etc/hosts



root@server:~# cat /etc/hosts
# This configuration file is auto-generated.
# WARNING: Do not edit this file, your changes will be lost.
127.0.0.1 localhost
127.0.1.1 server.local server

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-localnet
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


Contents of my /etc/network/interfaces file:



root@server:~# cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

#eth0n network interface
auto eth0 allow-hotplug eth0
iface eth0 inet dhcp
iface eth0 inet6 manual
pre-down ip -6 addr flush dev $IFACE


Contents of /etc/nsswitch.conf



root@server:/# cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the glibc-doc-refence' and info' packages installed, try:
# `info libc "Name Service Switch" for information about this file.

passwd: compat
group: compat
shadow: compat

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis









share|improve this question
























  • What is your question? I note your eth interface first not have an IP address assigned to it, which is probably the core of your problem. Maybe ia cable/plug fault with new equipment. Possibly (but less likely a DHCP issue or port speed negotiation issue.
    – davidgo
    Dec 9 at 22:54














0












0








0







Version



root@server:~# cat /etc/debian_version
8.11


Can't resolve host names



root@server:~# ping www.google.com
ping: unknown host www.google.com


ifconfig -a



root@server:/# ifconfig -a
docker0 Link encap:Ethernet HWaddr 02:42:cc:08:fa:30
inet addr:172.17.0.1 Bcase:172.17.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth0 Link encap:Ethernet HWaddr 48:5b:39:c1:ce54
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:15390 (15.0 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.255.0.0
inet6 addr: ::1/128 Scope:Host
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:14591 errors:0 dropped:0 overruns:0 frame:0
TX packets:14591 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:4115174 (3.0 MiB) TX bytes:4115174 (3.9 MiB)


ping router IP (expected default gateway)



root@server:/# ping 192.168.xxx.xxx
connect: Network is unreachable


Contents of /etc/hosts



root@server:~# cat /etc/hosts
# This configuration file is auto-generated.
# WARNING: Do not edit this file, your changes will be lost.
127.0.0.1 localhost
127.0.1.1 server.local server

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-localnet
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


Contents of my /etc/network/interfaces file:



root@server:~# cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

#eth0n network interface
auto eth0 allow-hotplug eth0
iface eth0 inet dhcp
iface eth0 inet6 manual
pre-down ip -6 addr flush dev $IFACE


Contents of /etc/nsswitch.conf



root@server:/# cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the glibc-doc-refence' and info' packages installed, try:
# `info libc "Name Service Switch" for information about this file.

passwd: compat
group: compat
shadow: compat

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis









share|improve this question















Version



root@server:~# cat /etc/debian_version
8.11


Can't resolve host names



root@server:~# ping www.google.com
ping: unknown host www.google.com


ifconfig -a



root@server:/# ifconfig -a
docker0 Link encap:Ethernet HWaddr 02:42:cc:08:fa:30
inet addr:172.17.0.1 Bcase:172.17.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth0 Link encap:Ethernet HWaddr 48:5b:39:c1:ce54
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:15390 (15.0 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.255.0.0
inet6 addr: ::1/128 Scope:Host
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:14591 errors:0 dropped:0 overruns:0 frame:0
TX packets:14591 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:4115174 (3.0 MiB) TX bytes:4115174 (3.9 MiB)


ping router IP (expected default gateway)



root@server:/# ping 192.168.xxx.xxx
connect: Network is unreachable


Contents of /etc/hosts



root@server:~# cat /etc/hosts
# This configuration file is auto-generated.
# WARNING: Do not edit this file, your changes will be lost.
127.0.0.1 localhost
127.0.1.1 server.local server

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-localnet
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


Contents of my /etc/network/interfaces file:



root@server:~# cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

#eth0n network interface
auto eth0 allow-hotplug eth0
iface eth0 inet dhcp
iface eth0 inet6 manual
pre-down ip -6 addr flush dev $IFACE


Contents of /etc/nsswitch.conf



root@server:/# cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the glibc-doc-refence' and info' packages installed, try:
# `info libc "Name Service Switch" for information about this file.

passwd: compat
group: compat
shadow: compat

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis






linux networking router debian dns






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 9 at 17:18

























asked Dec 9 at 16:58









teiva

12




12












  • What is your question? I note your eth interface first not have an IP address assigned to it, which is probably the core of your problem. Maybe ia cable/plug fault with new equipment. Possibly (but less likely a DHCP issue or port speed negotiation issue.
    – davidgo
    Dec 9 at 22:54


















  • What is your question? I note your eth interface first not have an IP address assigned to it, which is probably the core of your problem. Maybe ia cable/plug fault with new equipment. Possibly (but less likely a DHCP issue or port speed negotiation issue.
    – davidgo
    Dec 9 at 22:54
















What is your question? I note your eth interface first not have an IP address assigned to it, which is probably the core of your problem. Maybe ia cable/plug fault with new equipment. Possibly (but less likely a DHCP issue or port speed negotiation issue.
– davidgo
Dec 9 at 22:54




What is your question? I note your eth interface first not have an IP address assigned to it, which is probably the core of your problem. Maybe ia cable/plug fault with new equipment. Possibly (but less likely a DHCP issue or port speed negotiation issue.
– davidgo
Dec 9 at 22:54















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1382121%2fswitch-isps-and-lost-internet-connection-on-debian-server%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1382121%2fswitch-isps-and-lost-internet-connection-on-debian-server%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

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

 ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕