LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 11-13-2009, 04:04 AM   #1
fawrell
LQ Newbie
 
Registered: Jul 2008
Location: Slovakia
Posts: 13

Rep: Reputation: 0
difference ifconfig up and ifup


Hey.

Can anyone pls explain me what is the difference between bringing network interfaces up and down with ifup and ifdown and with ifconfig up/down?

And why ifconfig wiped my routing tables after changing netmask address with it? I'm using RHEL 4.

Tnx for answers!
 
Old 11-13-2009, 06:02 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
http://man-wiki.net/index.php/8:ifup

Google finds many others....

If I understand correctly, ifup and ifdown affect all interfaces, whereas ifconfig must be told which one.
 
Old 11-13-2009, 06:49 AM   #3
fawrell
LQ Newbie
 
Registered: Jul 2008
Location: Slovakia
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pixellany View Post
ifup and ifdown affect all interfaces, whereas ifconfig must be told which one.
Definitely not. Easy test:

[root@localhost]# /sbin/ifup
Usage: ifup <device name>

On both you have to specify interface. And both are affecting (shutting down, starting up) only that specified interface.
 
Old 11-13-2009, 07:00 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Sorry--perhsps I misread something in one of the links I found. You now know more than I do.....

My system does not have ifup and ifdown and I never have an issue just using ifconfig.
 
Old 12-06-2012, 05:15 AM   #5
kanishka.dutta
LQ Newbie
 
Registered: Dec 2012
Posts: 11

Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by fawrell View Post
Definitely not. Easy test:

[root@localhost]# /sbin/ifup
Usage: ifup <device name>

On both you have to specify interface. And both are affecting (shutting down, starting up) only that specified interface.
I would also like to know the difference between ifconfig up and ifup. How do they both behave different internally? Can you please explain?
 
  


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
ifconfig , ifdown, ifup deci007 Linux - Newbie 2 11-13-2009 01:00 AM
Difference between Network Connection configuration and ifconfig aarav2306 Linux - Newbie 1 07-07-2009 02:54 PM
What is the difference between 'networking restart' and 'ifup ethx' HolyJoe Linux - Networking 8 05-25-2009 02:46 AM
problem using ifup and ifconfig "command not found" sicgixxer Linux - Networking 2 11-11-2004 09:39 PM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 05:39 PM


All times are GMT -5. The time now is 10:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration