Forum
  • MUGs
  • Help fund the Mandriva Linux project

The time now is Fri Sep 03, 2010 1:21 am

Become a registered member of the Mandriva community.It takes only 5 mns and it's free ... Learn more ...
Network Profile Wierdness

 
Post new topic   Reply to topic    Mandriva Forum Index -> General Software
View previous topic :: View next topic  
Author Message
Marek_McGann_213

Non Figura

Joined: 09 Dec 2004
Posts: 18

View user's profile Send private message
PostPosted: Sat May 28, 2005 10:42 am    Post subject: Network Profile Wierdness Reply with quote Report

Hi,

I'm running 10.1 Official upgraded with Thac's KDE3.4 rpms, and a couple of days ago I updated a bunch of things (including drakxtools, which is I suspect where my problem comes from) from the official updates repository.

Since then, netprofile, which worked fine up to then, seems to be a bit buggered. My laptop won't connect to be local network (an MDK 10.0 Official machine operating as transparent proxy and dhcp server).

The wierd bit is in MCC, eth1 (my network card) is configured properly, and if I delete eth1 and add a new connection with exactly the same settings, it works!

I tried "service network restart", disabling some things and others to try to get it to work, to no avail. Switching from one profile to another and back again also doesn't work either.

Anyone have any suggestions as to how I might fix this without having to delete and re-setup a network connection every time I switch the machine on?

Any pointers much appreciated.
Back to top
awilliamson
Site Admin
awilliamson

Joined: 30 Mar 2005
Posts: 25465
Location: Vancouver, B.C.

View user's profile Send private message Visit poster's website MSN Messenger
PostPosted: Sat May 28, 2005 7:32 pm    Post subject: Reply with quote Report

Can you take a look at the network configuration files:

/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network

And see if anything changes between the working and non-working states?

Other output that would be useful to compare between the two states:

ifconfig
route
_________________
Adam Williamson | http://www.happyassassin.net
Fedora QA community monkey
Mandriva contributor, former community manager
Back to top
Marek_McGann_213

Non Figura

Joined: 09 Dec 2004
Posts: 18

View user's profile Send private message
PostPosted: Sat May 28, 2005 8:44 pm    Post subject: Reply with quote Report

Thanks for the help. Apologies for the length of what follows, but wanted to go for comprehensiveness.

For working and not working configs, /etc/sysconfig/network-scripts/ifcfg-eth1 and /etc/sysconfig/network are identical as below:

Code:

DEVICE=eth1
BOOTPROTO=dhcp
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
NEEDHOSTNAME=yes


Code:
HOSTNAME=prometheus
NETWORKING=yes
GATEWAY=10.0.0.1
GATEWAYDEV=eth1


Both ifconfig and route give different outputs between working and not working.

Route first:

Works:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth1


Doesn't work, it's blank, basically:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface


No default route so.

ifconfig when things work, eth1 makes an appearance:

Code:
eth0      Link encap:UNSPEC  HWaddr 00-40-D0-01-00-19-A8-9A-00-00-00-00-00-00-00-00 
          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)

eth1      Link encap:Ethernet  HWaddr 00:40:D0:48:51:91 
          inet addr:192.168.1.251  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::240:d0ff:fe48:5191/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27603 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31885 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5977793 (5.7 Mb)  TX bytes:11916888 (11.3 Mb)
          Interrupt:11 Base address:0xe400

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


ifconfig when things don't work, no eth1 mention:
Code:
eth0      Link encap:UNSPEC  HWaddr 00-40-D0-01-00-19-A8-9A-00-00-00-00-00-00-00-00 
          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)

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


Any pointers would be great. Cheers.
Back to top
awilliamson
Site Admin
awilliamson

Joined: 30 Mar 2005
Posts: 25465
Location: Vancouver, B.C.

View user's profile Send private message Visit poster's website MSN Messenger
PostPosted: Sun May 29, 2005 10:32 pm    Post subject: Reply with quote Report

You say 'service network restart' doesn't work - what actually _happens_ when you do it? Is there any mention of eth1? Do you have the little network tool in the system tray? What's showing up there? Anything in its 'profiles' menu?
_________________
Adam Williamson | http://www.happyassassin.net
Fedora QA community monkey
Mandriva contributor, former community manager
Back to top
Marek_McGann_213

Non Figura

Joined: 09 Dec 2004
Posts: 18

View user's profile Send private message
PostPosted: Mon May 30, 2005 8:34 am    Post subject: Reply with quote Report

The "service network restart" command gives this:

Shutting down loopback interface: [ OK ]
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth1: [FAILED]

The "Bringing up interface eth1 ...[FAILED]" is all it says during boot also, no more information than that I'm afraid.

