LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ip vs ifconfig (https://www.linuxquestions.org/questions/linux-newbie-8/ip-vs-ifconfig-898818/)

drManhattan 08-22-2011 02:26 PM

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.

bentbrewer 08-22-2011 02:58 PM

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

ip is newer and more powerful but ifconfig isn't going anywhere.

allwimb 08-22-2011 03:11 PM

I've always used ifconfig I feel comfortable with it :p

spring logout

chrism01 08-22-2011 06:26 PM

@bentbrewer: nice link; bookmarked & thx

grail 08-22-2011 09:40 PM

Ditto :)

jefro 08-22-2011 09:59 PM

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


All times are GMT -5. The time now is 11:40 AM.