Portál AbcLinuxu, 10. května 2025 07:21
ip a
, pokud ti zahlásí, že ten příkaz neexistuje, tak ifconfig
, a taky pošli soubor /etc/resolv.conf.
Jak jsi zkonfiguroval síť? (DHCP, ručně...)
dhclient eth0
.
dhclient eth0
, pokud to ani potom nepůjde, pošli z něj screenshot.
# Virtuální loopback chceme vždy. # auto lo iface lo inet loopback # Použití dhcp: # auto eth1 iface eth1 inet dhcp # Statická IP adresa: (broadcast a gateway jsou volitelné) # auto eth0 iface eth0 inet static address 192.168.0.2 network 192.168.0.0 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.1Konkrétní konfigurace je individuální, asi se budeš muset podívat do manuálu/Google.
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet dhcpa po vypsani ifconfig mam (pred timto jsem spustil dhclient)
debian:~# ifconfig eth1 Link encap:Ethernet HWaddr 08:00:27:69:71:0b inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe69:710b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:87 errors:0 dropped:0 overruns:0 frame:0 TX packets:113 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14430 (14.0 KiB) TX bytes:11695 (11.4 KiB) Interrupt:10 Base address:0xc240 eth0_rename Link encap:Ethernet HWaddr 08:00:27:59:4f:94 inet addr:192.168.56.102 Bcast:192.168.56.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe59:4f94/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:564 errors:0 dropped:0 overruns:0 frame:0 TX packets:528 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:163522 (159.6 KiB) TX bytes:167055 (163.1 KiB) Interrupt:11 Base address:0xc020 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:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 B) TX bytes:560 (560.0 B) debian:~#predem dekuji..
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.