Como configurar a ethernet no Ubuntu Server 16.04

0

Eu apenas instalei o servidor ubuntu 16.04 lts no meu pc local. Eu tenho uma internet a cabo sem ip estático. Eu estou usando um roteador sem fio, mas primeiro estou tentando obter conexão com fio para começar. Como eu não tenho internet toda a minha saída aqui eu digitei usando meu laptop assim pls considere qualquer erro de digitação.

ifconfig -a

enp5s0 Link encap:Ethernet HWaddr 94:de:80:c3:af:60
inet6 addr:fe80::96de:80ff:fec3:af60/64 Scope:link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric;1
RX packets:1 error:0 dropped:0 overruns:0 frame:0
TX packets:0 error:0 dropped:47 overruns:0 carrier:0
collision:0 txqueuelen:1000
RX bytes:215 (215.0 B) TX Bytes:0 (0.0B)

lo  Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBAK RUNNING MTU:65536 Metric;1
RX packets:3481 error:0 dropped:0 overruns:0 frame:0
TX packets:3481 error:0 dropped:47 overruns:0 carrier:0
collision:0 txqueuelen:1000
RX bytes:258425 (258.4 kB) TX Bytes:258425 (258.4 kB)

wlp6s0 Link encap:Ethernet HWaddr c0:4a:00:2c:34:f2

BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1 error:0 dropped:0 overruns:0 frame:0
TX packets:0 error:0 dropped:47 overruns:0 carrier:0
collision:0 txqueuelen:1000
RX bytes:215 (215.0 B) TX Bytes:0 (0.0B)

sudo lshw -C rede

*-network 
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co.,Ltd
physical id: 0
bus info: pci@0000:05:00.0
logical name: enp5s0
version: 06
serial: 94:de:80:c3:af:60
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vpd bus_master cap_list ethernet physical tp 
10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 
driverversion=2.3LK-NAPI firmware=rtl8168e-3_0.0.4 03/27/12 latency=0 
link=YES 
multicast=yes port=MII speed=100Mbit/s
resources: irq:31 memory: d00004000-d0004fff memory:40000000-d0003ffff 
ioport:b000(size=256)

+-network DISABLED
description:Wireless interface
.....

sudo nano / etc / rede / interfaces

# The loopback network interface
auto lo
iface lo inet loopback

auto enp5s0
#iface enp5s0 inet dhcp
iface enp5s0 inet static
address 192.168.0.107
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1 8.8.8.8

Aqui estão detalhes do host: / etc / hostname

kronos

/ etc / hosts

127.0.0.1 localhost
127.0.1.1 kronos

Aqui estão os detalhes do roteador:

Wirelesss:
DESKTOP-LDN5UMS                192.168.0.100
android-9b185c2fe6197052       192.168.0.106

Wired:
nothing there even though ubuntu server is connected
LAN
Mac address:XXXXXXXXX
ip address: 192.168.0.1
subnet mask: 255.255.255.0
DHCP:on

sudo ifdown enp5s0

ifdown: interface enp5s0 not configured

Ainda sem internet

    
por mlhazan 29.11.2017 / 20:47

2 respostas

0

Eu resolvi o problema após 8 horas de luta. Eu sei que alguém como eu pode enfrentar o mesmo problema mais tarde. Isso é o que estou dando minha solução. Tudo estava bem no meu cenário, mas ainda não estava recebendo nenhuma internet. Então eu pensei que poderia ser a minha placa-mãe Gigabyte 990 FX UD3. Então achei dentro da bios do MOBO, existe um recurso chamado IOMMU, basta habilitá-lo e depois salvar as configurações da mobo. Inicie o servidor. Internet está funcionando como um encanto.

    
por mlhazan 30.11.2017 / 05:54
0

Sugiro que você altere seu arquivo interfaces para incluir servidores de nomes DNS e limpe um pouco:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp5s0
#iface enp5s0 inet dhcp

iface enp5s0 inet static
      address 192.168.0.130
      netmask 255.255.255.0
      gateway 192.168.0.1
      dns-nameservers 192.168.0.1 8.8.8.8

Reinicie a interface:

sudo ifdown enp5s0 && sudo ifup -v enp5s0

Você recebeu o endereço solicitado?

ifconfig enp5s0

Você está conectado?

ping -c3 www.ubuntu.com
    
por chili555 29.11.2017 / 21:24