Fórum Ubuntu CZ/SK

Ubuntu pro osobní počítače => Internet a sítě => Téma založeno: Wors 04 Června 2008, 21:13:42

Název: DHCP nedava adresu, staticka IP funguje
Přispěvatel: Wors 04 Června 2008, 21:13:42
Zdravim,
uz asi tretim dnem prochazim fora o ubuntu kvuli problemum se siti a teprve dnes mi zacala fungovat.
Bohuzel ale jen na staticke IP a mam strach, ze to muze byt casem na zavadu.

Kdyz jeste nic nefungovalo, zkousel jsem podle fora vypsat par prikazu:
Kód: [Vybrat]
$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:17:31:7d:42:5b 
  inet6 addr: fe80::217:31ff:fe7d:425b/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:179 errors:0 dropped:0 overruns:0 frame:0
  TX packets:245 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:21666 (21.1 KB)  TX bytes:30039 (29.3 KB)
  Interrupt:249 Base address:0xe000

eth0:avahi Link encap:Ethernet  HWaddr 00:17:31:7d:42:5b 
  inet addr:169.254.4.192  Bcast:169.254.255.255  Mask:255.255.0.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  Interrupt:249 Base address:0xe000

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:1360 errors:0 dropped:0 overruns:0 frame:0
  TX packets:1360 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:69928 (68.2 KB)  TX bytes:69928 (68.2 KB)


$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
link-local      *               255.255.0.0     U     0      0        0 eth0
default         *               0.0.0.0         U     1000   0        0 eth0


$ sudo cat /etc/network/interfaces
auto lo
iface lo inet loopback


$ cat /etc/resolv.conf
nameserver 192.168.50.1


$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 worscomp

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


$ cat /etc/hostname
worscomp

Kód: [Vybrat]
$ lshw -network
Hardware Lister (lshw) - B.02.12.01
usage: lshw [-format] [-options ...]
       lshw -version

-version        print program version (B.02.12.01)

format can be
-html           output hardware tree as HTML
-xml            output hardware tree as XML
-short          output hardware paths
-businfo        output bus information

options can be
-class CLASS    only show a certain class of hardware
-C CLASS        same as '-class CLASS'
-disable TEST   disable a test (like pci, isapnp, cpuid, etc. )
-enable TEST    enable a test (like pci, isapnp, cpuid, etc. )
-quiet          don't display status
-sanitize       sanitize output (remove sensitive information like serial numbers, etc.)


$ lsmod
Module                  Size  Used by
nls_iso8859_1           6656  1
nls_cp437               8320  1
vfat                   16256  1
fat                    60592  1 vfat
ipv6                  311720  10
af_packet              27272  2
rfcomm                 47392  2
l2cap                  28800  13 rfcomm
bluetooth              67748  4 rfcomm,l2cap
ppdev                  11400  0
cpufreq_ondemand       11152  0
cpufreq_userspace       6180  0
cpufreq_powersave       3200  0
cpufreq_stats           8416  0
freq_table              6464  2 cpufreq_ondemand,cpufreq_stats
cpufreq_conservative    10632  0
sbs                    17808  0
dock                   12960  0
video                  23444  0
output                  5632  1 video
container               6656  0
sbshc                   8960  1 sbs
battery                16776  0
iptable_filter          4608  0
ip_tables              24104  1 iptable_filter
x_tables               23560  1 ip_tables
ac                      8328  0
lp                     14916  0
parport_pc             41128  1
parport                44300  3 ppdev,lp,parport_pc
evdev                  14976  3
serio_raw               9092  0
psmouse                46236  0
pcspkr                  4992  0
k8temp                  7680  0
shpchp                 38172  0
pci_hotplug            34608  1 shpchp
snd_hda_intel         440408  3
snd_pcm_oss            47648  0
snd_mixer_oss          20224  1 snd_pcm_oss
snd_pcm                92168  2 snd_hda_intel,snd_pcm_oss
snd_page_alloc         13200  2 snd_hda_intel,snd_pcm
snd_hwdep              12552  1 snd_hda_intel
snd_seq_dummy           5764  0
snd_seq_oss            38912  0
snd_seq_midi           10688  0
snd_rawmidi            29856  1 snd_seq_midi
snd_seq_midi_event     10112  2 snd_seq_oss,snd_seq_midi
snd_seq                63232  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              27912  2 snd_pcm,snd_seq
snd_seq_device         10644  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd                    70856  17 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_dummy,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore              10400  1 snd
button                 10912  0
i2c_nforce2             8704  0
i2c_core               28544  1 i2c_nforce2
ext3                  149264  2
jbd                    57000  1 ext3
mbcache                11392  1 ext3
sg                     41880  0
sr_mod                 20132  0
cdrom                  41512  1 sr_mod
sd_mod                 33280  6
usb_storage            82496  1
sata_nv                31624  3
libusual               23520  1 usb_storage
ata_generic             9988  0
pata_amd               16772  0
floppy                 69096  0
pata_acpi               9856  0
forcedeth              55564  0
ehci_hcd               41996  0
ohci_hcd               27524  0
libata                176304  4 sata_nv,ata_generic,pata_amd,pata_acpi
scsi_mod              178488  5 sg,sr_mod,sd_mod,usb_storage,libata
usbcore               169904  5 usb_storage,libusual,ehci_hcd,ohci_hcd
thermal                19744  0
processor              41448  1 thermal
fan                     6792  0
fbcon                  46336  0
tileblit                4096  1 fbcon
font                   10112  1 fbcon
bitblit                 7424  1 fbcon
softcursor              3712  1 bitblit
fuse                   56112  3


