Jump to content

no more networking


Guest loneboyit
 Share

Recommended Posts

Guest loneboyit

Hi,

I cannot bring up ethernet interface anymore. at boot time it fails to start and I get same error message when trying to restart the network later:

Bringing up loopback interface:

Error, some other host already uses address 127.0.0.1

arping: socket: Address family not supported by protocol

I get same error with eth0

it worked fine, i don't know what happened

anybody can help?

i'm running mandrake 10 official

here's some config info:

[root@localhost /]# lspci 
00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400 AGP] Host Bridge 
00:01.0 PCI bridge: VIA Technologies, Inc. VT8235 PCI Bridge 
00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 80) 
00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 80) 
00:10.2 USB Controller: VIA Technologies, Inc. USB (rev 80) 
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82) 
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge 
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 06) 
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235 AC97 Audio Controller (rev 50) 
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74) 
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R250 If [Radeon 9000] (rev 01) 
01:00.1 Display controller: ATI Technologies Inc Radeon R250 [Radeon 9000] (Secondary) (rev 01) 

[root@localhost /]# lspcidrake 
via-agp : VIA Technologies Inc|VT8377 CPU to PCI Bridge [BRIDGE_HOST] 
unknown : VIA Technologies Inc|PCI-to-PCI Bridge (AGP) [BRIDGE_PCI] 
usb-uhci : VIA Technologies|VT82C586B USB [SERIAL_USB] 
usb-uhci : VIA Technologies|VT82C586B USB [SERIAL_USB] 
usb-uhci : VIA Technologies|VT82C586B USB [SERIAL_USB] 
ehci-hcd : VIA Technologies Inc|VT8235 USB Enhanced Controller [SERIAL_USB] 
via-ircc : VIA Technologies Inc|VT8233A PCI to ISA Bridge [BRIDGE_ISA] 
unknown : VIA Technologies|VT82C586 IDE [Apollo] [STORAGE_IDE] 
snd-via82xx : VIA Technologies|VT8233 [AC97 Audio Controller] [MULTIMEDIA_AUDIO] 
via-rhine : VIA Technologies|VT6102 [Rhine II 10/100] [NETWORK_ETHERNET] 
Card:ATI Radeon (fglrx): ATI|Radeon 9000/PRO If (AGP/PCI) [DISPLAY_VGA] 
Card:ATI Radeon (fglrx): ATI|Radeon R250 [Radeon 9000] (Secondary) [DISPLAY_OTHER] 
unknown : Linux 2.6.3-7mdk ehci_hcd|EHCI Host Controller [Hub] 

[root@localhost /]# cat /etc/modules.conf 
alias eth0 via-rhine 
probeall usb-interface ehci-hcd usb-uhci 
above snd-via82xx snd-pcm-oss 
#alias eth0 via-rhine 
alias sound-slot-0 snd-via82xx 

