You are not logged in.

#1 2011-06-25 07:28:53

bruuce
Member
Registered: 2011-04-04
Posts: 30

update to new network configuration

I have a home server that among other things share internet connexion with my other computers.

I recently update it and had to modify my /etc/rc.conf
Now my other computers doesn't have internet anymore because of a unworking dhcp (dhcp is assume by dnsmasq)

First a realized my eth1 interface isn't configure correctly now
My rc.conf was :
#eth1="eth1 192.168.42.42 netmask 255.255.255.0 broadcast 192.168.42.255"
#eth0="dhcp"
#INTERFACES=(eth1 eth0)

It now contains :
interface=eth1
address=192.168.42.42
netmask=255.255.255.0
gateway=

interface=eth0
address=
netmask=
gateway=

What did I miss?

Even when I set my eth1 properly running  "ifconfig eth1 192.168.42.42 netmask 255.255.255.0 broadcast 192.168.42.255"
My dhcp server doesn't work. I restart dnsmasq. I can see other computer probes with tcpdump but no answer.

Does anyone know where that come from?

Offline

#2 2011-06-29 08:33:51

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 230

Re: update to new network configuration

Hi Bruce,
I've just started looking at this new network configuration myself and I am struggling to see why the change was needed. Here the nub: you can only set up one network in rc.conf now!

In your config you have two networks, the first configuration (eth1) gets overwritten by the second (eth0). I guess your eth0 works but eth1 doesnt ?

I don't have a solution for you because I am only trying to solve this myself now. I have several interfaces and a bridge quite happily co-existing in my old-style rc.conf and the new format can't represent it.

Aparently you need to use "netcfg" which is fine for laptops etc but seems to me overkill for a wired server or desktop.

There seems to be very little information out there as to why this change has been made and I am a little confused myself.

Not sure if that helps at all ...

Offline

#3 2011-06-29 13:50:37

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: update to new network configuration

net-tools was deprecated because it had been unmaintained for close to a decade, which is why this change was mandated.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#4 2011-06-30 09:50:21

ghen
Member
From: Belgium
Registered: 2010-08-31
Posts: 121

Re: update to new network configuration

Inxsible wrote:

net-tools was deprecated because it had been unmaintained for close to a decade, which is why this change was mandated.

The change many people are complaining about is not net-tools -> iproute2, but flexible configuration -> one-interface-one-address-only in rc.conf (which is not at all imposed by iproute2).

Offline

#5 2011-06-30 10:57:29

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: update to new network configuration

you can have what you need using netcfg to setup the second card. or setup both with it if you wish

Offline

#6 2011-07-03 15:29:46

bruuce
Member
Registered: 2011-04-04
Posts: 30

Re: update to new network configuration

I will try with netcfg but It will take a while.
Thanks all for answering.

Offline

Board footer

Powered by FluxBB