$ sudo ethtool eth0
[sudo] password for wors:
Settings for eth0:
Supported ports: [ MII ]
Supported link modes:   10baseT/Half 10baseT/Full
                100baseT/Half 100baseT/Full
                1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
                100baseT/Half 100baseT/Full
                1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes

Pak jsem zkusil route a priradit default gw.
Mam pripojeni takove, ze wifi antenou na strese chytam signal z vysilace kamarada, ktery ma ADSL. Z anteny je napojeny Edimax, z nej switch a pak me PC.
Kód: [Vybrat]
$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
link-local      *               255.255.0.0     U     0      0        0 eth0
default         *               0.0.0.0         U     1000   0        0 eth0


$ sudo route add default gw 192.168.50.1

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
link-local      *               255.255.0.0     U     0      0        0 eth0
default         192.168.50.1    0.0.0.0         UG    0      0        0 eth0
default         *               0.0.0.0         U     1000   0        0 eth0

$ ping 192.168.50.1 -c10
PING 192.168.50.1 (192.168.50.1) 56(84) bytes of data.

--- 192.168.50.1 ping statistics ---
10 packets transmitted, 0 received, 100% packet loss, time 9010ms

Nakonec me napadlo podivat se do Windows, co mi bylo vse prideleno a pri prikazu ipconfig mi vyjelo:
Kód: [Vybrat]
Konfigurace site Ethernet Pripojeni k siti:
        Pripona DNS podle pripojeni . . . . . . domain
        Adresa IP                        . . . . . . 192.168.50.37
        Maska podsite                  . . . . . . 255.255.255.0
        Vychozi brana                  . . . . . . 192.168.50.1

Od te doby ping fungoval...

Co mam udelat, abych mel IP prirazenou od DHCP automaticky? Abych nemusel mit IP staticky. Nevim, jestli mam vzdy stejnou IP a kdyby se mi nahodou nekdy zmenila, mohlo by dojit ke kolizi v siti.

Mam to nechat tak, nebo to jde nejak vyresit?

Predem diky za odpoved
Název: Re: DHCP nedava adresu, staticka IP funguje
Přispěvatel: Petr Merlin Vaněček 04 Června 2008, 22:07:45
Zkontrolujte, zda MAC adresa pod Windows je shodná s tou v Linuxu.
Zkuste také dhcpecko probrat manualne:
Kód: [Vybrat]
sudo ifdown eth0
sudo dhclient eth0
Název: Re: DHCP nedava adresu, staticka IP funguje
Přispěvatel: truhlik 04 Června 2008, 22:21:37
Nemelo byt byt v /etc/network/interfaces
Kód: [Vybrat]
auto eth0
iface eth0 inet dhcp
Název: Re: DHCP nedava adresu, staticka IP funguje
Přispěvatel: Petr Merlin Vaněček 04 Června 2008, 22:22:36
Luboš "truhlik" Truhlář: ne, on to NM totiž stejně ignoruje ... :'(
Což vůbec není pěkné.
Název: Re: DHCP nedava adresu, staticka IP funguje
Přispěvatel: Wors 05 Června 2008, 01:34:33
Zkontrolujte, zda MAC adresa pod Windows je shodná s tou v Linuxu.
Zkuste také dhcpecko probrat manualne:

