LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-06-2012, 08:18 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
ip command vs ifconfig command


I have found the "ip" command usable for a few things like setting routes (it works in some cases where the "route" command fails to put in the exact route I want). It's also a shorter output to see all the interfaces and their addresses. But, I have yet to figure out from the "man ip" page just how to completely replace "ifconfig". I would assume something is big as all that stuff in the "ip" command should be able to. I suspect that its complexity is overwhelming the man page.

I'm curious if there is a push to move the world from "ifconfig" to "ip". I recall someone saying so a few years ago. But "ifconfig" still seems to be as popular as ever. Most online network configuration documentation still shows "ifconfig" far more often than "ip". That is, when it is at that level (so, not including documentation that uses distro specific config files).

I started looking for a more comprehensive and clear explanation of how to use the "ip" command, hoping for the possibility of switching to use it completely. I haven't found that yet. Anyone seen such a thing? Or is "ip" really not worth pursuing?
 
Old 03-06-2012, 11:11 PM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
Rush? Not at all. ip has been around for ages and people still use ifconfig. As far as I know, ifconfig calls ip. Anyway, I'vee been using ip for a long time now and I still have things to learn, for sure. I think it's much more powerful than ifconfig (plus the output, as you said, is much briefer).
 
Old 03-07-2012, 02:04 AM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by eantoranz View Post
Rush? Not at all. ip has been around for ages and people still use ifconfig. As far as I know, ifconfig calls ip. Anyway, I'vee been using ip for a long time now and I still have things to learn, for sure. I think it's much more powerful than ifconfig (plus the output, as you said, is much briefer).
Apparently, ifconfig and ip set up multiple IPv4 addresses to the same interface in different ways (ifconfig uses alias names while ip does not). So it does not seem possible that ifconfig merely calls ip. They both do multiple ipv6 addresses the clean way.

I am wanting to know if it is worthwhile learning the obscure syntax of ip.
 
Old 03-07-2012, 03:00 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
I don't think that ifconfig calls ip cause ifconfig was there before. As well one can also use ip to set up aliased interface like ifconfig does. It's just more to write.

As it goes for me after reading about ip and trying to use it I as well stumbled over the badly written man page. Comparing it to other man pages it just plain sucks. It does not tell anything about what can be achived using ip just only how. I guess one has to know about networking things to adopt ip to it. BUT I like the seperation of the ip command it is easier to read if one got a line like ip addr add 10.0.0.20/24 dev eth0 than ifconfig options with broadcast networkaddress and alike. Maybe there should be a smooth transition to ip cause it just got more power. If you have time use ip if in a rush use ifconfig (assuming one is more fluent with ifconfig).

In contrast to your experience i find it easier to set up the default route using ifconfig insted of ip...
 
Old 03-07-2012, 11:57 AM   #5
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
I know networking and what it can do. But with the ip command, I can barely figure out the syntax for some thing. It's like a whole new language there. Some of the syntax references make no sense and I have to jump around to see what means what. And it's way too big to get it all on one page. It's just not intuitive. But I have figured out how to get routing table entries added given that the traditional route command has problems accepting what I want to add in some cases (like IPv6).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ifconfig command swift2008 Programming 4 09-30-2008 08:09 AM
Ifconfig command Gins Linux - General 6 07-22-2008 07:16 AM
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 07:58 AM
IFConfig command dvong3 Linux - Networking 5 01-07-2004 07:44 AM
ifconfig command shoot2kill Linux - Networking 10 10-22-2003 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration