Ubuntu 16.04 instalação do roteador dns deu errado, perdeu a conexão com a Internet na reinicialização

0

Eu tinha pensado que tinha tudo correto que eu reiniciei e perdi minha conexão com a internet. A seguir estão os passos que tomei com o resultado final de nenhum acesso à Internet. Eu não sei o que eu perdi. Alguém pode rever minha lista para ver se eu perdi alguma coisa?

USB install Ubuntu desktop

apt-get install ubuntu-server

apt-get install isc-dhcp-server

ping -c3 8.8.8.8

apt-get update

apt-get upgrade

ping -c3 8.8.8.8

ufw status
Status: inactive

lsmod | grep r81
r8169 86016 0 mii 16384 1 r8169

lspci -nnk | grep 0200 -A3
07:04.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8169 PCI Gigabit Ethernet Controller [10ec:8169] (rev 10) 
Subsystem: Realtek Semiconductor Co., Ltd. RTL8169/8110 Family PCI Gigabit Ethernet NIC [10ec:8169] 
Kernel driver in use: r8169 Kernel modules: r8169 
07:09.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8169 PCI Gigabit Ethernet Controller [10ec:8169] (rev 10) 
Subsystem: Realtek Semiconductor Co., Ltd. RTL8169/8110 Family PCI Gigabit Ethernet NIC [10ec:8169] 
Kernel driver in use: r8169 Kernel modules: r8169 
3f:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5755 Gigabit Ethernet PCI Express [14e4:167b] (rev 02) 
Subsystem: Hewlett-Packard Company NetXtreme BCM5755 Gigabit Ethernet PCI Express [103c:2808] 
Kernel driver in use: tg3 Kernel modules: tg3

ifconfig
enp63s0 Link encap:Ethernet HWaddr 00:19:bb:4b:2c:76
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:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:17

enp7s4 Link encap:Ethernet HWaddr d4:6e:0e:00:b1:fb
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
RX packets:108 errors:0 dropped:0 overruns:0 frame:0 
TX packets:672 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 
txqueuelen:1000 RX bytes:25535 (25.5 KB) TX bytes:126475 (126.4 KB)

enp7s9 Link encap:Ethernet HWaddr 98:de:d0:03:8f:9c
inet addr:192.168.32.184 Bcast:192.168.32.255 
Mask:255.255.255.0 inet6 addr: 2607:f2c0:9353:5000:5215:fe12:a667:1010/64 Scope:Global 
inet6 addr: fe80::d3cf:ca:c8da:5743/64 Scope:Link 
inet6 addr: 2607:f2c0:9353:5000:e969:70bb:ca0f:ad/64 
Scope:Global UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
RX packets:97507 errors:0 dropped:0 overruns:0 frame:0 
TX packets:48627 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 
txqueuelen:1000 RX bytes:125908524 (125.9 MB) TX bytes:4451143 (4.4 MB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 
Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 
RX packets:1616 errors:0 dropped:0 overruns:0 frame:0 
TX packets:1616 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 
txqueuelen:1000 RX bytes:155678 (155.6 KB) TX bytes:155678 (155.6 KB)

cp /etc/NetworkManager/NetworkManager.conf /etc/NetworkManager/NetworkManager.conf.old

nano /etc/NetworkManager/NetworkManager.conf

[main] plugins.ifupdown,keyfile,ofono 
dns.dnsmasq 
[ifupdown] managed=true

cp /etc/dhcp/dhcpd.conf /etc/dhcp/dhcpd.conf.old

nano /etc/dhcp/dhcpd.conf

ddns-update-style none;

option domain-name google.com; 
option domain-name-servers 8.8.8.8, 8.8.4.4;

default-tease-time 650; max-lease-time 7250;

authoritative;

log-facility local7;

host whatup { hardware ethernet ; 
fixed-address 192.168.10.5; }

subnet 192.168.10.0 netmask 255.255.255.0 {
option routers 192.168.10.5; 
option subnet-mask 255.255.255.0; 
option domain-search google.com; 
option domain-name-servers 8.8.8.8; 8.8.4.4; 
range 192.168.10.10 192.168.10.15; 
}

subnet 192.168.15.0 netmask 255.255.255.0 { 
option routers 192.168.15.5; 
option subnet-mask 255.255.255.0; 
option domain-search google.com; 
option domain-name-servers 8.8.8.8; 8.8.4.4; 
range 192.168.15.10 192.168.15.15; 
}

subnet 192.168.20.0 netmask 255.255.255.0 { 
option routers 192.168.20.5; 
option subnet-mask 255.255.255.0; 
option domain-search google.com; 
option domain-name-servers 8.8.8.8; 8.8.4.4; 
range 192.168.20.10 192.168.10.15; }

cp /etc/network/interfaces /etc/network/interfaces.old

nano /etc/network/interfaces

auto lo 
ifrace lo inet loopback

alLow hotplug enp7s9 auto enp7s9
iface enp7s9 inet dhcp
iface enp7s9 inet static pre-up /sbin/ethtool -s enp7s9 speed 1000 duplex full
address 192.168.10.5 
netmask 255.255.255.0 
network 192.168.10.0 
gateway 192.168.18.1 
broadcast 192.168.10.255 
dns-nameserver 8.8.8.8, 8.8.4.4 
dns-search google.com

allow-hotplug enp7s4
auto enp7s4 iface enp7s4 inet static 
pre-up /sbin/ethtool -s enp7s4 speed 1000 duplex full
address 192.168.15.5 
netmask 255.255.255.0 
network 192.168.15.0 gateway 
192.168.15.1 
broadcast 192.168.15.255

allow-hotplug enp63s0 auto enp63s0 
iface enp63s0 inet static 
pre-up /sbin/ethtool -s enp63s0 speed 1000 duplex full 
address 192.168.20.5 
netmask 255.255.255.0 
network 192.168.20.0 
gateway 192.168.20.1 
broadcast 192.168.20.255

ping -c3 8.8.8.8

systemctl restart isc-dhcp-server.service

/etc/init.d/network-manager restart

ping -c3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 
64 bytes from 8.8.8.8: icmp_seq=1 ttl=60 time=47.3 ms 
64 bytes from 8.8.8.8: icmp_seq=2 ttl=60 time=48.1 ms 
64 bytes from 8.8.8.8: icmp_seq=3 ttl=60 time=48.2 ms 
--- 8.8.8.8 ping statistics --- 
3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 47.301/47.886/48.235/0.487 ms

systemctl restart isc-dhcp-server.service

/etc/init.d/network-manager restart
[ ok ] Restarting network-manager (via systemctl): network-manager.service.

ping -c3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 
From 192.168.15.5 icmp_seq=1 Destination Host Unreachable 
From 192.168.15.5 icmp_seq=2 Destination Host Unreachable 
From 192.168.15.5 icmp_seq=3 Destination Host Unreachable 
--- 8.8.8.8 ping statistics --- 
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2047ms pipe 3

ifconfig
enp63s0 Link encap:Ethernet HWaddr 00:19:bb:4b:2c:76
inet addr:192.168.20.5 Bcast:192.168.20.255 Mask:255.255.255.0 
inet6 addr: fe80::219:bbff:fe4b:2c76/64 
Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
RX packets:98 errors:0 dropped:0 overruns:0 frame:0 
TX packets:61 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 
RX bytes:28476 (28.4 KB) TX bytes:8403 (8.4 KB) Interrupt:17

enp7s4 Link encap:Ethernet HWaddr d4:6e:0e:00:b1:fb
inet addr:192.168.15.5 Bcast:192.168.15.255 Mask:255.255.255.0 
inet6 addr: fe80::d66e:eff:fe00:b1fb/64 
Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
RX packets:54 errors:0 dropped:0 overruns:0 frame:0 
TX packets:93 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 
txqueuelen:1000 RX bytes:6920 (6.9 KB) TX bytes:10436 (10.4 KB)

enp7s9 Link encap:Ethernet HWaddr 98:de:d0:03:8f:9c
inet addr:192.168.10.5 Bcast:192.168.10.255 Mask:255.255.255.0 inet6 addr: 2607:f2c0:9353:5000:9ade:d0ff:fe03:8f9c/64 
Scope:Global inet6 addr: 2607:f2c0:9353:5000:2547:e237:1a08:50de/64 
Scope:Global inet6 addr: fe80::9ade:d0ff:fe03:8f9c/64 
Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
RX packets:525 errors:0 dropped:0 overruns:0 frame:0 
TX packets:103 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 
txqueuelen:1000 RX bytes:32364 (32.3 KB) TX bytes:13307 (13.3 KB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 
Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 
RX packets:1079 errors:0 dropped:0 overruns:0 frame:0 
TX packets:1079 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 
RX bytes:80256 (80.2 KB) TX bytes:80256 (80.2 KB)
    
por Abby Bassie-Cripps 03.04.2018 / 07:15

0 respostas