Je stejna (00-17-31-7d-42-5b) tak jako ve vypisu ifconfig

Kód: [Vybrat]
$ sudo route add default gw 192.168.50.1

$ sudo ifdown eth0
ifdown: interface eth0 not configured

$ sudo dhclient eth0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:17:31:7d:42:5b
Sending on   LPF/eth0/00:17:31:7d:42:5b
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

$ route
Směrovací tabulka v jádru pro IP
Adresát         Brána           Maska           Přízn Metrik Odkaz  Užt Rozhraní
link-local      *               255.255.0.0     U     0      0        0 eth0
default         *               0.0.0.0         U     1000   0        0 eth0

Pak jsem znovu zkusil zadat branu

Kód: [Vybrat]
$ sudo route add default gw 192.168.50.1

$ route
Směrovací tabulka v jádru pro IP
Adresát         Brána           Maska           Přízn Metrik Odkaz  Užt Rozhraní
link-local      *               255.255.0.0     U     0      0        0 eth0
default         192.168.50.1    0.0.0.0         UG    0      0        0 eth0
default         *               0.0.0.0         U     1000   0        0 eth0

$ ping 192.168.50.1 -c10
PING 192.168.50.1 (192.168.50.1) 56(84) bytes of data.

--- 192.168.50.1 ping statistics ---
10 packets transmitted, 0 received, 100% packet loss, time 9010ms

Při lshw není vidět žádný network adaptér
Kód: [Vybrat]
$ lshw
WARNING: you should run this program as super-user.
worscomp                 
    description: Computer
    width: 32 bits
  *-core
       description: Motherboard
       physical id: 0
     *-memory:0
          description: System memory
          physical id: 3
          size: 2046MiB
     *-cpu
          product: AMD Athlon(tm) 64 Processor 3000+
          vendor: Advanced Micro Devices [AMD]
          physical id: 7
          bus info: cpu@0
          width: 64 bits
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt rdtscp x86-64 3dnowext 3dnow up rep_good pni cx16 lahf_lm svm extapic cr8_legacy
     *-memory:1 UNCLAIMED
          description: RAM memory
          product: MCP55 Memory Controller
          vendor: nVidia Corporation
          physical id: 0
          bus info: pci@0000:00:00.0
          version: a1
          width: 32 bits
          clock: 66MHz (15.2ns)
          capabilities: bus_master cap_list
          configuration: latency=0
     *-isa
          description: ISA bridge
          product: MCP55 LPC Bridge
          vendor: nVidia Corporation
          physical id: 1
          bus info: pci@0000:00:01.0
          version: a2
          width: 32 bits
          clock: 66MHz
          capabilities: isa bus_master
          configuration: latency=0
     *-serial
          description: SMBus
          product: MCP55 SMBus
          vendor: nVidia Corporation
          physical id: 1.1
          bus info: pci@0000:00:01.1
          version: a2
          width: 32 bits
          clock: 66MHz
          capabilities: cap_list
          configuration: driver=nForce2_smbus latency=0 module=i2c_nforce2
     *-memory:2 UNCLAIMED
          description: RAM memory
          product: MCP55 Memory Controller
          vendor: nVidia Corporation
          physical id: 1.2
          bus info: pci@0000:00:01.2
          version: a2
          width: 32 bits
          clock: 66MHz (15.2ns)
          configuration: latency=0
     *-usb:0
          description: USB Controller
          product: MCP55 USB Controller
          vendor: nVidia Corporation
          physical id: 2
          bus info: pci@0000:00:02.0
          version: a1
          width: 32 bits
          clock: 66MHz
          capabilities: ohci bus_master cap_list
          configuration: driver=ohci_hcd latency=0 maxlatency=1 mingnt=3 module=ohci_hcd
     *-usb:1
          description: USB Controller
          product: MCP55 USB Controller
          vendor: nVidia Corporation
          physical id: 2.1
          bus info: pci@0000:00:02.1
          version: a2
          width: 32 bits
          clock: 66MHz
          capabilities: ehci bus_master cap_list
          configuration: driver=ehci_hcd latency=0 maxlatency=1 mingnt=3 module=ehci_hcd
     *-ide:0
          description: IDE interface
          product: MCP55 IDE
          vendor: nVidia Corporation
          physical id: 4
          bus info: pci@0000:00:04.0
          version: a1
          width: 32 bits
          clock: 66MHz
          capabilities: ide bus_master cap_list
          configuration: driver=pata_amd latency=0 maxlatency=1 mingnt=3 module=pata_amd
     *-ide:1
          description: IDE interface
          product: MCP55 SATA Controller
          vendor: nVidia Corporation
          physical id: 5
          bus info: pci@0000:00:05.0
          version: a2
          width: 32 bits
          clock: 66MHz
          capabilities: ide bus_master cap_list
          configuration: driver=sata_nv latency=0 maxlatency=1 mingnt=3 module=sata_nv
     *-ide:2
          description: IDE interface
          product: MCP55 SATA Controller
          vendor: nVidia Corporation
          physical id: 5.1
          bus info: pci@0000:00:05.1
          version: a2
          width: 32 bits
          clock: 66MHz
          capabilities: ide bus_master cap_list
          configuration: driver=sata_nv latency=0 maxlatency=1 mingnt=3 module=sata_nv
     *-ide:3
          description: IDE interface
          product: MCP55 SATA Controller
          vendor: nVidia Corporation
          physical id: 5.2
          bus info: pci@0000:00:05.2
          version: a2
          width: 32 bits
          clock: 66MHz
          capabilities: ide bus_master cap_list
          configuration: driver=sata_nv latency=0 maxlatency=1 mingnt=3 module=sata_nv
     *-pci:0
          description: PCI bridge
          product: MCP55 PCI bridge
          vendor: nVidia Corporation
          physical id: 6
          bus info: pci@0000:00:06.0
          version: a2
          width: 32 bits
          clock: 66MHz
          capabilities: pci subtractive_decode bus_master cap_list
     *-multimedia
          description: Audio device
          product: MCP55 High Definition Audio
          vendor: nVidia Corporation
          physical id: 6.1
          bus info: pci@0000:00:06.1
          version: a2
          width: 32 bits
          clock: 66MHz
          capabilities: bus_master cap_list
          configuration: driver=HDA Intel latency=0 maxlatency=5 mingnt=2 module=snd_hda_intel
     *-bridge
          description: Ethernet interface
          product: MCP55 Ethernet
          vendor: nVidia Corporation
          physical id: 8
          bus info: pci@0000:00:08.0
          logical name: eth0
          version: a2
          serial: 00:17:31:7d:42:5b
          width: 32 bits
          clock: 66MHz
          capabilities: bridge bus_master cap_list ethernet physical
          configuration: broadcast=yes driver=forcedeth driverversion=0.61 latency=0 maxlatency=20 mingnt=1 module=forcedeth multicast=yes
     *-pci:1
          description: PCI bridge
          product: MCP55 PCI Express bridge
          vendor: nVidia Corporation
          physical id: a
          bus info: pci@0000:00:0a.0
          version: a2
          width: 32 bits
          clock: 33MHz
          capabilities: pci normal_decode bus_master cap_list
          configuration: driver=pcieport-driver
     *-pci:2
          description: PCI bridge
          product: MCP55 PCI Express bridge
          vendor: nVidia Corporation
          physical id: b
          bus info: pci@0000:00:0b.0
          version: a2
          width: 32 bits
          clock: 33MHz
          capabilities: pci normal_decode bus_master cap_list
          configuration: driver=pcieport-driver
     *-pci:3
          description: PCI bridge
          product: MCP55 PCI Express bridge
          vendor: nVidia Corporation
          physical id: c
          bus info: pci@0000:00:0c.0
          version: a2
          width: 32 bits
          clock: 33MHz
          capabilities: pci normal_decode bus_master cap_list
          configuration: driver=pcieport-driver
     *-pci:4
          description: PCI bridge
          product: MCP55 PCI Express bridge
          vendor: nVidia Corporation
          physical id: d
          bus info: pci@0000:00:0d.0
          version: a2
          width: 32 bits
          clock: 33MHz
          capabilities: pci normal_decode bus_master cap_list
          configuration: driver=pcieport-driver
     *-pci:5
          description: PCI bridge
          product: MCP55 PCI Express bridge
          vendor: nVidia Corporation
          physical id: e
          bus info: pci@0000:00:0e.0
          version: a2
          width: 32 bits
          clock: 33MHz
          capabilities: pci normal_decode bus_master cap_list
          configuration: driver=pcieport-driver
     *-pci:6
          description: PCI bridge
          product: MCP55 PCI Express bridge
          vendor: nVidia Corporation
          physical id: f
          bus info: pci@0000:00:0f.0
          version: a2
          width: 32 bits
          clock: 33MHz
          capabilities: pci normal_decode bus_master cap_list
          configuration: driver=pcieport-driver
        *-display
             description: VGA compatible controller
             product: G70 [GeForce 7600 GS]
             vendor: nVidia Corporation
             physical id: 0
             bus info: pci@0000:07:00.0
             version: a1
             width: 64 bits
             clock: 33MHz
             capabilities: vga_controller bus_master cap_list
             configuration: driver=nvidia latency=0 module=nvidia
     *-pci:7
          description: Host bridge
          product: K8 [Athlon64/Opteron] HyperTransport Technology Configuration
          vendor: Advanced Micro Devices [AMD]
          physical id: 100
          bus info: pci@0000:00:18.0
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:8
          description: Host bridge
          product: K8 [Athlon64/Opteron] Address Map
          vendor: Advanced Micro Devices [AMD]
          physical id: 101
          bus info: pci@0000:00:18.1
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:9
          description: Host bridge
          product: K8 [Athlon64/Opteron] DRAM Controller
          vendor: Advanced Micro Devices [AMD]
          physical id: 102
          bus info: pci@0000:00:18.2
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:10
          description: Host bridge
          product: K8 [Athlon64/Opteron] Miscellaneous Control
          vendor: Advanced Micro Devices [AMD]
          physical id: 103
          bus info: pci@0000:00:18.3
          version: 00
          width: 32 bits
          clock: 33MHz
          configuration: driver=k8temp module=k8temp
  *-scsi
       physical id: 1
       bus info: scsi@4
       logical name: scsi4
       capabilities: scsi-host
       configuration: driver=usb-storage
Název: Re: DHCP nedava adresu, staticka IP funguje
Přispěvatel: Martin Kiklhorn 05 Června 2008, 06:35:06
Citace
Kód: [Vybrat]
     *-bridge
          description: Ethernet interface
          product: MCP55 Ethernet
          vendor: nVidia Corporation
          physical id: 8
          bus info: pci@0000:00:08.0
          logical name: eth0
          version: a2
          serial: 00:17:31:7d:42:5b
          width: 32 bits
          clock: 66MHz
          capabilities: bridge bus_master cap_list ethernet physical
          configuration: broadcast=yes driver=forcedeth driverversion=0.61 latency=0 maxlatency=20 mingnt=1 module=forcedeth multicast=yes
Nejste v tom sám,
zkuste si projít některý z výsledků, třeba najdete odpověď.
http://www.google.cz/search?q=MCP55+not+allowing+DHCP (http://www.google.cz/search?q=MCP55+not+allowing+DHCP)
Název: Re: DHCP nedava adresu, staticka IP funguje
Přispěvatel: Petr Merlin Vaněček 05 Června 2008, 07:56:01
No vida ho potvoru :(
Název: Re: DHCP nedava adresu, staticka IP funguje
Přispěvatel: Wors 05 Června 2008, 09:47:56
Tak jsem nasel nejake reseni, hned jak dorazim domu ho zkusim...

Kód: [Vybrat]
I've had exactly the same problem, however just found the solution:
In the Gusty Tribe 5 live installer, open a terminal:

$ sudo su
# rmmod forcedeth
# modprobe forcedeth msi=0 msix=0
# /etc/init.d/networking restart

Your network interfaces should come back up and actually work now :-)

Doufam, ze v tom neni nejaky zadrhel, kterym bych neco pokazil :D

EDIT:
Kód: [Vybrat]
I had the same problem with embedded nForce NVIDIA network controller.
The fix consisting in putting "options forcedeth msi=0 msix=0" in in the interface file (and then "sudo update-initramfs -u") worked for me as well.
thank you :)
Název: Re: DHCP nedava adresu, staticka IP funguje
Přispěvatel: Wors 05 Června 2008, 19:07:38
Hmm, tak to nijak nepomohlo :o(

Kód: [Vybrat]
$ sudo su

s# rmmod forcedeth

# modprobe forcedeth msi=0 msix=0

# /etc/init.d/networking restart
 * Reconfiguring network interfaces...                                   [ OK ]

# ping 192.168.50.1
connect: Network is unreachable

# cat /etc/network/interfaces
auto lo
iface lo inet loopback


# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.24-18-generic


Nepochytil jsem, co s tim :-(
Staticka IP mi prozatim funguje pri kazdem spusteni, tak se na to asi vybodnu, ale stve me, ze jsem nenasel reseni
Název: Re: DHCP nedava adresu, staticka IP funguje
Přispěvatel: Petr Merlin Vaněček 05 Června 2008, 21:01:45
No bacha na věc - když to děláte ručně, musíte mít v /etc/network/interfaces i tu danou síťovku, pouze pokud to ponechávate na NM, tak tam být nemusí.
zkuste toto:
Kód: [Vybrat]
sudo modprobe -r forcedeth
sudo modprobe forcedeth msi=0 msix=0
dhclient eth0
ping 192.168.50.1
Název: Re: DHCP nedava adresu, staticka IP funguje
Přispěvatel: Wors 05 Června 2008, 21:24:23
Zkusil jsem to, ackoli nevim v podstate co delam, coz je docela problem :o)
Bylo by to jednodussi, kdybych tomu rozumnel  :D

Kód: [Vybrat]
wors@worscomp:~$ sudo modprobe -r forcedeth
wors@worscomp:~$ sudo modprobe forcedeth msi=0 msix=0
wors@worscomp:~$ dhclient eth0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

can't create /var/lib/dhcp3/dhclient.leases: Permission denied
Can't create /var/run/dhclient.pid: Permission denied
drop_privileges: could not set group id: Operation not permitted
wors@worscomp:~$ sudo dhclient eth0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:17:31:7d:42:5b
Sending on   LPF/eth0/00:17:31:7d:42:5b
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
wors@worscomp:~$ ping 192.168.50.1
PING 192.168.50.1 (192.168.50.1) 56(84) bytes of data.
From 193.168.50.37 icmp_seq=1 Destination Host Unreachable
From 193.168.50.37 icmp_seq=2 Destination Host Unreachable
From 193.168.50.37 icmp_seq=3 Destination Host Unreachable

--- 192.168.50.1 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3008ms
, pipe 3
Název: Re: DHCP nedava adresu, staticka IP funguje
Přispěvatel: Petr Merlin Vaněček 06 Června 2008, 07:30:45
Co děláte?
Kód: [Vybrat]
sudo modprobe -r forcedeth
Odstraníte modul (ovladač) forcedeth ze těch zavedených

Kód: [Vybrat]
sudo modprobe forcedeth msi=0 msix=0
Ten samý modul zavedete s určitými parametry, ovladač od ovladače se liší

Kód: [Vybrat]
dhclient eth0
Řeknete DHCP klientovi, aby se na eth0 pokusil získat adresu ze serveru DHCP

Kód: [Vybrat]
ping 192.168.50.1
Pingujete bránu.

Bohužel stejně podle toho výpisu vidím, že žádný DHCP pack síťovka nedostala :(
Název: Re: DHCP nedava adresu, staticka IP funguje
Přispěvatel: Wors 06 Června 2008, 16:59:52
Je normalni, ze to hleda na masce 255.255.255.255, kdyz ve winech mam automaticky 255.255.255.0?

Kód: [Vybrat]
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Název: Re: DHCP nedava adresu, staticka IP funguje
Přispěvatel: Petr Merlin Vaněček 06 Června 2008, 20:58:23
Ano, to je zcela normální, protože se nejedná o masku, ale o označení všech subnetů v síti - na všechny možné existující bcasty - klient neví jakou adresu má server, musí se ptát všude.