» »

Internet dela ali ne dela (lnux)

Internet dela ali ne dela (lnux)

roli ::

Včeraj sem končal z prenosom linuxa (Suse 10.0) na drug disk.Vse nastavim (mrežno,zvočno..) in se odpravim nastavit router.Po nastavitvi poizkusim,če deluje in je vse delovalo.Grem na windowse XP namestim gonilnike za matično ploščo in nastavim internet.Vse deluje.Grem na linux zaženem firefox in internet ne deluje8-O .Pogledam nastavitve za mrežno (nastavljena je na DHCP)(vse OK) in jo ponovno nastavim.Internet še vedno ne deluje.Tudi do routerje ne morem dosopati.V windowsih še vedno deluje vse skupaj.Še parkrat resetiram računalnik in zaženem linux in potem kar naenkrat internet spet deluje.Ponovno zaženem računalnik in internet spet ne deluje.Kajnaj naredim?

Mrežna kartica je integrirana na matično ploščo (MSI K9N NEO-F) in je nastavljena na DHCP.Linux jo prepozna pravilno.
http://www.r00li.com

Racko ::

Vpogled v loge bi ti morda koristil pri odpravi težave. Pastaj npr. syslog semkaj.

LP

kriko1 ::

Naredi tole:
sudo tail -f /var/log/messages

nato pa kot root:
/etc/init.d/network restart

Pa glej v 1. konzolo kjer se ti izpisuje log, če dobi ip.

roli ::

@Kriko1: Evo tale izpis:


roli@(none):~> /etc/init.d/network restart
Shutting down network interfaces:
eth2 device: nVidia Corporation MCP55 Ethernet (rev a2)
eth2 configuration: eth-id-00:16:17:9b:13:5c
process 4958 still not dead, sending SIGKILL done
rm: cannot remove `/var/run/sysconfig/if-eth2': Permission denied
rm: cannot remove `/var/run/sysconfig/if-lo': Permission denied
rm: cannot remove `/var/run/sysconfig/network': Permission denied
Shutting down service network . . . . . . . . . . . . . done.
/etc/init.d/network: line 112: /var/run/sysconfig/network: Permission denied
Hint: you may set mandatory devices in /etc/sysconfig/network/config
Setting up network interfaces:
lo
lo IP address: 127.0.0.1/8
lo Error while executing:
Command 'ip route replace to 127/8 dev lo' returned:
RTNETLINK answers: Operation not permitted
Configuration line: 127/8 - - lo failed
eth2 device: nVidia Corporation MCP55 Ethernet (rev a2)
eth2 configuration: eth-id-00:16:17:9b:13:5c
eth2 DHCP already running waiting
Setting up service network . . . . . . . . . . . . . . done.
SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
/sbin/SuSEfirewall2: line 776: /var/lock/SuSEfirewall2.pid: Permission denied
roli@(none):~>
http://www.r00li.com

kriko1 ::

To je zato ker tega nisi izvedel kot root, še enkrat:
odpri eno konzolo in vtipkaj kot navaden user:
sudo tail -f /var/log/messages

nato pa odpri še eno konzolo in poženi:
sudo /etc/init.d/network restart

Tam kjer si vpisal sudo tail -f /var/log/messages glej če začne povpraševat dhcp in kaj dela. Pa prilepi sem.

roli ::

Sem sedaj še enkrat poizkusil.

Password:
Oct 28 19:50:24 (none) SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Oct 28 19:50:25 (none) smbd[6765]: [2006/10/28 19:50:25, 0] printing/print_cups.c:cups_cache_reload(85)
Oct 28 19:50:25 (none) smbd[6765]: Unable to connect to CUPS server localhost - Connection refused
Oct 28 19:50:25 (none) smbd[6765]: [2006/10/28 19:50:25, 0] printing/print_cups.c:cups_cache_reload(85)
Oct 28 19:50:25 (none) smbd[6765]: Unable to connect to CUPS server localhost - Connection refused
Oct 28 19:50:25 (none) SuSEfirewall2: batch committing...
Oct 28 19:50:27 (none) SuSEfirewall2: Firewall rules successfully set
Oct 28 19:50:46 (none) hp: unable to open /var/run/hpiod.port: No such file or directory: prnt/hpijs/hplip_api.c 75
Oct 28 19:51:18 (none) sudo: roli : TTY=pts/1 ; PWD=/home/roli ; USER=root ; COMMAND=/usr/bin/tail -f /var/log/messages
Oct 28 19:53:13 (none) sudo: roli : TTY=pts/2 ; PWD=/home/roli ; USER=root ; COMMAND=/usr/bin/tail -f /var/log/messages
Oct 28 19:53:16 (none) kernel: atkbd.c: Unknown key released (translated set 2, code 0xe0 on isa0060/serio0).
Oct 28 19:53:16 (none) kernel: atkbd.c: Use 'setkeycodes e060 [keycode]' to make it known.

Po tem se konzola neha odzivati. Obnaša se kot,da nekaj dela ampak nič ne izpisuje pa tudi ni znaka,da je pripravljena na vpis komand.Kaj sploh ta komanda naredi?

roli@(none):~> su
Password:
(none):/home/roli # /etc/init.d/network restart
Shutting down network interfaces:
eth2 device: nVidia Corporation MCP55 Ethernet (rev a2)
eth2 configuration: eth-id-00:16:17:9b:13:5c done
Shutting down service network . . . . . . . . . . . . . done.
Hint: you may set mandatory devices in /etc/sysconfig/network/config
Setting up network interfaces:
lo
lo IP address: 127.0.0.1/8 done
eth2 device: nVidia Corporation MCP55 Ethernet (rev a2)
eth2 configuration: eth-id-00:16:17:9b:13:5c
eth2 (DHCP) . . . . . no IP address yet... backgrounding. waiting
Setting up service network . . . . . . . . . . . . . . done.
SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
SuSEfirewall2: batch committing...
SuSEfirewall2: Firewall rules successfully set
(none):/home/roli #
http://www.r00li.com

kriko1 ::

Po tem se konzola neha odzivati. Obnaša se kot,da nekaj dela ampak nič ne izpisuje pa tudi ni znaka,da je pripravljena na vpis komand.Kaj sploh ta komanda naredi?
To je prav, saj izpisuje log, prosim ne zapiraj tega, ponovi proceduro. Pomembno je tisto kar se izpiše PO izvedbi 2. ukaza (network restart).

roli ::

Aha sem pogruntal kaj hočeš.


Password:
Oct 28 22:25:13 (none) SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Oct 28 22:25:14 (none) SuSEfirewall2: batch committing...
Oct 28 22:25:14 (none) smbd[6739]: [2006/10/28 22:25:14, 0] printing/print_cups.c:cups_cache_reload(85)
Oct 28 22:25:14 (none) smbd[6739]: Unable to connect to CUPS server localhost - Connection refused
Oct 28 22:25:14 (none) smbd[6739]: [2006/10/28 22:25:14, 0] printing/print_cups.c:cups_cache_reload(85)
Oct 28 22:25:14 (none) smbd[6739]: Unable to connect to CUPS server localhost - Connection refused
Oct 28 22:25:15 (none) SuSEfirewall2: Firewall rules successfully set
Oct 28 22:25:15 (none) kernel: bootsplash: status on console 0 changed to on
Oct 28 22:25:32 (none) hp: unable to open /var/run/hpiod.port: No such file or directory: prnt/hpijs/hplip_api.c 75
Oct 28 22:25:32 (none) sudo: roli : TTY=pts/1 ; PWD=/home/roli ; USER=root ; COMMAND=/usr/bin/tail -f /var/log/messages
Oct 28 22:25:39 (none) su: (to root) roli on /dev/pts/2
Oct 28 22:25:46 (none) dhcpcd[4928]: terminating on signal 15
Oct 28 22:25:46 (none) dhcpcd-hook: Skipping 'ifdown $INTERFACE -o dhcp' call
Oct 28 22:25:52 (none) SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
Oct 28 22:25:52 (none) SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Oct 28 22:25:52 (none) SuSEfirewall2: batch committing...
Oct 28 22:25:52 (none) SuSEfirewall2: Firewall rules successfully set
Oct 28 22:25:58 (none) kernel: eth2: no IPv6 routers present
http://www.r00li.com

kriko1 ::

Hmmm.. sploh ne vidim ničesar da bi sploh dobil IP, postaj še:
#ifconfig
(kot root)

Poglej še enkrat v Yast->Network Card, če si skonfiguriral pravo kartico. Imaš 3 mrežne?

roli ::

roli@(none):~> su
Password:
(none):/home/roli # ifconfig
eth2 Link encap:Ethernet HWaddr 00:16:17:9B:13:5C
inet6 addr: fe80::216:17ff:fe9b:135c/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17 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:1802 (1.7 Kb) TX bytes:0 (0.0 b)
Interrupt:15 Base address:0x6000

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:46 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2942 (2.8 Kb) TX bytes:2942 (2.8 Kb)

(none):/home/roli #

Mrežna kartica je samo ena.Skonfigurirana pa je pravilno.V prejšnjem računalniku pa stabili dve.Po prenosu na ta sistem pa internet ne deluje oziroma redko deluje.
http://www.r00li.com

kriko1 ::

Nekaj ni v redu, ip-ja ni. Pejdi v yast, zbriši vse mrežne konfiguracije, shrani nastavitve, ponovno odpri modul za mrežne kartice in še enkrat nastavi na dhcp ter aktivacijo daj na on cable connection.

roli ::

Ni spremembe.Razen to,da sistemski speaker piska ob zagonu linuxa.Sem zbrisal povezavo,ponovno zagnal računalnik in jo ponovno nastavil.Na DHCP ter opcijo,ko je vključen kabel.
Še nekrat log:

Password:
Oct 29 11:36:54 (none) SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
Oct 29 11:36:54 (none) SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Oct 29 11:36:54 (none) ifplugd(eth2)[8347]: client: eth2 device: nVidia Corporation MCP55 Ethernet (rev a2)
Oct 29 11:36:54 (none) ifplugd(eth2)[8347]: client: eth2 configuration: eth-id-00:16:17:9b:13:5c
Oct 29 11:36:54 (none) SuSEfirewall2: batch committing...
Oct 29 11:36:54 (none) SuSEfirewall2: Firewall rules successfully set
Oct 29 11:36:59 (none) ifplugd(eth2)[8347]: client: Starting DHCP Client Daemon on eth2... . . . . . no IP address yet... backgrounding.
Oct 29 11:36:59 (none) ifplugd(eth2)[8347]: Program executed successfully.
Oct 29 11:37:04 (none) kernel: eth2: no IPv6 routers present
Oct 29 11:38:05 (none) sudo: roli : TTY=pts/2 ; PWD=/home/roli ; USER=root ; COMMAND=/usr/bin/tail -f /var/log/messages
Oct 29 11:38:23 (none) ifplugd(eth2)[8347]: Executing '/etc/sysconfig/network/scripts/ifplugd-selectif eth2 down'.
Oct 29 11:38:23 (none) ifplugd(eth2)[8347]: client: /etc/sysconfig/network/scripts/ifplugd-selectif eth2 down
Oct 29 11:38:23 (none) ifplugd(eth2)[8347]: client: ifdown eth2
Oct 29 11:38:23 (none) ifplugd(eth2)[8347]: client: eth2 device: nVidia Corporation MCP55 Ethernet (rev a2)
Oct 29 11:38:23 (none) ifplugd(eth2)[8347]: client: eth2 configuration: eth-id-00:16:17:9b:13:5c
Oct 29 11:38:23 (none) dhcpcd[8494]: terminating on signal 15
Oct 29 11:38:23 (none) dhcpcd-hook: Skipping 'ifdown $INTERFACE -o dhcp' call
Oct 29 11:38:23 (none) ifplugd(eth2)[8347]: Program executed successfully.
Oct 29 11:38:23 (none) ifplugd(eth2)[8347]: Exiting.
Oct 29 11:38:24 (none) ifplugd(eth2)[9116]: ifplugd 0.27 initializing.
Oct 29 11:38:24 (none) ifplugd(eth2)[9116]: Using interface eth2/00:16:17:9B:13:5C with driver [forcedeth] (version: 0.35)
Oct 29 11:38:24 (none) ifplugd(eth2)[9116]: Using detection mode: SIOCETHTOOL
Oct 29 11:38:24 (none) ifplugd(eth2)[9116]: Initialization complete, link beat detected.
Oct 29 11:38:24 (none) ifplugd(eth2)[9116]: Executing '/etc/sysconfig/network/scripts/ifplugd-selectif eth2 up'.
Oct 29 11:38:24 (none) ifplugd(eth2)[9116]: client: /etc/sysconfig/network/scripts/ifplugd-selectif eth2 up
Oct 29 11:38:24 (none) SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
Oct 29 11:38:24 (none) SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Oct 29 11:38:24 (none) ifplugd(eth2)[9116]: client: ifup eth2
Oct 29 11:38:24 (none) ifplugd(eth2)[9116]: client: eth2 device: nVidia Corporation MCP55 Ethernet (rev a2)
Oct 29 11:38:24 (none) ifplugd(eth2)[9116]: client: eth2 configuration: eth-id-00:16:17:9b:13:5c
Oct 29 11:38:24 (none) SuSEfirewall2: batch committing...
Oct 29 11:38:24 (none) SuSEfirewall2: Firewall rules successfully set
Oct 29 11:38:29 (none) ifplugd(eth2)[9116]: client: Starting DHCP Client Daemon on eth2... . . . . . no IP address yet... backgrounding.
Oct 29 11:38:29 (none) ifplugd(eth2)[9116]: Program executed successfully.
Oct 29 11:38:35 (none) kernel: eth2: no IPv6 routers present


In ifconfig:

(none):/home/roli # ifconfig
eth2 Link encap:Ethernet HWaddr 00:16:17:9B:13:5C
inet6 addr: fe80::216:17ff:fe9b:135c/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:24 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1272 (1.2 Kb) TX bytes:0 (0.0 b)
Interrupt:15 Base address:0x8000

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:84 errors:0 dropped:0 overruns:0 frame:0
TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6116 (5.9 Kb) TX bytes:6116 (5.9 Kb)

(none):/home/roli #
http://www.r00li.com

kriko1 ::

Sedaj pa bi moralo delat -> neki ne štima na routerju.
Še izpisal ti bom moje nastavitve da lahko primerjaš:
Traditional method with ifup
Pod general:
Firewall - external zone (če hočeš bit zaščiten)
Device activation: On cable connection (praktično če pretikaš kable, ker ti ob vsakem vklopu povpraša za ip)
User controlled: da (če hočeš kontrolirat interface z kakim kinternet-om)
MTU: *pusti prazno*

Pod Address:
Automatic setup (Via DHCP)
Hostname and name server -> :
Če te kaj vpraša klikni modify.
Change hostname via DHCP: ne (osebna preferenca, ker nočem da mi router dodeljuje 423dcs32ecd ime im mi to potem piše v konzoli kot user@423dcs32ecd)
Update name servers and search list via DHCP: da
Poglej če je že kaj vpisano pod Name server poljem (zamegljeno)
Routing ->:
Tukaj mora biti vse prazno, razen če tvoj rač. deluje kot router.
Advanced -> DHCP options:
Vse prazno razen Hostname to send: AUTO
mogoče lahko poskusiš z opcijo Request broadcast response.

Čudno mi je pa zakaj je eth2 če je samo 1.

kriko1 ::

Moti ga verjetno lih zaporedje mrežnih - če je 1 bi morala biti eth0:
poskusi tukaj:
/etc/sysconfig/hardware/hwcfg-bus-pci*
poglej katera od podobnih datotek nosi konfiguracijo tvoje mrežne, naredi backup in jo zbriši od tukaj (vsebuje forcedeth modul).
nato pejdi v :
/etc/sysconfig/network/
in isto naredi backup cele mape in odstrani celo vsebino
Reboot.
Poženi YaST -> network card.

Če se kaj hudo zalomi, restavriraj.

roli ::

Nobena datoteka ne vsebuje nastavitve mrežne.
http://www.r00li.com

kriko1 ::

Če znaš angleško je najboljše da vprašaš na gentoo forums, tam boš sigurno dobu odgovor za take stavri.
Nikakor pa ne sprašuj na http://forums.suselinuxsupport.de/.

roli ::

Sem ga spravil v delovanje. Priklopil sem še eno realtekovo PCI mrežno,ki je potem postala eth1.Potem pa sem v /etc/sysconfig/hardware pobrisal vse datoteke pri katerih ni pisalo kaj so.Po tem sm pognal še network restart in stvar je začela delovat.Integrirana kartica je postala eth0,realtekova pa eth1.
http://www.r00li.com

kriko1 ::

cool, se mi je zdelo da ga moti tale eth2 - samo nisem bil sigurn kako to rešit, lepo si se znajdu.

luka_lucky ::

Sam imam zelo podoben problem na prenosniku ASUS A6V, le da dela vse OK pod linuxom Suse 10.0, ce pa potem racunalnik restart-am in pozenem WinXP internet ne dela. Pod windowsi zacne vse skupaj delovati sele ce racunalnik popolnoma ugasnem, izklopim mrezni kabel in ne samo to pac pa moram nujno izklopiti tudi kabel napajanja prenosnika. Ce odklopim samo enega ali samo drugega pred ponovnim zagonom winXP, internet se vedno ne deluje.

Kaksna ideja?

kriko1 ::

Mislim da sem zasledu že enkrat podobno težavo, samo ne vem kje, menda je bilo na mandrivi.
Pri ugašanju se zaustavijo tudi mrežne kartice (se odnaloži modul), vendar iz določenih razlogov po rebootu niso delovale. Po mojem bi jih moral bios normalno reinicializirat, zato ti svetujem da pogledaš če je na voljo kak popravek za bios.
Kakšne mrežne pa so (čipovje)?

roli ::

Moj problem se nadaljuje.Včeraj je delovalo (tudi po rebootu),ko pa sem zagnal winowse in potem linux pa spet ne.Mrežna kartia je spet eth2
http://www.r00li.com

kriko1 ::

Nekaj jo da kot eth2, kaj pa ne vem. Poglej pod:
/etc/sysconfig/network/config
Kaj pa si poskusu z brisanjem konf. datotek ki sem ti reku? Ne pozabi na backup - glej zgoraj.

kriko1 ::

Naredi nekaj:
Pejdi v win -> ugasni računalnik, sklopi iz el. omrežja za 15 sec, vklopi, pejdi v linux in povej če dela / so spremembe...

roli ::

Naredi nekaj:
Pejdi v win -> ugasni računalnik, sklopi iz el. omrežja za 15 sec, vklopi, pejdi v linux in povej če dela / so spremembe...

Sedaj pa deluje.
http://www.r00li.com

kriko1 ::

hmmm... sumim bios, je up-to-date?
Ker ne vidim razloga da bi tole kar skakalo na eth2

Zgodovina sprememb…

  • spremenil: kriko1 ()

luka_lucky ::

Hvala za idejo. Sicer sem ze sam mislil na bios ampak vseeno se mi ne zdi logicno to, da moram odklopit mrezno napajanje prenosnika in mrezni kabel, da stvar spet dela, se posebaj zato ker je to prenosnik in tudi ko je vse odklopljeno obdrzi se vedno sekundarno napajanje - baterijo!
Mrezni kartici sta v bistvu dve in sicer
Marvell Yukon Gigabit Ethernet 10/100/1000Base-T Adapter, Copper RJ-45 ter Intel® PRO/Wireless 220BG Netwoork Connection. Pozabil sem omeniti da z wireless povezavo ni problema in deluje pod obema sistemoma v "vseh pogojih", omenjena tezava je vezana le na "zico".

kriko1 ::

Marvell Yukon Gigabit Ethernet 10/100/1000Base-T Adapter
Identično mrežno imam integrirano v mojem računalniku in ni bilo težav ne v suse 9.3, 10 in 10.1 - gonilnik dela odlično, težava je nekje drugje.

root ::

Meni se z Marvell mrežno kartico, ki je na Asus a8n plati ne da povezat na T-2 modem, z nvidijino pa dela brez problemov. To je tako v linuxu kot v windowsih. Drugače pa dela mrežna kartica vredu, če jo priklopim na drugo kartico.


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

Katera datoteka v linuxu da se zaženejo moduli ob zagonu?

Oddelek: Operacijski sistemi
8946 (856) shock
»

3 mrežne, CC, port forwarding

Oddelek: Omrežja in internet
82027 (1864) miki133
»

Vdor v ClarkConnect?

Oddelek: Operacijski sistemi
51968 (1780) Nerdor
»

red hat 9 in mrežna kartica sis900

Oddelek: Operacijski sistemi
81092 (1041) dr.J
»

freesco

Oddelek: Omrežja in internet
71812 (1638) mile

Več podobnih tem