I do (or did, I think I've gone and banished it) have the network tool in the system tray. It did note correctly whether there was or was not a network connection, but it has no "Profiles" menu, just "connect eth1", "configure network", "monitor network", "refresh", "get online help", "launch on startup" and "exit". It would change correctly to indicate a network connection as soon as I had a new one configured.

When things are *not* working, the settings in "Manage connections" in the MCC are correct for eth1, except that there is no ip address or netmask set in the greyed out TCP/IP portions (the gateway *is* set correctly though). This suggests that it's just not reaching the dhcp server, and the lack of default route would explain that problem wouldn't it?

Going to try setting a default route in a not-working setup to see what happens.
Back to top
Marek_McGann_213

Non Figura

Joined: 09 Dec 2004
Posts: 18

View user's profile Send private message
PostPosted: Mon May 30, 2005 8:51 am    Post subject: Reply with quote Report

Ok.

Trying to set a route with (don't know what I'm doing really):

route add default eth1

Gave:

SIOCADDRT host name lookup failure

Man route tells me that the interface needs to be configured first, so I thought I'd give manual config using ifconfig a go.

Surprisingly, given that it appears in MCC's "Manage connections", ifconfig claims device eth1 doesn't exist, when the configuration isn't working.
Back to top
awilliamson
Site Admin
awilliamson

Joined: 30 Mar 2005
Posts: 25465
Location: Vancouver, B.C.

View user's profile Send private message Visit poster's website MSN Messenger
PostPosted: Mon May 30, 2005 6:03 pm    Post subject: Reply with quote Report

This is a bit odd, isn't it...hmm...anything in the kernel logs?
_________________
Adam Williamson | http://www.happyassassin.net
Fedora QA community monkey
Mandriva contributor, former community manager
Back to top
Marek_McGann_213

Non Figura

Joined: 09 Dec 2004
Posts: 18

View user's profile Send private message
PostPosted: Tue May 31, 2005 8:48 am    Post subject: Reply with quote Report

It looks like it's definitely whatever the problem is with setting the default route.

I've just logged on to another network (there's three I use fairly regularly, hence my dependence on netprofile). This one uses static ip addresses, and the same problem has occured (network settings correct but no connection), with the same solution (just set up the connection again in MCC with same settings).

This has me stumped, I have to say. What could possibly be changing in the network configurations between boots? And why does it not change back for a network service restart, but does change when a connection is set up and started for the first time?

There's nothing in the kernel logs that might make any difference (there's a reference to eth0, which is my firewire port I think, as a network device, but the reference is there from everytime I've switched on the machine, as far back as it goes, so it isn't causing the problem here).

dmesg has this for eth1, presumably from when I set up when I re-add the connection in MCC.

Code:
eth1: ICS LAN PHY transceiver found at address 1.
eth1: Using transceiver found at address 1 as default
eth1: SiS 900 PCI Fast Ethernet at 0xe400, IRQ 11, 00:40:d0:48:51:91.
eth1: Media Link On 100mbps full-duplex
eth1: no IPv6 routers present


Don't think that's terribly helpful though.
Back to top
Marek_McGann_213

Non Figura

Joined: 09 Dec 2004
Posts: 18

View user's profile Send private message
PostPosted: Tue May 31, 2005 10:34 am    Post subject: Reply with quote Report

And manually setting up the network card when things aren't working (on the static ip network) doesn't work, with similar problem to before; no eth1 device found.

The command I used was:

ip addr add 10.0.2.36/24 brd + dev eth1
Back to top
awilliamson
Site Admin
awilliamson

Joined: 30 Mar 2005
Posts: 25465
Location: Vancouver, B.C.

View user's profile Send private message Visit poster's website MSN Messenger
PostPosted: Tue May 31, 2005 7:14 pm    Post subject: Reply with quote Report

I'm stumped too. I will see if I can find a network expert to help out here. Sorry...
_________________
Adam Williamson | http://www.happyassassin.net
Fedora QA community monkey
Mandriva contributor, former community manager
Back to top
awilliamson
Site Admin
awilliamson

Joined: 30 Mar 2005
Posts: 25465
Location: Vancouver, B.C.

View user's profile Send private message Visit poster's website MSN Messenger
PostPosted: Tue May 31, 2005 9:01 pm    Post subject: Reply with quote Report

Here's some suggestions from Luca Berra, a Cooker regular:

check
1) why the gateway in /etc/sysconfig/network, op is using dhcp
2) run sh -x /sbin/ifup eth1
and see what exactly fails
3) MII_NOT_SUPPORTED
4) why the 10.xxx adresses when it works it is using 192.168 ones
_________________
Adam Williamson | http://www.happyassassin.net
Fedora QA community monkey
Mandriva contributor, former community manager
Back to top
bgmilne