[root@localhost /]# lsmod 
Module Size Used by 
nls_cp850 4736 1 
vfat 13760 1 
fat 45120 1 vfat 
sg 38044 0 
sr_mod 17028 0 
scsi_mod 114648 2 sg,sr_mod 
nfsd 173152 0 
exportfs 5920 1 nfsd 
parport_pc 32832 1 
lp 12200 0 
parport 38952 2 parport_pc,lp 
fglrx 165549 139 
snd-seq-oss 31232 0 
snd-seq-midi-event 7552 1 snd-seq-oss 
snd-seq 51024 4 snd-seq-oss,snd-seq-midi-event 
snd-pcm-oss 51812 0 
snd-mixer-oss 17952 1 snd-pcm-oss 
snd-via82xx 24128 1 
snd-pcm 93156 2 snd-pcm-oss,snd-via82xx 
snd-timer 24484 2 snd-seq,snd-pcm 
snd-ac97-codec 58148 1 snd-via82xx 
gameport 4480 1 snd-via82xx 
snd-page-alloc 11972 2 snd-via82xx,snd-pcm 
snd-mpu401-uart 7072 1 snd-via82xx 
snd-rawmidi 23616 1 snd-mpu401-uart 
snd-seq-device 8008 3 snd-seq-oss,snd-seq,snd-rawmidi 
snd 52484 14 snd-seq-oss,snd-seq-midi-event,snd-seq,snd-pcm-oss,snd-mixer-oss,snd-via82xx,snd-pcm,snd-timer,snd-ac97-codec,snd-mpu401-uart,snd-rawmidi,snd-seq-device 
soundcore 9248 1 snd 
md5 3872 1 
ipv6 232352 6 
hid 53312 0 
ide-floppy 18752 0 
ide-tape 34864 0 
ide-cd 40548 0 
cdrom 37184 2 sr_mod,ide-cd 
floppy 59444 1 
via-rhine 20520 0 
mii 4992 1 via-rhine 
nls_iso8859-1 3904 3 
ntfs 85932 2 
supermount 37876 1 
via-agp 7360 1 
agpgart 31016 2 via-agp 
usbvision 61344 0 
i2c-algo-usb 4132 1 usbvision 
i2c-core 23044 1 i2c-algo-usb 
videodev 9536 1 usbvision 
ehci-hcd 24196 0 
usbcore 99132 5 hid,usbvision,ehci-hcd 
rtc 11576 0 

[root@localhost /]# cat /etc/resolv.conf 
nameserver 127.0.0.1 
nameserver xxx.xxx.xxx.xxx 
nameserver xxx.xx.xxx.x 
# nameserver 127.0.0.1 

# ppp temp entry 

[root@localhost /]# cat /etc/sysconfig/network 
HOSTNAME=localhost 
NETWORKING=yes 
GATEWAY=192.168.1.55 

# IPv6 conf 
NETWORKING_IPV6=yes 

[root@localhost /]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 
DEVICE=eth0 
BOOTPROTO=static 
IPADDR=192.168.1.3 
NETMASK=255.255.255.0 
NETWORK=192.168.1.0 
BROADCAST=192.168.1.255 
ONBOOT=yes 
MII_NOT_SUPPORTED=no 
WIRELESS_ENC_KEY="" 

[root@localhost /]# cat /etc/sysconfig/network-scripts/ifcfg-lo 
DEVICE=lo 
IPADDR=127.0.0.1 
NETMASK=255.0.0.0 
NETWORK=255.255.255.255 
# 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 

# IPV6 Conf 
IPV6_INIT=yes 
IPV6_ADDR=2002:000a:0001:0001:f000:f000:f000:0001/64 
IPV6_AUTOCONF=yes 

[root@localhost /]# route -n 
Kernel IP routing table 
Destination Gateway Genmask Flags Metric Ref Use Iface 

[root@localhost /]# ifconfig -a 
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx 
inet6 addr: fe80::20c:6eff:fe15:fe50/64 Scope:Link 
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
RX packets:25 errors:0 dropped:0 overruns:0 frame:0 
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 
collisions:0 txqueuelen:1000 
RX bytes:2166 (2.1 Kb) TX bytes:378 (378.0 b) 
Interrupt:5 Base address:0xa400 

lo Link encap:Local Loopback 
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) 

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) 

[root@localhost /]# chkconfig --list network 
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off

Link to comment
Share on other sites

Guest loneboyit

as suggested in another post I tried using ifconfig and it adds the addresses correctly to the interface and everything works. but i later try doing network restart network won't start and configuration I made manually disappears again. how can I make network start correctly at boot like before? where is the problem? i look in config files and everything seems ok...to me, i'm new to linux

Link to comment
Share on other sites

Guest loneboyit

another strange thing happening is the DNS 1 being set to 127.0.0.1 and 2 and 3 are what i had set them to.

if I delete the 127 address and put it like it was before the mandrake utility won't do anything, if I change it in the conf file it saves but when I reboot I have 127.0.0.1 as primary dns again...

