Portál AbcLinuxu, 8. května 2025 02:43
SLED:/home/probook # ifconfig eth0 Link encap:Ethernet HWaddr 18:A9:05:CB:EE:56 inet addr:192.168.0.133 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::1aa9:5ff:fecb:ee56/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5615 errors:0 dropped:0 overruns:0 frame:0 TX packets:6392 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3498182 (3.3 Mb) TX bytes:1260728 (1.2 Mb) Interrupt:17 eth1 Link encap:Ethernet HWaddr 90:4C:E5:62:B3:12 inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::924c:e5ff:fe62:b312/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:941 errors:0 dropped:0 overruns:0 frame:32680 TX packets:1260 errors:99 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:567861 (554.5 Kb) TX bytes:156096 (152.4 Kb) Interrupt:17 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:221 errors:0 dropped:0 overruns:0 frame:0 TX packets:221 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:41331 (40.3 Kb) TX bytes:41331 (40.3 Kb)
SLED:/home/probook # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 2 0 0 eth1 192.168.0.0 * 255.255.255.0 U 1 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
A TAKTO to uz nefunguje: potom co vypnem wifi
SLED:/home/probook # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 1 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0nejaky prikaz na trace paketov, odkial a kam to chodi, a kde sa to zastavi, kde moze byt problem, normalne by to amlo fungovat po zapojeni kabla. Pouzivam NET.. Manager
Řešení dotazu:
# Generated by dhcpcd for interface eth1 nameserver 192.168.1.1To sa mi vidi zaujimave: SLED:/home/probook # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 2 0 0 eth1 192.168.0.0 * 255.255.255.0 U 1 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 Ja totizto v netvork manazerovi mam pripojenie cez eth0, eth1 je wifi karta, ten konfigurak resolf.conf je odkaz na DNS server? /etc/hosts
127.0.0.1 localhost 127.0.0.2 SLED.site SLEDTento configurak som premazal a nanovo nastavil
SLED:/home/probook # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 2 0 0 eth1 10.79.48.0 * 255.255.240.0 U 1 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 10.79.48.1 0.0.0.0 UG 0 0 0 eth0ale nepripojim sa pokial neprepisem v resolf.conf IP z 192.168.0.1 na 10.79.48.1 co s tym ??
# # /etc/host.conf - resolver configuration file # # Please read the manual page host.conf(5) for more information. # # # The following option is only used by binaries linked against # libc4 or libc5. This line should be in sync with the "hosts" # option in /etc/nsswitch.conf. # order hosts, bind # # The following options are used by the resolver library: # multi on
route add gw 64.129.67.101 ???DNS servery se zapisují do /etc/resolv.conf. Jinak ten server zrovna ode mě (UPC) moc rychlý není, zkusil bych OpenDNS - 208.67.222.222 (nebo si nainstalovat bind na localhost a mít tak vlastní). A dále, nepoužíval bych už deset let nefunkční nástroje
ifconfig
a route
, v Linuxu máme program ip
.
SLED:/home/probook # route add default gw 208.67.222.222 eth0 SIOCADDRT: No such process???
SLED:/home/probook # iwconfig lo no wireless extensions. eth0 no wireless extensions. eth1 IEEE 802.11bg ESSID:"Tokyo" Mode:Managed Frequency:2.437 GHz Access Point: 00:22:B0:A6:56:5E Bit Rate=54 Mb/s Tx-Power:24 dBm Retry min limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Managementmode:All packets received Link Quality=5/5 Signal level=-38 dBm Noise level=-91 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:1 Invalid misc:0 Missed beacon:0
SLED:/home/probook # ifconfig eth0 Link encap:Ethernet HWaddr 18:A9:05:CB:EE:56 inet addr:192.168.0.133 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::1aa9:5ff:fecb:ee56/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:509336 errors:0 dropped:0 overruns:0 frame:0 TX packets:315994 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:741648547 (707.2 Mb) TX bytes:23059304 (21.9 Mb) Interrupt:17 eth1 Link encap:Ethernet HWaddr 90:4C:E5:62:B3:12 inet addr:192.168.0.107 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::924c:e5ff:fe62:b312/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:59 errors:0 dropped:0 overruns:0 frame:976 TX packets:69 errors:36 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:5076 (4.9 Kb) TX bytes:24161 (23.5 Kb) Interrupt:17
SLED:/home/probook # iwconfig lo no wireless extensions. eth0 no wireless extensions. eth1 IEEE 802.11bg ESSID:"Tokyo" Mode:Managed Frequency:2.437 GHz Access Point: 00:22:B0:A6:56:5E Bit Rate=54 Mb/s Tx-Power:24 dBm Retry min limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Managementmode:All packets received Link Quality=5/5 Signal level=-38 dBm Noise level=-92 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:1 Invalid misc:0 Missed beacon:0Adresu prideluje DHCP server na routri, nie je staticka. To co som urobil je ze som z NM deletol spojenie pre siet Tokyo a dal opatovne pripojit k sieti- Vypytalo heslo, a pripojil. rcnetwork restart a na wifi siet sa nedostanem.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.