DHCP doesn't work under Fedora Core 3 - using Knoppix DHCP has no problems
pipinia at web.de
pipinia at web.de
Fri Mar 18 08:41:02 UTC 2005
Hi dear IP wizards :)
After switching from Fedora Core 1 to Fedora Core 3 by reinstallation
and undating all packages via 'up2date' I cannot connect to the internet
anymore:
Determining IP information for eth0...: failed
This is kind of ironic since I was praising loudly and to everyone
Linux and Fedora (or better those guys assembling it), the modern
times and especially ... THE INTERNET ... since this time, the
installation went sooo smooth: I was able to install and update
everything directly via http, without having to buy CDs or burning
them first on my own :) ( While updating I had a walk in the park and
stared at green trees at the place of the screen - I hope I didn't miss
something important? )
My cable and video card are ok, since I am able to send this email
with the same computer and connection using Knoppix ( my sincere
thanks go to Klaus Knopper, the editor of Knoppix, for saving me all
the time, money and anger it takes to have to go to the next internet
cafe; to the Open Source community of course; and to Marcel Gagne
for his book "Moving to Linux - Kiss the Blue Screen of Death Goodbye!",
saving me from some other guys control of my purse and computer -
and providing the Knoppix CD :)
I tried to find a solution on my own by searching the internet for
similar cases, but couldn't find any working help. Or better: couldn't
make any sense out of those things I found, beeing a total ignorant
concerning problems like this. Nevertheless I append all kind of
information which was mentioned as helpfull in those postings ( ...and
which unfortunately doesn't say anything at all to me - any good
booktip etc. to educate myself ?? )
I thought, it might be helpful to have the same information for the
case of using Knoppix. I therefore very stupidely executed exactly the
same commands I tried for Fedora while using Knoppix ( which doesn't
have any problems to use DHCP and to connect to the internet. )
The output is listed in the following way:
================= ... ===
[fedora]# <command>
<output>
----------------- ... ---
[knoppix]# <command>
<output>
================= ... ===
Cheers, Die
... Probably the solution is easy - but ...
... sorry for beeing stupid and chatty :) ...
============================================================
============================================================
My computer:
MEDION MD9580-F Laptop
Ethernet controller:
RealTek Semiconductor Co., Ltd. RTL8139
============================================================
[fedora]# dmesg | grep eth0
divert: allocating divert_blk for eth0
eth0: RealTek RTL8139 at 0x1c00, 00:30:54:00:76:2c, IRQ 10
eth0: Identified 8139 chip type 'RTL-8139C'
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
eth0: no IPv6 routers present
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timeout, status 0c 0005 c07f media 10.
eth0: Tx queue start entry 4 dirty entry 0.
eth0: Tx descriptor 0 is 0008a05a. (queue head)
eth0: Tx descriptor 1 is 0008a04e.
eth0: Tx descriptor 2 is 0008a046.
eth0: Tx descriptor 3 is 0008a156.
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timeout, status 0c 0005 c07f media 10.
eth0: Tx queue start entry 4 dirty entry 0.
eth0: Tx descriptor 0 is 0008a046. (queue head)
eth0: Tx descriptor 1 is 0008a046.
eth0: Tx descriptor 2 is 0008a156.
eth0: Tx descriptor 3 is 0008a156.
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
------------------------------------------------------------
[knoppix]# dmesg | grep eth0
eth0: RealTek RTL8139 Fast Ethernet at 0xd1063000, 00:30:54:00:76:2c, IRQ 10
eth0: Identified 8139 chip type 'RTL-8139C'
eth0: Setting 100mbps full-duplex based on auto-negotiated partner ability 45e1.
eth0: Setting 100mbps full-duplex based on auto-negotiated partner ability 45e1.
============================================================
[fedora]# dmesg | grep -i error
ACPI-1138: *** Error: Method execution failed [\_SB_.PCI0.ISA_.SIRA._STA] (Node cfee8a20), AE_AML_NO_RETURN_VALUE
ACPI-0158: *** Error: Method execution failed [\_SB_.PCI0.ISA_.SIRA._STA] (Node cfee8a20), AE_AML_NO_RETURN_VALUE
----- by having a look myself I found also:
PCI: Using ACPI for IRQ routing
** PCI interrupts are no longer routed automatically. If this
** causes a device to stop working, it is probably because the
** driver failed to call pci_enable_device(). As a temporary
** workaround, the "pci=routeirq" argument restores the old
** behavior. If this argument makes the device work again,
** please email the output of "lspci" to bjorn.helgaas at hp.com
** so I can fix the driver.
PCI: Cannot allocate resource region 4 of device 0000:00:07.1
------------------------------------------------------------
[knoppix]# dmesg | grep -i error
usbdevfs: remount parameter error
EXT3-fs error (device ide0(3,2)): ext3_check_descriptors: Block bitmap for group 0 not in group (block 1853189987)!
end_request: I/O error, dev 02:00 (floppy), sector 0
EXT3-fs error (device ide0(3,2)): ext3_check_descriptors: Block bitmap for group 0 not in group (block 1853189987)!
EXT3-fs error (device ide0(3,2)): ext3_check_descriptors: Block bitmap for group 0 not in group (block 1853189987)!
----- ...couldn't find the same note:
[knoppix]# dmesg | grep '\*'
============================================================
[fedora]# cat /proc/ioports
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-006f : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
02f8-02ff : serial
0376-0376 : ide1
0378-037a : parport0
037b-037f : parport0
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial
0cf8-0cff : PCI conf1
1000-103f : 0000:00:07.3
1000-1003 : PM1a_EVT_BLK
1004-1005 : PM1a_CNT_BLK
1008-100b : PM_TMR
100c-100f : GPE0_BLK
1010-1015 : ACPI CPU throttle
1040-105f : 0000:00:07.3
1040-1047 : piix4-smbus
1060-107f : 0000:00:07.2
1060-107f : uhci_hcd
1080-108f : 0000:00:07.1
1080-1087 : ide0
1088-108f : ide1
1400-14ff : 0000:00:04.0
1400-14ff : Allegro
1800-18ff : 0000:00:06.0
1c00-1cff : 0000:00:09.0
1c00-1cff : 8139too
2000-2fff : PCI Bus #01
2000-20ff : 0000:01:00.0
4000-40ff : PCI CardBus #02
4400-44ff : PCI CardBus #02
4800-48ff : PCI CardBus #06
4c00-4cff : PCI CardBus #06
fe00-fe01 : motherboard
fe00-fe01 : pnp 00:04
------------------------------------------------------------
[knoppix]# cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
02f8-02ff : serial(auto)
0320-0323 :
0350-0353 :
0376-0376 : ide1
03c0-03df : vesafb
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0cf8-0cff : PCI conf1
1000-103f : Intel Corp. 82371AB/EB/MB PIIX4 ACPI
1040-105f : Intel Corp. 82371AB/EB/MB PIIX4 ACPI
1060-107f : Intel Corp. 82371AB/EB/MB PIIX4 USB
1060-107f : usb-uhci
1080-108f : Intel Corp. 82371AB/EB/MB PIIX4 IDE
1080-1087 : ide0
1088-108f : ide1
1400-14ff : ESS Technology ES1988 Allegro-1
1400-14ff : maestro3
1800-18ff : PCI device 1813:4000 (Ambient Technologies Inc)
1c00-1cff : Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
1c00-1cff : 8139too
2000-2fff : PCI Bus #01
2000-20ff : ATI Technologies Inc Rage Mobility P/M AGP 2x
4000-40ff : PCI CardBus #02
4400-44ff : PCI CardBus #02
4800-48ff : PCI CardBus #06
4c00-4cff : PCI CardBus #06
============================================================
[fedora]# lsmod
Module Size Used by
parport_pc 26629 1
lp 12077 0
parport 37001 2 parport_pc,lp
autofs4 23493 0
sunrpc 156325 1
pcmcia 20805 4
ipt_REJECT 6593 1
ipt_state 1857 5
ip_conntrack 40309 1 ipt_state
iptable_filter 3521 1
ip_tables 16321 3 ipt_REJECT,ipt_state,iptable_filter
video 15813 0
button 6609 0
battery 9285 0
ac 4805 0
md5 4033 1
ipv6 231681 10
joydev 9217 0
yenta_socket 19137 0
pcmcia_core 50945 2 pcmcia,yenta_socket
uhci_hcd 31449 0
i2c_piix4 8273 0
i2c_core 20801 1 i2c_piix4
snd_maestro3 23653 2
snd_ac97_codec 67489 1 snd_maestro3
snd_pcm_oss 47989 0
snd_mixer_oss 17089 2 snd_pcm_oss
snd_pcm 93001 3 snd_maestro3,snd_ac97_codec,snd_pcm_oss
snd_timer 29125 1 snd_pcm
snd_page_alloc 9541 1 snd_pcm
snd 52645 8 snd_maestro3,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore 10017 2 snd
8139too 26433 0
mii 4673 1 8139too
floppy 57841 0
dm_snapshot 16901 0
dm_zero 2497 0
dm_mirror 23213 2
ext3 116297 2
jbd 69977 1 ext3
dm_mod 55637 6 dm_snapshot,dm_zero,dm_mirror
------------------------------------------------------------
[knoppix]# lsmod
Module Size Used by Not tainted
nls_iso8859-1 2876 0 (autoclean)
nls_cp437 4380 0 (autoclean)
ext3 62912 1 (autoclean)
jbd 45492 1 (autoclean) [ext3]
autofs4 8724 1 (autoclean)
loop 41132 0 (autoclean)
af_packet 13448 0 (autoclean)
agpgart 34720 0 (unused)
maestro3 26416 0
ac97_codec 9992 0 [maestro3]
soundcore 3364 2 [maestro3]
8139too 17128 1
mii 2128 0 [8139too]
serial 51876 0 (autoclean)
mousedev 3800 1
hid 19172 0 (unused)
usbmouse 1788 0 (unused)
input 3168 0 [mousedev hid usbmouse]
usb-uhci 21836 0 (unused)
usbcore 57088 1 [hid usbmouse usb-uhci]
ds 6472 2
yenta_socket 8640 2
pcmcia_core 37568 0 [ds yenta_socket]
apm 9612 1
rtc 6908 0 (autoclean)
cloop 5168 1
============================================================
[fedora]# cat /etc/modules.conf
cat: /etc/modules.conf: No such file or directory
------------------------------------------------------------
[knoppix]# cat /etc/modules.conf
### This file is automatically generated by update-modules"
#
# Please do not edit this file directly. If you want to change or add
# anything please take a look at the files in /etc/modutils and read
# the manpage for update-modules.
#
### update-modules: start processing /etc/modutils/0keep
# DO NOT MODIFY THIS FILE!
# This file is not marked as conffile to make sure if you upgrade modutils
# it will be restored in case some modifications have been made.
#
# The keep command is necessary to prevent insmod and friends from ignoring
# the builtin defaults of a path-statement is encountered. Until all other
# packages use the new `add path'-statement this keep-statement is essential
# to keep your system working
keep
### update-modules: end processing /etc/modutils/0keep
### update-modules: start processing /etc/modutils/actions
# Special actions that are needed for some modules
# The BTTV module does not load the tuner module automatically,
# so do that in here
post-install bttv insmod tuner
post-remove bttv rmmod tuner
### update-modules: end processing /etc/modutils/actions
### update-modules: start processing /etc/modutils/aliases
# Aliases to tell insmod/modprobe which modules to use
# Uncomment the network protocols you don't want loaded:
# alias net-pf-1 off # Unix
# alias net-pf-2 off # IPv4
# alias net-pf-3 off # Amateur Radio AX.25
# alias net-pf-4 off # IPX
# alias net-pf-5 off # DDP / appletalk
# alias net-pf-6 off # Amateur Radio NET/ROM
# alias net-pf-9 off # X.25
# alias net-pf-10 off # IPv6
# alias net-pf-11 off # ROSE / Amateur Radio X.25 PLP
alias net-pf-17 af_packet # Packet socket (tcpdump)
# alias net-pf-19 off # Acorn Econet
alias via82cxxx via82cxxx_audio
alias char-major-10-175 agpgart
alias char-major-10-200 tun
alias char-major-81 bttv
alias char-major-108 ppp_generic
alias /dev/ppp ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-14 ppp_synctty
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate
# Crypto modules (see http://www.kerneli.org/)
alias loop-xfer-gen-0 loop_gen
alias loop-xfer-3 loop_fish2
alias loop-xfer-gen-10 loop_gen
alias cipher-2 des
alias cipher-3 fish2
alias cipher-4 blowfish
alias cipher-6 idea
alias cipher-7 serp6f
alias cipher-8 mars6
alias cipher-11 rc62
alias cipher-15 dfc2
alias cipher-16 rijndael
alias cipher-17 rc5
# Name inconsistency in 2.4 Kernel series
alias ide_cs ide-cs
alias usbcore off
alias autofs autofs4
### update-modules: end processing /etc/modutils/aliases
### update-modules: start processing /etc/modutils/apm
alias char-major-10-134 apm
alias /dev/apm_bios /dev/misc/apm_bios
alias /dev/misc/apm_bios apm
options apm power_off=1
### update-modules: end processing /etc/modutils/apm
### update-modules: start processing /etc/modutils/autofs
probe autofs autofs4 autofs
### update-modules: end processing /etc/modutils/autofs
### update-modules: start processing /etc/modutils/ftape-util
#
# load ftape/zftape automatically
#
# valid for all versions with zftape
alias char-major-27 zftape
# Bleeding edge ftape driver from ftape-module
options ftape ft_fdc_driver=ftape-internal,none,none,none
options ftape-internal ft_fdc_base=0x3f0 ft_fdc_irq=6 ft_fdc_dma=2
pre-install ftape-internal /usr/bin/swapout 15
# ftape driver from 2.2 kernel (Comment previous three lines and uncomment the next one)
# options ftape ft_fdc_rate_limit=1000 ft_fdc_threshold=16 ft_fdc_base=0x360 ft_fdc_irq=9 ft_fdc_dma=3
# You may need to fine tune the parameters. See the ftape documentation for more details
### update-modules: end processing /etc/modutils/ftape-util
### update-modules: start processing /etc/modutils/ipx.aliases
alias net-pf-4 ipx
### update-modules: end processing /etc/modutils/ipx.aliases
### update-modules: start processing /etc/modutils/irda
alias tty-ldisc-11 irtty
# The following is for new kernel.
alias char-major-161 ircomm-tty
# The following is for old kernel.
alias char-major-60 ircomm_tty
# To be able to attach some dongles
alias irda-dongle-0 tekram
alias irda-dongle-1 esi
alias irda-dongle-2 actisys
alias irda-dongle-3 actisys
alias irda-dongle-4 girbil
alias irda-dongle-5 litelink
alias irda-dongle-6 airport
alias irda-dongle-7 old_belkin
# FIR device drivers.
# options smc-ircc ircc_irq= ircc_dma=
# alias irda0 smc-ircc
# options toshoboe max_baud=
# alias irda0 toshoboe
# options w83977af_ir io= io2= irq= qos_mtt_bits=
# alias irda0 w83977af_ir
# To use the NSC driver on a Thinkpad laptop: uncomment the following:
# options nsc-ircc dongle_id=0x09
# alias irda0 nsc-ircc
### update-modules: end processing /etc/modutils/irda
### update-modules: start processing /etc/modutils/linux-wlan-ng
# Aliases to tell insmod/modprobe which module to use when bringing up the
# wlan0 interface.
# Uncomment the line corresponding to the type of prism2 device you have.
alias wlan0 prism2_pci
#alias wlan0 prism2_usb
#alias wlan0 prism2_cs
#alias wlan0 prism2_plx
### update-modules: end processing /etc/modutils/linux-wlan-ng
### update-modules: start processing /etc/modutils/lvm-common
# The Logical Volume Manager uses these block and char numbers
alias block-major-58 lvm-mod
alias char-major-109 lvm-mod
### update-modules: end processing /etc/modutils/lvm-common
### update-modules: start processing /etc/modutils/mt-st
# Reset the st driver on module insertion...
post-install st /etc/init.d/mt-st modload > /dev/null 2> /dev/null
### update-modules: end processing /etc/modutils/mt-st
### update-modules: start processing /etc/modutils/paths
# This file contains a list of paths that modprobe should scan,
# beside the once that are compiled into the modutils tools
# themselves.
### update-modules: end processing /etc/modutils/paths
### update-modules: start processing /etc/modutils/ppp
alias /dev/ppp ppp_generic
alias char-major-108 ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-14 ppp_synctty
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate
### update-modules: end processing /etc/modutils/ppp
### update-modules: start processing /etc/modutils/raidtools2
alias md-personality-1 linear
alias md-personality-2 raid0
alias md-personality-3 raid1
alias md-personality-4 raid5
### update-modules: end processing /etc/modutils/raidtools2
### update-modules: start processing /etc/modutils/setserial
#
# This is what I wanted to do, but logger is in /usr/bin, which isn't loaded
# when the module is first loaded into the kernel at boot time!
#
#post-install serial /etc/init.d/setserial start | logger -p daemon.info -t "setserial-module reload"
#pre-remove serial /etc/init.d/setserial stop | logger -p daemon.info -t "setserial-module uload"
#
alias /dev/tts serial
alias /dev/tts/0 serial
alias /dev/tts/1 serial
alias /dev/tts/2 serial
alias /dev/tts/3 serial
post-install serial /etc/init.d/setserial modload > /dev/null 2> /dev/null
pre-remove serial /etc/init.d/setserial modsave > /dev/null 2> /dev/null
### update-modules: end processing /etc/modutils/setserial
### update-modules: start processing /etc/modutils/arch/i386
alias parport_lowlevel parport_pc
alias char-major-10-144 nvram
alias binfmt-0064 binfmt_aout
alias char-major-10-135 rtc
# no warnings to stderr on KNOPPIX
insmod_opt=-q
### update-modules: end processing /etc/modutils/arch/i386
============================================================
[fedora]# cat /proc/interrupts
CPU0
0: 6640781 XT-PIC timer
1: 14567 XT-PIC i8042
2: 0 XT-PIC cascade
5: 160455 XT-PIC Allegro, uhci_hcd
7: 2 XT-PIC parport0
8: 1 XT-PIC rtc
9: 14 XT-PIC acpi
10: 3 XT-PIC yenta, yenta, eth0
12: 21188 XT-PIC i8042
14: 79963 XT-PIC ide0
15: 58388 XT-PIC ide1
NMI: 0
ERR: 0
------------------------------------------------------------
[knoppix]# cat /proc/interrupts
CPU0
0: 386629 XT-PIC timer
1: 3892 XT-PIC keyboard
2: 0 XT-PIC cascade
5: 47886 XT-PIC usb-uhci, Allegro
8: 1 XT-PIC rtc
10: 407 XT-PIC Texas Instruments PCI1420, Texas Instruments PCI1420 (#2), eth0
12: 29 XT-PIC PS/2 Mouse
14: 223 XT-PIC ide0
15: 35787 XT-PIC ide1
NMI: 0
LOC: 0
ERR: 0
MIS: 0
============================================================
[fedora]# system-config-network
when I execute 'system-config-network', one device is listet:
-----------------------------------------------------
| Profile | Status | Device | Nickname | Type |
-----------------------------------------------------
| v Inactive eth0 eth0 Ethernet |
-----------------------------------------------------
Selecting it and pushing Activate results in:
Determining IP information for eth0... failed.
------------------------------------------------------------
[knoppix]# system-config-network
bash: system-config-network: command not found
============================================================
[fedora]# dhclient
Internet Systems Consortium DHCP Client V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Listening on LPF/eth0/00:30:54:00:76:2c
Sending on LPF/eth0/00:30:54:00:76:2c
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
------------------------------------------------------------
[knoppix]# dhclient
bash: dhclient: command not found
============================================================
[fedora]# grep -i ip /var/log/cups/error_log*
/var/log/cups/error_log.1:E [06/Mar/2005:08:21:18 -0500] StartListening: Unable to find IP address for server name "localhost.localdomain" - Host name lookup failure
------------------------------------------------------------
[knoppix]# grep -i ip /var/log/cups/error_log*
============================================================
[fedora]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:30:54:00:76:2C
inet6 addr: fe80::230:54ff:fe00:762c/64 Scope:Link
UP BROADCAST RUNNING 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:10 Base address:0x1c00
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:4116 errors:0 dropped:0 overruns:0 frame:0
TX packets:4116 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4916870 (4.6 MiB) TX bytes:4916870 (4.6 MiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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)
------------------------------------------------------------
[knoppix]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:30:54:00:76:2C
inet addr:192.168.0.22 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:200 errors:0 dropped:0 overruns:0 frame:0
TX packets:221 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:117060 (114.3 KiB) TX bytes:26813 (26.1 KiB)
Interrupt:10 Base address:0x3000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:600 (600.0 b) TX bytes:600 (600.0 b)
============================================================
[fedora]# tcpdump -n -i eth0 -l -s 500 -x udp port 67 | tee dhcp_dump
tcpdump: WARNING: eth0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 500 bytes
14:13:28.000789 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:30:54:00:76:2c, length: 300
0x0000: 4510 0148 0000 0000 1011 a996 0000 0000 E..H............
0x0010: ffff ffff 0044 0043 0134 0a41 0101 0600 .....D.C.4.A....
0x0020: a8ba 0919 0029 0000 0000 0000 0000 0000 .....)..........
0x0030: 0000 0000 0000 0000 0030 5400 762c 0000 .........0T.v,..
0x0040: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0050: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0070: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0080: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0090: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0100: 0000 0000 0000 0000 6382 5363 3501 0137 ........c.Sc5..7
0x0110: 0a01 1c02 030f 060c 2829 2aff 0000 0000 ........()*.....
0x0120: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0130: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0140: 0000 0000 0000 0000 ........
------------------------------------------------------------
[knoppix]# tcpdump -n -i eth0 -l -s 500 -x udp port 67 | tee dhcp_dump
tcpdump: listening on eth0
0 packets received by filter
0 packets dropped by kernel
============================================================
[fedora]# cat /etc/sysconfig/networking/devices/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
USERCTL=yes
PEERDNS=yes
TYPE=Ethernet
IPV6INIT=yes
------------------------------------------------------------
[knoppix]# cat /etc/sysconfig/networking/devices/ifcfg-eth0
cat: /etc/sysconfig/networking/devices/ifcfg-eth0: No such file or directory
============================================================
[fedora]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
USERCTL=yes
PEERDNS=yes
TYPE=Ethernet
IPV6INIT=yes
------------------------------------------------------------
[knoppix]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
cat: /etc/sysconfig/network-scripts/ifcfg-eth0: No such file or directory
============================================================
[fedora]# cat /etc/sysconfig/network-scripts/ifcfg-lo
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback
------------------------------------------------------------
[knoppix]# cat /etc/sysconfig/network-scripts/ifcfg-lo
cat: /etc/sysconfig/network-scripts/ifcfg-lo: No such file or directory
============================================================
[fedora]# cat /etc/resolv.conf
------------------------------------------------------------
[knoppix]# cat /etc/resolv.conf
search (null)
nameserver 192.168.0.1
============================================================
[fedora]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
------------------------------------------------------------
[knoppix]# cat /etc/hosts
127.0.0.1 Knoppix localhost
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
::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
============================================================
[fedora]# ping localhost
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=0 ttl=64 time=0.098 ms64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.093 ms64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.097 ms64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.096 ms
--- localhost.localdomain ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.093/0.096/0.098/0.002 ms, pipe 2
------------------------------------------------------------
[knoppix]# ping localhost
PING Knoppix (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.0 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.0 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.0 ms
--- Knoppix ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.0/0.0/0.1 ms
============================================================
[fedora]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 lo
------------------------------------------------------------
[knoppix]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
============================================================
[fedora]# iptables -L -n -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
3279 3746K RH-Firewall-1-INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 RH-Firewall-1-INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 3279 packets, 3746K bytes)
pkts bytes target prot opt in out source destination
Chain RH-Firewall-1-INPUT (2 references)
pkts bytes target prot opt in out source destination
3279 3746K ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 255
0 0 ACCEPT esp -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT ah -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT udp -- * * 0.0.0.0/0 224.0.0.251 udp dpt:5353
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:631
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:80
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:443
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:21
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
------------------------------------------------------------
[knoppix]# iptables -L -n -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
============================================================
[fedora]# service network restart
Shutting down interface eth0: [FAILED]
Shutting down loopback interface: [ OK ]
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... failed.
[FAILED]
------------------------------------------------------------
[knoppix]# service network restart
bash: service: command not found
============================================================
============================================================
fin.
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
More information about the fedora-list
mailing list