Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Po emerge przestała działać sieć
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Instalacja i sprzęt
View previous topic :: View next topic  
Author Message
deyot
n00b
n00b


Joined: 26 Sep 2007
Posts: 18

PostPosted: Tue Jul 01, 2008 6:46 pm    Post subject: [SOLVED] Po emerge przestała działać sieć Reply with quote

Witam.
Mam taki problem. Parę tygodni temu zrobiłem emerge --update --deep system. Troszeczkę to trwało ale wszystko się pokompilowało. Problem z tym, że po ponownym uruchomieniu komputera kompletnie przestała działać sieć. Mam zwykłego LANa, żadne neostrady czy tym podobne rozwiązania, z którymi bywają problemy. Kiedy próbuje ping, przy próbie sprawdzenia jakiegokolwiek adresu poza localhostem stwierdza, że "network unreachable". Sieć oczywiście fizycznie jest sprawna, bo windows i dystrybucje liveCD bez problemu ją uruchamiają. Poradźcie mi gdzie szukać rozwiązania problemu. Ewentualnie jakie logi powinienem przejrzeć celem znalezienia przyczyny problemu?


Last edited by deyot on Tue Jul 08, 2008 7:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
Kurt Steiner
Moderator
Moderator


Joined: 01 Apr 2005
Posts: 1051
Location: Ostroleka, Polska

PostPosted: Tue Jul 01, 2008 7:04 pm    Post subject: Reply with quote

Pokaż wynik polecenia ifconfig i plik /etc/conf.d/net.
_________________
Proszę, pamiętaj o regulaminie, a jeśli zauważysz, że został on złamany, zgłoś to. :)

LRU:431698
Back to top
View user's profile Send private message
deyot
n00b
n00b


Joined: 26 Sep 2007
Posts: 18

PostPosted: Wed Jul 02, 2008 7:20 pm    Post subject: Reply with quote

Wygląda to tak:
/etc/conf.d/net
Code:
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).

iface_eth0="dhcp"
dhcpcd_eth0=""

Nic tu nigdy nie ruszałem

ifconfig
Code:
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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Mam nadzieję, że to rzuci nieco światła.
Back to top
View user's profile Send private message
Dagger
Developer
Developer


Joined: 11 Jun 2003
Posts: 765
Location: UK

PostPosted: Thu Jul 03, 2008 11:46 am    Post subject: Reply with quote

mozesz jeszcze podac:
lspci
lsmod
ifconfig -a
rc-status
_________________
95% of all computer errors occur between chair and keyboard (TM)
Join the FSF as an Associate Member!
Post under CC license.
Back to top
View user's profile Send private message
deyot
n00b
n00b


Joined: 26 Sep 2007
Posts: 18

PostPosted: Fri Jul 04, 2008 4:27 pm    Post subject: Reply with quote

No więc po kolei:
lspci
Code:
00:00.0 Host bridge: nVidia Corporation nForce2 AGP (different version?) (rev c1)
00:00.1 RAM memory: nVidia Corporation nForce2 Memory Controller 1 (rev c1)
00:00.2 RAM memory: nVidia Corporation nForce2 Memory Controller 4 (rev c1)
00:00.3 RAM memory: nVidia Corporation nForce2 Memory Controller 3 (rev c1)
00:00.4 RAM memory: nVidia Corporation nForce2 Memory Controller 2 (rev c1)
00:00.5 RAM memory: nVidia Corporation nForce2 Memory Controller 5 (rev c1)
00:01.0 ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev a4)
00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2)
00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4)
00:04.0 Ethernet controller: nVidia Corporation nForce2 Ethernet Controller (rev a1)
00:06.0 Multimedia audio controller: nVidia Corporation nForce2 AC97 Audio Controler (MCP) (rev a1)
00:08.0 PCI bridge: nVidia Corporation nForce2 External PCI Bridge (rev a3)
00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev a2)
00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1)
02:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600] (rev a2)

