You are not logged in.

#1 2011-06-10 14:27:28

Corubba
Member
From: Germany
Registered: 2010-11-14
Posts: 86

configure multiple devices in new rc.conf

Hey guys,

i updated my Server today and created a new rc.conf.

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="server"

# Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
#
# Wired network setup
#   - interface: name of device (required)
#   - address: IP address (leave blank for DHCP)
#   - netmask: subnet mask (ignored for DHCP)
#   - gateway: default route (ignored for DHCP)
# 
# Static IP example
# interface=eth0
# address=192.168.0.2
# netmask=255.255.255.0
# gateway=192.168.0.1
#
# DHCP example
# interface=eth0
# address=
# netmask=
# gateway=

interface=eth0
address=192.168.78.137
netmask=255.255.255.0
gateway=192.168.78.95

interface=eth1
address=192.168.100.1
netmask=255.255.255.0
gateway=192.168.100.1

# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"

# Enable these netcfg profiles at boot-up. These are useful if you happen to
# need more advanced network features than the simple network service
# supports, such as multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This requires the netcfg package
#
#NETWORKS=(main)

The thing is, after rebooting (network is in my deamons array), `ifconfig` looks like this:

eth1      Link encap:Ethernet  HWaddr 08:00:27:6D:DF:B5  
          inet addr:192.168.100.1  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:504 (504.0 b)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:356 (356.0 b)  TX bytes:356 (356.0 b)

So he dont bring up the eth0. When bringing it up with `ifconfig eth0 up` it dont get the IP from rc.conf. When assign this with `ifconfig eth0 192.168.78.95 netmask 255.255.255.0` everything works fine.
When i comment the hole eth1 block in rc.conf, eth0 is also working perfect from the start like it should with both.

eth0 and eth1 are persistent, i have the required udev rules for this.

Any suggestions? Anything wrong with my config?


Greetz Corubba

Offline

#2 2011-06-10 14:41:48

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: configure multiple devices in new rc.conf

Arch News wrote:

The new syntax is very simplistic and only supports one wired network device

Full article here.

Always read the news.

Offline

#3 2011-06-10 14:45:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: configure multiple devices in new rc.conf

https://bugs.archlinux.org/task/24644 confirms that this is how it's gonna be.

Offline

Board footer

Powered by FluxBB