clues anyone?

Link to comment
Share on other sites

Guest loneboyit

found out i can browse with the manual setting only because i use a proxy... any other application won't work because they cannot resolve names, and i think that's because of the entry to loopback it adds on his own. i'll try and set up a dns server even i don't know how to configure it. the only other option would be a fresh install of all the system.

noone a clue at what the problem is?? i have reinstalled linux too many times for doing it now that i think this is a problem can be solved without

Link to comment
Share on other sites

Guest loneboyit

no it doesnt solve anything...

today i tried using traceroute: if i use a domain it won't resolve (alright, knew that) but if I use an ip it says

traceroute: findsaddr: Can't find interface

this is puzzling...

Link to comment
Share on other sites

  • 2 weeks later...
Guest loneboyit

somehow the 127.0.0.1 entry in the resolv.conf file doesnt show up anymore... but the problem is still there. I tried going thru the install again and choose upgrade but that didnt solve anything.

now I notice doing ifconfig that the ipv6 address that was showing (even if I never needed that) doesnt show up anymore. this system has a life of its own.

can anyone post their network scripts? maybe the problem is there... just guessing though

Link to comment
Share on other sites

Guest loneboyit

this is my routing table

 

[root@localhost /]# route

Kernel IP routing table

Destination    Gateway        Genmask        Flags Metric Ref    Use Iface

192.168.1.0    *              255.255.255.0  U    0      0        0 eth0

 

since there's no route configured to get past local router tried adding the route (not sure if sintax is right) and this is what i get:

 

[root@localhost /]# route add * 192.168.1.55

bin: Host name lookup failure

 

why does it require a hostname for adding a route? what does that mean?

Link to comment
Share on other sites

Few comments while I think about this:

 

Have you recompiled your kernel recently? (and left something out)

 

/etc/sysconfig/network-scripts/ifcfg-lo

...

NETWORK=255.255.255.255

 

Should be NETWORK 127.0.0.0

 

Syntax of route command to add default route through eth0:

route add default gw <ip address of router> eth0

 

You should also have a route to lo in your routing table:

127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

 

get this manually with route add 127.0.0.0 netmask 255.0.0.0 lo (I think)

 

I would change my hostname to something other than localhost (in /etc/sysconfig/network) - this could confuse matters. localhost is for 127.0.0.1, with lo being an alias.

 

Try setting up network manually - ifconfig & route for eth0 and lo, remove 127.0.0.1 from resolv.conf, then try pinging lo, eth0 and your router each by name and number - let us know what happens. eg

ping -c 5 127.0.0.1

ping -c 5 lo

 

To resolve local hostnames, /etc/hosts should have:

127.0.0.1 localhost lo

192.168.1.3 <your new hostname> <an alias if you like>

192.168.1.55 router

 

Chris

Link to comment
Share on other sites

Guest loneboyit
Have you recompiled your kernel recently? (and left something out)

I didn't recompile the kernel, but compiled and installed a module for a usb device. I'm net to linux so followed the instructions with the source of this module and it said i didnt need to recompile the whole kernel and so I did. can this be the problem? i later tried to remove this module since it does not appear to work, but wasnt successful so I put it back in place not to mess things up (but i guess i did mess things up somehow!)

 

as you said I fixed things in /etc/sysconfig/network-scripts/ifcfg-lo, changed hostname, added default route and route to lo, removed 127.0.0.1 from resolv.conf (it shows up again, but yesterday didnt!), fixed hostnames and pinging is successfull to all interfaces.

 

too bad i'll have to do that manually at next reboot...

one more thing: if at boot it fails bringing up interfaces, when i shutdown it fails shutting down netd (i think), statd and a few more things...

 

thanks for the help

 

lorenzo

 

[root@localhost /]# ping -c 5 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.117 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.087 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.088 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.087 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.089 ms

