[arch-general] which package provides ifup & ifdown command ?
i cannot find ifup and ifdown in any of the paths- not as a normal user nor as root user. only command i can use is ifconfig. so i was wondering which package provides these two binaries ?
On Tue, 2009-08-25 at 13:02 +0530, Partha Chowdhury wrote:
i cannot find ifup and ifdown in any of the paths- not as a normal user nor as root user. only command i can use is ifconfig. so i was wondering which package provides these two binaries ?
ifup and ifdown are debian specific commands not found in other distributions.
On 25.08.2009 09:37, Jan de Groot wrote:
On Tue, 2009-08-25 at 13:02 +0530, Partha Chowdhury wrote:
i cannot find ifup and ifdown in any of the paths- not as a normal user nor as root user. only command i can use is ifconfig. so i was wondering which package provides these two binaries ?
ifup and ifdown are debian specific commands not found in other distributions.
That's right. The way to do it on Arch is ifconfig eth0 up and ifconfig eth0 down.
As Sven-Hendrik said, you need to use ifconfig $interface up and ifconfig $interface down. If you really need ifup and ifdown, put this in your .bashrc: alias 'ifup eth0'='ifconfig eth0 up' alias 'ifdown eth0'='ifconfig eth0 down" It's likely that you could replace hardcoding eth0 with using something like $2, but it's 4AM and i'm too lazy to write up a example for that.
Le mardi 25 à 10:05, Jeff Horelick a écrit :
As Sven-Hendrik said, you need to use ifconfig $interface up and ifconfig $interface down. If you really need ifup and ifdown, put this in your .bashrc:
alias 'ifup eth0'='ifconfig eth0 up' alias 'ifdown eth0'='ifconfig eth0 down"
You *do* realise that ifup does slightly more than ifconfig up ? -- Fred
Le Wed, 26 Aug 2009 00:06:16 +0200, Frédéric Perrin <frederic.perrin@resel.fr> a écrit :
Le mardi 25 à 10:05, Jeff Horelick a écrit :
As Sven-Hendrik said, you need to use ifconfig $interface up and ifconfig $interface down. If you really need ifup and ifdown, put this in your .bashrc:
alias 'ifup eth0'='ifconfig eth0 up' alias 'ifdown eth0'='ifconfig eth0 down"
You *do* realise that ifup does slightly more than ifconfig up ?
ifup allows you to configure some stuff using /etc/network/interfaces. If that's what you're looking for, you probably want to take a look at netcfg instead of ifconfig. -- catwell
Partha Chowdhury 提到:
i cannot find ifup and ifdown in any of the paths- not as a normal user nor as root user. only command i can use is ifconfig. so i was wondering which package provides these two binaries ? according to pkgfile tools, there's no such file provided by any package.
On Tue, 25 Aug 2009 13:02:47 +0530 Partha Chowdhury <kira.laucas@gmail.com> wrote:
i cannot find ifup and ifdown in any of the paths- not as a normal user nor as root user. only command i can use is ifconfig. so i was wondering which package provides these two binaries ?
As has been said, there are no binaries for those. IIRC they are scripts that use ifconfig. See `man ifconfig`
thank you everyone for the prompt replies ! upon further enquiry, i loaded both ubuntu and rhel 5 in virtualbox and found 1>in ubuntu ifup and ifdown are part of ifupdown package 2> in rhel they are part of initscripts package. so i am wondering does every distributions modify some core packages according to their preferences ?
Partha Chowdhury schrieb:
i cannot find ifup and ifdown in any of the paths- not as a normal user nor as root user. only command i can use is ifconfig. so i was wondering which package provides these two binaries ?
alias ifup='/etc/rc.d/network ifup' alias ifdown='/etc/rc.d/network ifdown' There you go.
participants (9)
-
b4283
-
Frédéric Perrin
-
Jan de Groot
-
Jeff Horelick
-
Nathan K. Bathory
-
Partha Chowdhury
-
Pierre Chapuis
-
Sven-Hendrik Haase
-
Thomas Bächler