From: Ray Olszewski <ray@comarre.com>
To: linux-newbie@vger.kernel.org
Subject: Re: Debian network reconfigure
Date: Thu, 01 Jan 2004 15:54:20 -0800 [thread overview]
Message-ID: <5.1.0.14.1.20040101154809.02021888@celine> (raw)
In-Reply-To: <1073000644.3ff4b0c4b3357@horde.mailsnare.net>
At 11:44 PM 1/1/2004 +0000, jamtat@mailsnare.net wrote:
>I've tried various things I can think of on a Debian system and
>searched the web a bit for information, but I'm still at a loss. I've
>moved a Debian machine that was on a dhcp network to a network that uses
>static addressing. I was hoping there is a way to rerun the network
>setup dialogue so that I can assign eth0 a static address and tell it where
>the gateway is. Is there a way to rerun it? If so, where and how?
I don't know offhand, though it is a good goess that there is some
"dpkg-reconfigure" command that will do what you want. The fact that this
setup is part of a install makes it a bit complicated.
The easy solution, though, is to hand edit (using vi, emacs, or whatever
text processor you like) the file /etc/network/interfaces to remove the
DHCP assignment and replace it with a static address. A sample stanza for
this (taken from one of my workstations) is:
auto eth0
# comment out next line to remove DHCP assignment
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.86
All the networking setup program does is provide a front-end to editing
this file.
So edit it, then run ...
/etc/init.d/networking restart
... and you should be set.
Do all this as root, of course.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next prev parent reply other threads:[~2004-01-01 23:54 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-31 19:33 disabled system speaker: how to enable? James Miller
2004-01-01 3:33 ` caszonyi
2004-01-01 23:44 ` Debian network reconfigure jamtat
2004-01-01 23:54 ` Ray Olszewski [this message]
2004-01-02 0:38 ` James Miller
2004-01-04 20:43 ` starting and stopping networking James Miller
2004-01-04 20:49 ` caszonyi
2004-01-04 21:07 ` James Miller
2004-01-04 21:14 ` Jacob Langley
2004-01-04 21:19 ` caszonyi
2004-01-04 21:28 ` James Miller
2004-01-04 21:41 ` James Miller
2004-01-04 22:24 ` Ray Olszewski
2004-01-04 21:32 ` Alan Bort
2004-01-04 23:26 ` Ray Olszewski
2004-01-04 23:51 ` Alan Bort
2004-01-05 0:28 ` Ray Olszewski
2004-01-05 3:11 ` Alan Bort
2004-01-05 3:55 ` Juan Facundo Suárez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5.1.0.14.1.20040101154809.02021888@celine \
--to=ray@comarre.com \
--cc=linux-newbie@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox