LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-27-2007, 08:26 AM   #1
htamayo
Member
 
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190

Rep: Reputation: 30
I can't find the ifupdown command


Hi, I use debian etch.

I'm trying to setup a static ip to another pc that doesn't plug to the network, so I went to edit the /etc/network/interfaces and I defined the address, the mask, the network and the broadcast values, ok, but after that I tried to use the ifupdown command and the interpreter told me that "command not found", I went to synaptic and the ifupdown command is currently installed but I can't use it.

And I have to reboot that machine but the ip doesn't changed, it's always the 127.0.0.1, so please can yopu help me to setup a different ip and where I can find the ifupdown command? thanks a lot
 
Old 11-27-2007, 08:58 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I'm not aware of a command ifupdown, there are however two separate commands to handle that function..

ifup eth0

ifdown eth0


if your configuration file is correct you should have come up with the static IP address after a reboot.. what does your interfaces file look like ? here is the interfaces file with a static IP from one of my boxes..

Code:
it-etch:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.4
netmask 255.255.255.0
gateway 192.168.0.1
network 192.168.0.0
broadcast 192.168.0.255
the auto eth0 line tells the system to automatically bring the interface up on boot.
 
  


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
Find/grep command to find matching files, print filename, then print matching content stefanlasiewski Programming 9 06-30-2016 05:30 PM
find command George2 Linux - General 2 08-30-2007 01:42 AM
find command DotHQ Red Hat 3 04-24-2006 06:02 AM
ifupdown/ifplugd equivalent(s) for Slackware? alephnull Slackware 3 01-28-2005 10:56 PM
find command talkinggoat Linux - Newbie 4 10-05-2003 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:12 AM.

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