Switch ISPs and lost internet connection on debian server
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
add a comment |
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
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
add a comment |
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
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
linux networking router debian dns
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
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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
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
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