Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: beckynet on August 24, 2014, 09:21:52 PM

Title: Help ! Mixing in network cards after reboot in SME 9
Post by: beckynet on August 24, 2014, 09:21:52 PM
Hello World

Sometimes after a reboot, the network cards are reversed. I think the problem is the absence of the mac address in ifcfg-files.


In SME 8 it was in

SME 8.x

#------------------------------------------------------------
#              !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------

TYPE=Ethernet
DEVICE=eth0

HWADDR=00:26:b9:78:cd:a1

USERCTL=no
ONBOOT=yes
PEERDNS=no

IPV6INIT=no

BOOTPROTO=none
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255

/etc/e-smith/templates/etc/sysconfig/network-scripts/ifcfg-ethX/10HWADDR

SME 9

#------------------------------------------------------------
#              !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------

TYPE=Ethernet
DEVICE=eth0


USERCTL=no
ONBOOT=yes
PEERDNS=no
IPV6INIT=no

BOOTPROTO=none
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255

/etc/e-smith/templates/etc/sysconfig/network-scripts/ifcfg-ethX/10HWADDR: No such file or directory

@+ Olivier
Title: Re: Help ! Mixing in network cards after reboot in SME 9
Post by: hanscees on August 24, 2014, 10:28:39 PM
so whats your question?

if you want to file thuis as a bug use the bugtracker.

If you want to solve it log in as admin on the console and reverse the cards?
Title: Re: Help ! Mixing in network cards after reboot in SME 9
Post by: janet on August 24, 2014, 10:43:41 PM
beckynet

Quote
Sometimes after a reboot, the network cards are reversed. I think the problem is the absence of the mac address in ifcfg-files.

Please post a bug report immediately & developers will look at this issue.
NICs should not be randomly reversed so this is potentially a bug.

Thanks

The temporary workaround is to run Configure this server from the admin console.

Title: Re: Help ! Mixing in network cards after reboot in SME 9
Post by: guest22 on August 25, 2014, 04:53:42 AM
Sometimes after a reboot, the network cards are reversed. I think the problem is the absence of the mac address in ifcfg-files.

The networking part has changed significantly in SME9, and no longer depends on MAC addresses.

See http://bugs.contribs.org/show_bug.cgi?id=7386

What exactly is your problem?

guest
Title: Re: Help ! Mixing in network cards after reboot in SME 9
Post by: beckynet on August 25, 2014, 03:05:25 PM
The networking part has changed significantly in SME9, and no longer depends on MAC addresses.

Well, it does not work so well then

in fact

After a reboot or a signal-event post-upgrade;  signal-event reboot.
The configuration appears to be swapped between the 2 network card.

I have two network cards from different model.
One TG3 (Eth1, WAN, DHCP Client) and one  E1000 (Eth0, LAN, DHCP Server Eth0).

Everything works fine.
Then after a system restart  the E1000 receives configuration of the TG3 and vice versa.
Now my TG3 is LAN and my E1000 is WAN, if I swap network cable all run fine.

When I read the dmesg, the TG3 became Eth0 and E1000 became Eth1.

I've try to add alias in modprobe.d/dist.conf, but no success

I think, the best way to prevent that is to follow network configuration used in SME 8 and preconised by Centos, therefore add Mac Address in the ifcfg-ethx files.

Discussions on the subject in Bugzilla seem to revolve round...

@+ Olivier
Title: Re: Help ! Mixing in network cards after reboot in SME 9
Post by: CharlieBrady on August 25, 2014, 03:11:41 PM
Discussions on the subject in Bugzilla seem to revolve round...

Code changes are the only way that the problem will be resolved, and code changes are only made after decision in Bugzilla. Please post all details of your problem in Bugzilla.

Thanks
Title: Re: Help ! Mixing in network cards after reboot in SME 9
Post by: guest22 on August 25, 2014, 03:21:20 PM
Well, it does not work so well then

Olivier,

please follow Charlie's advise, and please provide details on what you did _before_ e.g. did you swapped them yourself before, did you try bonding, and other 'test' or config changes you made before you noticed the behavior.

Please also include the relevant db config settings. And what is the output of 'rpm -q e-smith-base'

Thanks,
guest
Title: Re: Help ! Mixing in network cards after reboot in SME 9
Post by: beckynet on August 25, 2014, 11:39:20 PM
Posted in Bugzilla

http://bugs.contribs.org/show_bug.cgi?id=8542 (http://bugs.contribs.org/show_bug.cgi?id=8542)

Thanks Olivier
Title: Re: Help ! Mixing in network cards after reboot in SME 9
Post by: mmccarn on August 26, 2014, 01:03:11 PM
FYI - SME 9 *does* still use the mac address -- it's just stored in a different file.

For SME9, the NIC mac addresses are in /etc/udev/rules.d/70-persistent-net.rules

(I found this after migrating a virtual server from one host to another and picking up a new mac address in the process...)
Title: Re: Help ! Mixing in network cards after reboot in SME 9
Post by: guest22 on August 26, 2014, 01:22:50 PM
For SME9, the NIC mac addresses are in /etc/udev/rules.d/70-persistent-net.rules

Please be aware that the /etc/udev/rules.d/70-persistent-net.rules is auto generated by the system and value may vary (eth3, eth4 etc) based upon number of NIC's and (Physical) NIC changes (e.g. replace broken NIC, add a NIC for Bonding)

Please see above mentioned BUG for detailed discussions.

guest