lsmod
Code:
Module                  Size  Used by
ipv6                  208868  10
rfcomm                 34840  0
l2cap                  25216  9 rfcomm
snd_seq_midi            9376  0
snd_pcm_oss            33440  0
snd_mixer_oss          15872  1 snd_pcm_oss
snd_seq_oss            25876  0
snd_seq_midi_event      7552  2 snd_seq_midi,snd_seq_oss
snd_seq                35484  5 snd_seq_midi,snd_seq_oss,snd_seq_midi_event
nvidia               7361852  0
snd_intel8x0           26652  0
snd_ac97_codec         72608  1 snd_intel8x0
snd_mpu401              8780  0
snd_mpu401_uart         8960  1 snd_mpu401
snd_rawmidi            18208  2 snd_seq_midi,snd_mpu401_uart
ac97_bus                5376  1 snd_ac97_codec
hci_usb                14236  2
snd_seq_device          8588  4 snd_seq_midi,snd_seq_oss,snd_seq,snd_rawmidi
snd_pcm                46980  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer              18436  2 snd_seq,snd_pcm
fan                     7428  0
snd                    33172  12 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_intel8x0,snd_ac97_codec,snd_mpu401,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_pcm,snd_timer
bluetooth              43092  7 rfcomm,l2cap,hci_usb
thermal                15260  0
ppdev                  10756  0
i2c_nforce2             8448  0
snd_page_alloc         10504  2 snd_intel8x0,snd_pcm
processor              28968  1 thermal
nvidia_agp              9756  1
button                  9744  0
agpgart                22592  2 nvidia,nvidia_agp
analog                 12676  0
i2c_core               17152  2 nvidia,i2c_nforce2
parport_pc             32060  0
forcedeth              41992  0
pcspkr                  6016  0
gameport               12808  1 analog
parport                26568  2 ppdev,parport_pc
rtc                    12952  0
floppy                 48628  0
tg3                    92804  0
e1000                  95552  0
nfs                    99168  0
lockd                  50424  1 nfs
sunrpc                118304  2 nfs,lockd
jfs                   148380  0
raid10                 22784  0
raid456               117776  0
async_memcpy            5632  1 raid456
async_xor               6656  1 raid456
xor                    15624  2 raid456,async_xor
async_tx                8500  3 raid456,async_memcpy,async_xor
raid1                  22656  0
raid0                  10496  0
dm_bbr                 13844  0
dm_snapshot            16804  0
dm_mirror              20480  0
dm_mod                 41008  3 dm_bbr,dm_snapshot,dm_mirror
scsi_wait_scan          4864  0
pdc_adma                9860  0
sata_mv                19080  0
ata_piix               15748  0
ahci                   19844  0
sata_qstor             10244  0
sata_vsc                9860  0
sata_uli                8836  0
sata_sis               10244  0
sata_sx4               13316  0
sata_nv                17284  0
sata_via               12036  0
sata_svw                9092  0
sata_sil24             14084  0
sata_sil               11528  0
sata_promise           12420  0
pata_sis               12932  1 sata_sis
libata                 78772  16 pdc_adma,sata_mv,ata_piix,ahci,sata_qstor,sata_vsc,sata_uli,sata_sis,sata_sx4,sata_nv,sata_via,sata_svw,sata_sil24,sata_sil,sata_promise,pata_sis
sbp2                   19976  0
ohci1394               28592  0
ieee1394               58496  2 sbp2,ohci1394
sl811_hcd              13056  0
usbhid                 25060  0
ohci_hcd               19972  0
uhci_hcd               22028  0
usb_storage            63368  1
ehci_hcd               27788  0
usbcore                91628  8 hci_usb,sl811_hcd,usbhid,ohci_hcd,uhci_hcd,usb_storage,ehci_hcd

ifconfig -a
Code:
eth0      Link encap:Ethernet  HWaddr 00:04:61:61:2d:0a 
          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:16 Base address:0x4000

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

rc-status
Code:
Runlevel: default
 hdparm                                                            [  started  ]
 dbus                                                              [  started  ]
 syslog-ng                                                         [  started  ]
 hald                                                              [  started  ]
 esound                                                            [  started  ]
 fbcondecor                                                        [  started  ]
 netmount                                                          [  started  ]
 numlock                                                           [  started  ]
 vixie-cron                                                        [  started  ]
 local                                                             [  started  ]
Runlevel: UNASSIGNED
 udev-postmount                                                    [  started  ]
 bluetooth                                                         [  started  ]

Mam nadzieję, że ktoś znajdzie jakąś wskazówkę. Dotychczas udawało mi się rozwiązać, jakoś, wszystkie problemy jakie miałem z Linuksem. Chciałbym nie musieć instalować od nowa.
Back to top
View user's profile Send private message
mistix
Apprentice
Apprentice


Joined: 27 Dec 2006
Posts: 248
Location: Gliwice / Poland

PostPosted: Fri Jul 04, 2008 6:53 pm    Post subject: Reply with quote

Normanie wszystko jest ok, ale wygląda na to, że Twoja konfiguracja się nie trzyma kupy spróbuj ręcznie
Code:
ifconfig eth0 up && dhcpcd eth0
a jak nie masz dynamicznie to z palca wpisz adres. A takie pytanko na marginesie jak dawno nie robiłeś tego updejta ? Jak to 3-4 miesiące to może przejście na openrc coś zrobiło ? I przy starcie systemu nic nie podnosi Twojego interfejsu sieciowego.
_________________
Cuda się zdarzają. Co potwierdzi każdy programista.
Back to top
View user's profile Send private message
Exil
Apprentice
Apprentice


Joined: 10 Oct 2005
Posts: 251
Location: Nibylandia

PostPosted: Sat Jul 05, 2008 7:45 am    Post subject: Reply with quote

Działający wpis.

Code:
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
config_eth0=( "dhcp" )
Back to top
View user's profile Send private message
Dagger
Developer
Developer


Joined: 11 Jun 2003
Posts: 765
Location: UK

PostPosted: Sat Jul 05, 2008 9:03 am    Post subject: Reply with quote

_przypuszczam_, ze:

uzywasz ~arch i zaktualizowales do baselayout2 i openrc

podczas aktualizacji nie przeczytales openrc howto

skrypty /etc/init.d/net.eth0 zostaly usuniete (przynajmniej tak wynika z rc-status)

Nie masz zadnego clienta DHCP w rc-config (net.eth0 startuje go automatycznie)

sprobuj:

ln -s /etc/init.d/net.lo /etc/init.d/net.eth0
emerge -av netplug
/etc/init.d/net.eth0 restart

rc-update add net.eth0 default (w sumie jak /etc/init.d/net.eth0 bedzie istnialo to openrc wystartuje je automatycznie)
_________________
95% of all computer errors occur between chair and keyboard (TM)
Join the FSF as an Associate Member!
Post under CC license.
Back to top
View user's profile Send private message
deyot
n00b
n00b


Joined: 26 Sep 2007
Posts: 18

PostPosted: Tue Jul 08, 2008 7:55 pm    Post subject: Reply with quote

Dzięki. Wszystko zadziałało. Faktycznie nie uruchamiał mi się demon dhcpcd.
Jeszcze tylko mała rzecz. Przy starcie dostaję info: "/etc/init.d/net.eth0 WARNING: net.eth0 not under our control, aborting". O co chodzi? Od razu powiem, że sieć działa i tak.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Instalacja i sprzęt All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum