Portál AbcLinuxu, 21. května 2025 18:03
root@ns1:/home/ales# dmesg | grep eth1 [ 22.683111] eth1: RealTek RTL8139 at 0xcc00, 00:30:4f:1d:76:0f, IRQ 17 [ 22.683114] eth1: Identified 8139 chip type 'RTL-8139C' [ 30.047461] udev: renamed network interface eth1 to eth2 [ 30.141720] udev: renamed network interface eth0_rename to eth1 [ 30.175498] eth1: link up, 10Mbps, half-duplex, lpa 0x0000 [ 51.571169] eth1: no IPv6 routers present
root@ns1:/home/ales# dmesg | grep eth2 [ 23.327588] eth2: SiS 900 PCI Fast Ethernet at 0xd400, IRQ 18, 00:11:5b:5f:ed:e6 [ 30.047461] udev: renamed network interface eth1 to eth2 [ 30.092128] udev: renamed network interface eth2_rename to eth0 [ 64.076391] eth2: link up, 100Mbps, full-duplex, lpa 0x45E1 [ 74.672685] eth2: no IPv6 routers present
root@ns1:/home/ales# dmesg | grep eth0 [ 22.682540] eth0: RealTek RTL8139 at 0xd000, 00:15:e9:f1:ac:fe, IRQ 16 [ 22.682543] eth0: Identified 8139 chip type 'RTL-8100B/8139D' [ 30.092128] udev: renamed network interface eth2_rename to eth0 [ 30.141720] udev: renamed network interface eth0_rename to eth1 [ 64.099527] eth0: Media Link Off [ 64.100780] ADDRCONF(NETDEV_UP): eth0: link is not readynejhorsi je na tom to ze to prehazuje nazvy sitovek, protoze eth2 by mnela byt realtek sitovka a ne SIS ktera je na zakladni desce ... mii-tool mi hlasi tohle
eth0: no link eth1: 10 Mbit, half duplex, link ok eth2: 10 Mbit, half duplex, link okifconfig mam takovyto:
root@ns1:/home/ales# ifconfig eth0 Link encap:Ethernet HWaddr 00:11:5b:5f:ed:e6 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:18 Base address:0xd400 eth1 Link encap:Ethernet HWaddr 00:15:e9:f1:ac:fe inet addr:81.200.49.16 Bcast:81.200.49.255 Mask:255.255.255.0 inet6 addr: fe80::215:e9ff:fef1:acfe/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:41116 errors:4 dropped:0 overruns:3 frame:1 TX packets:4660 errors:0 dropped:0 overruns:0 carrier:0 collisions:223 txqueuelen:1000 RX bytes:5302160 (5.0 MB) TX bytes:1072597 (1.0 MB) Interrupt:16 Base address:0xd000 eth2 Link encap:Ethernet HWaddr 00:30:4f:1d:76:0f inet6 addr: fe80::230:4fff:fe1d:760f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:788 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:64662 (63.1 KB) TX bytes:0 (0.0 B) Interrupt:17 Base address:0xcc00 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:2231 errors:0 dropped:0 overruns:0 frame:0 TX packets:2231 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:225899 (220.6 KB) TX bytes:225899 (220.6 KB)nevedel by prosimvas nekdo co s tim ? googlim a snazim se to opravit uz vic nez den ... Diky za rady Tomas Lysek
for i in `seq 0 2`; do ethtool -s eth$i autoneg on; done;
ifup eth0
a ifup eth2
?
/etc/network/interfaces
, pokud jiz neni, tak pridejte radek u kazde sitovky auto ethx
, melo by jiz po startu fungovat
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.