LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2011, 03:26 PM   #1
drManhattan
Member
 
Registered: Aug 2010
Location: Warsaw, Poland
Distribution: Ubuntu 10.04 LTS on IBM Lenovo R61e, RHEL5-6,SLES10-11
Posts: 262

Rep: Reputation: 1
ip vs ifconfig


Hi

I have heard from people that it is better to use `ip` command instead of `ifconfig`.
So to configure NIC it can be done on 2 ways :
1. `ip address add 192.168.0.1/24 brd + dev eth0`
2. `ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up`.

What is the difference ?

thx for help.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-22-2011, 03:58 PM   #2
bentbrewer
LQ Newbie
 
Registered: May 2011
Location: In a brewery
Distribution: Ubuntu 11.04 & 10.04, CentOS 6, Fedora 15
Posts: 20

Rep: Reputation: Disabled
http://www.tty1.net/blog/2010-04-21-...arison_en.html

ip is newer and more powerful but ifconfig isn't going anywhere.
 
4 members found this post helpful.
Old 08-22-2011, 04:11 PM   #3
allwimb
Member
 
Registered: Aug 2011
Posts: 47

Rep: Reputation: Disabled
I've always used ifconfig I feel comfortable with it

spring logout

Last edited by allwimb; 12-12-2011 at 06:46 AM.
 
Old 08-22-2011, 07:26 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
@bentbrewer: nice link; bookmarked & thx
 
Old 08-22-2011, 10:40 PM   #5
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,243

Rep: Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684
Ditto
 
Old 08-22-2011, 10:59 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,372

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
ip has way more technical options would be my guess but for most home users ifconfig is fine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Why "-bash: ifconfig : command not found" when typing "$ifconfig" dangdtvn Linux - Server 9 09-20-2013 07:01 AM
ifconfig tonypap1 Linux - Networking 5 09-01-2009 01:33 PM
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 08:58 AM
Oh where or where has ifconfig gone thotFree Linux - Software 3 11-13-2003 01:27 AM
Ifconfig hornet74 Linux - Networking 1 11-10-2003 11:12 AM


All times are GMT -5. The time now is 11:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration