Gentoo Archives: gentoo-user

From: Amit Dor-Shifer <amitds@××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: OT: tool for reading /etc/conf.d/net?
Date: Sun, 11 Jul 2010 07:24:22
Message-Id: 4C39714F.9040504@oversi.com
In Reply to: [gentoo-user] Re: OT: tool for reading /etc/conf.d/net? by James
1 On 07/09/10 20:37, James wrote:
2 > Amit Dor-Shifer<amitds<at> oversi.com> writes:
3 >
4 >
5 >
6 >> Can anyone recommend a tool that can parse networking info from a/m
7 >> file, so one can use it to query, e.g. what is the static IP configured
8 >> on eth0?
9 >> Amit
10 >>
11 > /sbin/ifconfig -a
12 >
13 >
14 > ???
15 >
16 > if not, look at the iproute, netstat, etc etc
17 > commands...
18 >
19 > hth,
20 > James
21 >
22 AFAIK, all those would only work once the interface is up. They don't
23 have the capability to just read cfg and emit what's there is some
24 usable form.
25 Amit
26 >
27 >
28 >
29 >
30 >
31 >