Linuxiarze.pl Forum

Oprogramowanie => Internet => Wątek zaczęty przez: relaxninho w Wrzesień 04, 2023, 06:33:30 PM

Tytuł: Brak internetu przez ethernet - ubuntu
Wiadomość wysłana przez: relaxninho w Wrzesień 04, 2023, 06:33:30 PM
Witam, mam problem z internetem po eno1, UPC connect box. Zainstalowałem ubuntu obok windowsa 10, jest na oddzielnym dysku uruchamiane przez dual boot. Na windowsie wszystko działa poprawnie, natomiast na ubuntu nie mam internetu po kablu ethernet.
Miałem gdzies stara karte sieciową na usb przez która internet po wifi działa normalnie. Chciałem zainstalować steam i sprawdzić jak działają gry na linuxie ;) Niestety prędkość pobierania jest słaba na tej karcie wifi. Ubuntu głownie będę używał do nauki programowania.

eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::8e2c:8e62:6d5a:7c5d  prefixlen 64  scopeid 0x20<link>
        ether e0:3f:49:ae:79:66  txqueuelen 1000  (Ethernet)
        RX packets 233  bytes 32584 (32.5 KB)
        RX errors 0  dropped 5  overruns 0  frame 0
        TX packets 1163  bytes 203299 (203.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xf7200000-f7220000 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 15354  bytes 1347106 (1.3 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 15354  bytes 1347106 (1.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlxf48cebd0974c: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.53  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 2a02:a313:a03e:ea00:b905:42b4:3bf4:f926  prefixlen 128  scopeid 0x0<global>
        inet6 fe80::8f0d:95ec:bb3f:328e  prefixlen 64  scopeid 0x20<link>
        ether f4:8c:eb:d0:97:4c  txqueuelen 1000  (Ethernet)
        RX packets 1280931  bytes 1817375291 (1.8 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 666967  bytes 121832840 (121.8 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Tytuł: Odp: Brak internetu przez ethernet - ubuntu
Wiadomość wysłana przez: linux4ever w Wrzesień 04, 2023, 06:56:03 PM
Czy masz na Ubuntu sterownik do karty własnościowy czy o otwartym kodzie ?

Jeśli nie działa jak trzeba to pomoże reinstalacja.

Czy firewall nie blokuje portów lub nie ma obciążenie sieci bo w takich przypadkach może zwolnić o ile się nie mylę.

Czy aktualizowałeś system bo to też może być bug.

To na razie tyle.

Tytuł: Odp: Brak internetu przez ethernet - ubuntu
Wiadomość wysłana przez: microsofter w Wrzesień 04, 2023, 11:48:00 PM
eno1 nie posiada adresu IPv4. Przydziel adres IPv4.
Tytuł: Odp: Brak internetu przez ethernet - ubuntu
Wiadomość wysłana przez: relaxninho w Wrzesień 06, 2023, 03:35:05 PM
Nie instalowałem sterowników do karty wieć chyba jest na na otwartym. Reinstalowałem już i nic to nie pomogło, sysytem jest świeży instalowany 2 dni temu.

Aktualizowałem system. Instalowałem pakiety. Bardzo dziwne bo jak wyłącze WIFI to pokazuje ze internetu niema, natomiast jak włącze to to pokazuje ze działa wifi i ethernet (i na eno1 przydziel wszystko automatycznie)

Przydzieliłem piv4 i ipv6 natomiast dalej nie działa. Prubowałem nawet ogarnąć netplan i tez nic:
# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager
#  renderer: networkd
#  ethernets:
#    eno1:
#      addresses:
#        - 192.168.122.150/24
#      nameservers:
#        addresses: [192.168.122.1,1.1.1.1]
#      routes:
#        - to: default
#          via: 192.168.122.1

Oczywiście '#' dałem tylko by wrócić do defautl.

eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.53  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 2a02:a313:a03e:ea00:8476:56dd:668:d1da  prefixlen 128  scopeid 0x0<global>
        inet6 fe80::8e2c:8e62:6d5a:7c5d  prefixlen 64  scopeid 0x20<link>
        ether e0:3f:49:ae:79:66  txqueuelen 1000  (Ethernet)
        RX packets 5987  bytes 2621345 (2.6 MB)
        RX errors 0  dropped 15  overruns 0  frame 0
        TX packets 6274  bytes 657688 (657.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xf7200000-f7220000 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 379700  bytes 32311178 (32.3 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 379700  bytes 32311178 (32.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlxf48cebd0974c: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.53  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 2a02:a313:a03e:ea00:8476:56dd:668:d1da  prefixlen 128  scopeid 0x0<global>
        inet6 fe80::8f0d:95ec:bb3f:328e  prefixlen 64  scopeid 0x20<link>
        ether f4:8c:eb:d0:97:4c  txqueuelen 1000  (Ethernet)
        RX packets 25236890  bytes 37062166939 (37.0 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12333301  bytes 1099811402 (1.0 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0










Tytuł: Odp: Brak internetu przez ethernet - ubuntu
Wiadomość wysłana przez: linux4ever w Wrzesień 06, 2023, 03:51:37 PM
A jaka to wersja Ubuntu Jammy Jelly 22 ?

Znając dobrze angielski znajdę pomoc.

I mam są na to trzy sposoby:

CytatFor me, this kind of problem could be solved by using the Google Public DNS IP addresses in the /etc/resolv.conf file:

sudo cp /etc/resolv.conf /etc/resolv.conf.bak
sudo nano /etc/resolv.conf

nameserver 8.8.8.8
nameserver 8.8.4.4

CytatClick on Network Manager>
Click 'Edit'
Edit the wireless connection>
Click the IPv6 tab>
Set IPv6 to ignore>
click OK>
Reboot.

CytatThere is your problem right there. Any DHCP client on your network would not have DNS lookup capability. Change that to one of the known DNS servers. Some people prefer 8.8.8.8, I don't recommend it, given google's predatory anti privacy practices. Here are some of the other servers you could use.

Before you do that, make sure the DNS servers on your DHCP server are set and working properly, and you have Internet access on the server.

Personally, I recommend disabling systemd-resolved, if not already done.

sudo systemctl disable systemd-resolved
sudo systemctl stop systemd-resolved

Then under the [main] section in /etc/NetworkManager/NetworkManager.conf, if that file exists, add the following.

dns=default

Remove the symlink to /etc/resolv.conf.

rm /etc/resolv.conf

Restart your network manager.

sudo systemctl restart NetworkManager

Now add or edit existing /etc/resolv.conf.

sudo nano /etc/resolv.conf

Add two DNS servers from the above list, replace the place holders with actual DNS servers' IP.

nameserver 8.8.8.8
nameserver 8.8.4.4

Save changes by press Ctrl + O

Pozostałe tu: https://www.lifewire.com/free-and-public-dns-servers-2626062

Tytuł: Odp: Brak internetu przez ethernet - ubuntu
Wiadomość wysłana przez: relaxninho w Wrzesień 06, 2023, 04:19:15 PM
Męczyłem się z tym pare dni, a to było takie proste :))

Działa, dziękuje bardzo :))