LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 02: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, 02:58 PM   #2
bentbrewer
LQ Newbie
 
Registered: May 2011
Location: In a brewery
Distribution: Ubuntu 18.04, RHEL
Posts: 21

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, 03: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 05:46 AM.
 
Old 08-22-2011, 06:26 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

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

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Ditto
 
Old 08-22-2011, 09:59 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:20 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