On Sunday 08 Jun 2014 10:25:40 Matti Nykyri wrote:
> Hi
> 
> I also have other problems in my life. One of them is on one of my gentoo
> server. This server has two network cards one serves intranet and the
> other internet. The on that is on the internet is attached to a cable
> modem. The modem is buggy and some times reboots it self losing the link
> so I have ifplugd there get new address via dhcp immediately. Intranet
> card is configured not to use ifplugd. I'm using OpenRC.

Are you sure of this?  How have you configured your intranet card to not be 
acted upon by ifplugd?  From what I see, ifplugd will pick up any interface in 
/etc/init.d:

  EXEC="/etc/init.d/net.$1"


> The problems are related to iptables and samba.
> 
> Samba: when ifplugd runs down the internet card samba is killed. This
> shouldn't happen. Samba is configured only to use intranet card. Samba
> always fails to start when ifplugd starts the internet card. Manual
> starting is required.
> 
> Iptables: the system uses new nic names (enp7s0 etc). Iptables has them
> correctly in the rules and in rules save. However when ifplugd cycles the
> internet nic all the nic names in the in-kernel rules change to eth0 an
> eth1. I need to zap iptables and then start it to reset the rules.

This does not happen here.  When ifplugd restarts a NIC it always comes back 
with the new consistent naming.  Do you have some udev rules defined which are 
picked up on the second time that the ifplugd brings up the card, but not the 
first?


> Any suggestions where to start? Or just disable ifplugd?

Have you tried configuring static IP addresses, broadcast and gateways for 
each card using the /etc/cong.d/net file?  You can still set dhcp as a fall 
back if you want, although I am not sure it is necessary for a server in a 
static LAN.

The file /usr/share/doc/netifrc-0.2.2/net.example.bz2 provides suggestions for 
different set ups.

-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to