Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: [gentoo-user] net-tools vs iproute2
Date: Tue, 17 Feb 2009 10:37:43
Message-Id: DBBA3B13-EE68-4B44-AAC9-4A769DC8B07E@stellar.eclipse.co.uk
1 Hi there,
2
3 Could I possibly draw on the combined wisdom of the list to explain to
4 me the difference between net-tools & iproute2, please?
5
6 I have always used ifconfig for checking a computer's IP addresses.
7 And, less frequently (since one normally sets such parameters in /etc/
8 conf.d/net or wherever) for setting up network interfaces.
9
10 I have this idea that I read a while back that ifconfig is old-fangled
11 &/or depreciated and that there's a more modern tool for the job.
12
13 /etc/conf.d/net.example seems to support this:
14
15 # INTERFACE HANDLERS
16 #
17 # We provide two interface handlers presently: ifconfig and iproute2.
18 # You need one of these to do any kind of network configuration.
19 # For ifconfig support, emerge sys-apps/net-tools
20 # For iproute2 support, emerge sys-apps/iproute2
21
22 # If you don't specify an interface then we prefer iproute2 if it's
23 installed
24 # To prefer ifconfig over iproute2
25 #modules=( "ifconfig" )
26
27
28 So am I right in this understanding?
29 Does iproute2 equal ifconfig-TNG?
30
31 I'm looking right now at an iptables application where iproute2 is
32 specified. It's been so long since I used ifconfig for any heavy
33 lifting that I've forgotten all its syntax. But I do plan on setting
34 up a bridge or firewalling router soon.
35
36 So should I just forget about ifconfig & learn iproute2?
37
38 Does anyone have any hints or a cheatsheet of most-common commands
39 that I should know before getting my feet wet?
40
41 TIA,
42
43 Stroller.

Replies

Subject Author
Re: [gentoo-user] net-tools vs iproute2 Mike Kazantsev <mike_kazantsev@×××××××.net>