You are not logged in.

#1 2012-09-14 23:41:59

scurry
Member
Registered: 2012-09-14
Posts: 1

udev rules config and multiple NICs

So I have four NICs and I want them all set up on individual subnets with static IPs. eth0 is connected to my internet router. So, per the Arch wiki, I tried configuring /etc/udev/rules.d/10-network.rules like so:

SUBSYSTEM=="net", ATTR{address}=="08:00:27:4b:c0:38", NAME="net0"
SUBSYSTEM=="net", ATTR{address}=="08:00:27:ca:75:f6", NAME="net1"
SUBSYSTEM=="net", ATTR{address}=="08:00:27:24:26:4b", NAME="net2"
SUBSYSTEM=="net", ATTR{address}=="08:00:27:35:10:a7", NAME="net3"

and my /etc/rc.conf like this:

# Network
#
interface=net0
address=192.168.1.11
netmask=255.255.255.0
gateway=192.168.1.1

interface=net1
address=192.168.101.11
netmask=255.255.255.0

interface=net2
address=192.168.102.11
netmask=255.255.255.0

interface=net3
address=192.168.103.11
netmask=255.255.255.0

The problem is upon booting up, the only card that gets configured and brought up is net3. I'm not really sure where to go from here to start troubleshooting. Thanks if you can help!

Offline

#2 2012-09-15 09:19:55

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,491

Re: udev rules config and multiple NICs

You have to use something else (e.g. netcfg) than network to configure multiple interfaces. The rc.conf configuration of multiple interfaces is deprecated also.
http://www.archlinux.org/news/netcfg-28 … atibility/

Offline

#3 2012-09-15 09:49:02

arch_gala
Member
Registered: 2011-03-23
Posts: 25

Re: udev rules config and multiple NICs

use netcfg, especially because it is a server.

rc.conf only supports a single network interface, and this will be removed sometime in the future.

I use netcfg on my server/router and it works flawlessly.

Offline

Board footer

Powered by FluxBB