--- 127.0.0.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.087/0.093/0.117/0.015 ms
[root@localhost /]# ping -c 5 lo
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.086 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.087 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.087 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.088 ms
64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=64 time=0.087 ms

--- localhost ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.086/0.087/0.088/0.000 ms
[root@localhost /]# ping -c 5 192.168.1.3
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
64 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=0.096 ms
64 bytes from 192.168.1.3: icmp_seq=2 ttl=64 time=0.084 ms
64 bytes from 192.168.1.3: icmp_seq=3 ttl=64 time=0.086 ms
64 bytes from 192.168.1.3: icmp_seq=4 ttl=64 time=0.085 ms
64 bytes from 192.168.1.3: icmp_seq=5 ttl=64 time=0.086 ms

--- 192.168.1.3 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3998ms
rtt min/avg/max/mdev = 0.084/0.087/0.096/0.009 ms
[root@localhost /]# ping -c 5 prova
PING prova (192.168.1.3) 56(84) bytes of data.
64 bytes from prova (192.168.1.3): icmp_seq=1 ttl=64 time=0.086 ms
64 bytes from prova (192.168.1.3): icmp_seq=2 ttl=64 time=0.089 ms
64 bytes from prova (192.168.1.3): icmp_seq=3 ttl=64 time=0.088 ms
64 bytes from prova (192.168.1.3): icmp_seq=4 ttl=64 time=0.058 ms
64 bytes from prova (192.168.1.3): icmp_seq=5 ttl=64 time=0.088 ms

--- prova ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.058/0.081/0.089/0.016 ms
[root@localhost /]# ping -c 5 192.168.1.55
PING 192.168.1.55 (192.168.1.55) 56(84) bytes of data.
64 bytes from 192.168.1.55: icmp_seq=1 ttl=254 time=1.68 ms
64 bytes from 192.168.1.55: icmp_seq=2 ttl=254 time=1.01 ms
64 bytes from 192.168.1.55: icmp_seq=3 ttl=254 time=1.01 ms
64 bytes from 192.168.1.55: icmp_seq=4 ttl=254 time=1.01 ms
64 bytes from 192.168.1.55: icmp_seq=5 ttl=254 time=1.01 ms

--- 192.168.1.55 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4003ms
rtt min/avg/max/mdev = 1.013/1.150/1.688/0.271 ms
[root@localhost /]# ping -c 5 router
PING router (192.168.1.55) 56(84) bytes of data.
64 bytes from router (192.168.1.55): icmp_seq=1 ttl=254 time=1.02 ms
64 bytes from router (192.168.1.55): icmp_seq=2 ttl=254 time=1.01 ms
64 bytes from router (192.168.1.55): icmp_seq=3 ttl=254 time=1.01 ms
64 bytes from router (192.168.1.55): icmp_seq=4 ttl=254 time=1.01 ms
64 bytes from router (192.168.1.55): icmp_seq=5 ttl=254 time=1.01 ms

--- router ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4003ms
rtt min/avg/max/mdev = 1.016/1.019/1.024/0.002 ms

Link to comment
Share on other sites

If you didn't change the kernel config, (and networking works ok when configured manually anyway) then it's not that - was just a thought.

 

You didn't say if you tried a reboot after fixing the files/hostneme - does this help at all?

 

Can you connect to the internet once the network is up? eg ping -c 4 www.google.com?

 

If networking is still not getting configured correctly on boot, try setting MII_NOT_SUPPORTED=yes in /etc/sysconfig/ifcfg-eth0. This (I think) should turn network hotplugging off on this interface, which you only need on a portable PC - I have had problems with this.

 

If that doesn't work, run drakxservices, stop and switch off at boot netplugd - stops the network hotplugging altogether.

 

Then reboot, and let us know...

 

 

Chris

 

PS Bit of a cludge, but if we can't get this working on boot, you could always put all those commands in a script, and run it from the end of /etc/rc.d/rc.local !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...