Gentoo Archives: gentoo-user

From: Dan Farrell <dan@×××××××××.cx>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: static IP, gateway and netmask setting
Date: Wed, 28 Nov 2007 19:07:08
Message-Id: 20071128125851.7ddd8253@pascal.spore.ath.cx
In Reply to: Re: [gentoo-user] Re: static IP, gateway and netmask setting by Etaoin Shrdlu
1 On Wed, 28 Nov 2007 10:18:05 +0100
2 Etaoin Shrdlu <shrdlu@×××××××××××××.org> wrote:
3
4 > I don't know exactly how initscripts work, but I suppose that if
5 > the /24 is given in /etc/conf.d/net, then both the resulting iproute2
6 > and ifconfig command that bring the interface up will include the
7 > netmask specification.
8
9 How the net init script works (there's really only one, generally net.*
10 is linked to net.lo for update simplicity) is configured
11 in /etc/conf.d/net. /etc/conf.d/net.example holds examples for just
12 about every imaginable configuration, but from my net, iproute2 looks
13 something like:
14
15 modules=("iproute2");
16 config_eth0=( "192.168.1.87/24 brd 192.168.1.255");
17 routes_eth0=( "default via 192.168.1.1" );
18 config_eth1=( "192.168.1.88/24 brd 192.168.1.255" );
19
20 but as you can see, that still doesn't set up a netmask but uses the
21 default. I agree that in both cases the default would be /8 for a
22 10.xxx network, but as you can see the config syntax is different for
23 iproute2 and ifconfig.
24 --
25 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Re: static IP, gateway and netmask setting Rafael Barrera Oro <borafael@×××××.com>
Re: [gentoo-user] Re: static IP, gateway and netmask setting Etaoin Shrdlu <shrdlu@×××××××××××××.org>