Non Figura

Joined: 06 Mar 2002
Posts: 3653

View user's profile Send private message
PostPosted: Wed Jun 01, 2005 7:43 am    Post subject: Reply with quote Report

I would guess there's no "alias eth1 ...." entry in /etc/modprobe.conf, or you're running a 2.4 kernel for some reason ...
Back to top
Marek_McGann_213

Non Figura

Joined: 09 Dec 2004
Posts: 18

View user's profile Send private message
PostPosted: Wed Jun 01, 2005 11:02 am    Post subject: Reply with quote Report

Okay, firstly thanks for your help so far, and thanks to Luca too.

1) why the gateway in /etc/sysconfig/network, op is using dhcp

The proxy server that that network (my home network) profile uses is an MDK10.0 Official machine, which is set up as a proxy server using the MDK Wizard for the task in MCC (on the 10.0 machine) - can't say I know more than that, I'm afraid, so everything's dhcp on that network.

2) run sh -x /sbin/ifup eth1

I ran this this morning on the second network I'm on (work, the one I was using yesterday and am using today, and just to make things even more fun I'll be on an entirely different network tomorrow!).

The output from the above is rather long, and I understand none of it, but I've put it here for any to whom it might make some sense:

http://www.marekmcgann.com/ifup_out

3) MII_NOT_SUPPORTED

I'm afraid I don't know what this means (and Google hasn't been much help, everyone seems to take it for granted that people know it). Should it be set to "yes"?

4) why the 10.xxx adresses when it works it is using 192.168 ones

The 10.xxx addresses are a different network (my work network, which is an NT one with static ip addresses). route from *this* network (when it's working) gives:

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        *               255.255.0.0     U     0      0        0 eth1
default         10.0.0.1        0.0.0.0         UG    0      0        0 eth1


And similarly, when it isn't working, there is no output beyond the headings.

And it will all be different tomorrow, when I'm on a different (unix, college) network with dynamic addressing again.

Nothing like a moving target to keep things interesting, but the problem looks the same across all of them (for the first two at least...).[/url]

bgmilne: there is an eth1 entry in /etc/modprobe.conf both when things work and when they don't (alias eth1:9 sis900), and I'm using a 2.6.8.1-12mdk kernel.
Back to top
awilliamson
Site Admin
awilliamson

Joined: 30 Mar 2005
Posts: 25465
Location: Vancouver, B.C.

View user's profile Send private message Visit poster's website MSN Messenger
PostPosted: Wed Jun 01, 2005 6:06 pm    Post subject: Reply with quote Report

Here's more from blino, one of our developers:

---------

It seems there is no alias for eth1 in modprobe.conf, only for eth1:9
(zeroconf thing ?). Try to load the sis900 module, and add an
"alias eth1 sis900" line in /etc/modprobe.conf

It may be a link detection issue too (try MII_NOT_SUPPORTED=yes), it's
sometimes broken with sis900.

---------

MII_NOT_SUPPORTED is set in /etc/sysconfig/network-scripts/ifcfg-eth1 . It determines whether the network service attempts to detect whether there is actually a connection when asked to bring up eth1. We introduced this to avoid the five-minute DHCP timeout on boot problem when you don't have the network cable plugged in, or whatever, but as blino says, sometimes it doesn't work, so if you set MII_NOT_SUPPORTED=yes , it'll skip the check. Definitely try those two suggestions. I don't know how it got to be eth1:9 , either, but that's almost certainly wrong.
_________________
Adam Williamson | http://www.happyassassin.net
Fedora QA community monkey
Mandriva contributor, former community manager
Back to top
Marek_McGann_213

Non Figura

Joined: 09 Dec 2004
Posts: 18

View user's profile Send private message
PostPosted: Wed Jun 01, 2005 7:33 pm    Post subject: Reply with quote Report

SCORE!

Cheers, Adam, and everyone else.

The removal of the ":9" from my "alias eth1:9 sis900" did the trick. No more fiddling with network settings. I didn't have to alter MII_NOT_SUPPORTED either, though thanks very much for explaining it to me.

I haven't editted modprobe.conf manually at all, I don't think, so I don't know how the offending ":9" got there, but the laptop (a Packard Bell Easynote K5 - I will never buy PB again) has had a number of other quirks so it would well be something do with that.

Anyway, thanks again. Everything back to well tuned and problem free network hopping.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Mandriva Forum Index -> General Software 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


Powered by phpBB © 2001, 2005 phpBB Group