Koozali.org: home of the SME Server

Help ! Mixing in network cards after reboot in SME 9

Offline beckynet

  • *
  • 107
  • +0/-0
    • http://www.beckynet.be
Help ! Mixing in network cards after reboot in SME 9
« 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
----------------------------------------------------
Beeckmans Olivier
Belgian Army ICT Technician
I discovered E-Smith with version 4.12
----------------------------------------------------

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
Re: Help ! Mixing in network cards after reboot in SME 9
« Reply #1 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?
nl.linkedin.com/in/hanscees/

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Help ! Mixing in network cards after reboot in SME 9
« Reply #2 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.

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

guest22

Re: Help ! Mixing in network cards after reboot in SME 9
« Reply #3 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

Offline beckynet

  • *
  • 107
  • +0/-0
    • http://www.beckynet.be
Re: Help ! Mixing in network cards after reboot in SME 9
« Reply #4 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
----------------------------------------------------
Beeckmans Olivier
Belgian Army ICT Technician
I discovered E-Smith with version 4.12
----------------------------------------------------

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Help ! Mixing in network cards after reboot in SME 9
« Reply #5 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

guest22

Re: Help ! Mixing in network cards after reboot in SME 9
« Reply #6 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

Offline beckynet

  • *
  • 107
  • +0/-0
    • http://www.beckynet.be
Re: Help ! Mixing in network cards after reboot in SME 9
« Reply #7 on: August 25, 2014, 11:39:20 PM »
Posted in Bugzilla

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

Thanks Olivier
----------------------------------------------------
Beeckmans Olivier
Belgian Army ICT Technician
I discovered E-Smith with version 4.12
----------------------------------------------------

Offline mmccarn

  • *
  • 2,635
  • +10/-0
Re: Help ! Mixing in network cards after reboot in SME 9
« Reply #8 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...)

guest22

Re: Help ! Mixing in network cards after reboot in SME 9
« Reply #9 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