dpkg-reconfigure command to reconfigure the network?

I am missing the dpkg-reconfigure command to reconfigure the network
interfaces. I am moving from dhcp to static ip address, and I need that
dpkg dialog.
Can someone here recall that? The machine is sarge.
thanks much!

--

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

dpkg-reconfigure command to reconfigure the network?

On Sat, 13 Jan 2007 11:28:55 -0200
Bruno Buys wrote:

> I am missing the dpkg-reconfigure command to reconfigure the network
> interfaces. I am moving from dhcp to static ip address, and I need
> that dpkg dialog.
> Can someone here recall that? The machine is sarge.
> thanks much!
>
>

I don't know the dpkg-reconfigure command, but I do know that it's just
as easy to edit the file /etc/network/interfaces and restart the
network manually (by issuing the command '/etc/init.d/networking
restart' as root). See 'man interfaces' for details of the syntax of the
interfaces file. Useful also for those cases which are not handled by
dpkg-reconfigure.

--

Liam

--

dpkg-reconfigure command to reconfigure the network?

Liam O'Toole wrote:

>On Sat, 13 Jan 2007 11:28:55 -0200
>Bruno Buys wrote:
>
>
>
>>I am missing the dpkg-reconfigure command to reconfigure the network
>>interfaces. I am moving from dhcp to static ip address, and I need
>>that dpkg dialog.
>>Can someone here recall that? The machine is sarge.
>>thanks much!
>>
>>
>>
>>
>
>I don't know the dpkg-reconfigure command, but I do know that it's just
>as easy to edit the file /etc/network/interfaces and restart the
>network manually (by issuing the command '/etc/init.d/networking
>restart' as root). See 'man interfaces' for details of the syntax of the
>interfaces file. Useful also for those cases which are not handled by
>dpkg-reconfigure.
>
>
>
Indeed. Thanks, friend.

--

dpkg-reconfigure command to reconfigure the network?

Liam O'Toole wrote:

>On Sat, 13 Jan 2007 11:28:55 -0200
>Bruno Buys wrote:
>
>
>
>>I am missing the dpkg-reconfigure command to reconfigure the network
>>interfaces. I am moving from dhcp to static ip address, and I need
>>that dpkg dialog.
>>Can someone here recall that? The machine is sarge.
>>thanks much!
>>
>>
>>
>>
>
>I don't know the dpkg-reconfigure command, but I do know that it's just
>as easy to edit the file /etc/network/interfaces and restart the
>network manually (by issuing the command '/etc/init.d/networking
>restart' as root). See 'man interfaces' for details of the syntax of the
>interfaces file. Useful also for those cases which are not handled by
>dpkg-reconfigure.
>
>
>
I didn't mean dpkg was the only way. The new config is doing good. Quick
and easy. Thanks all!

--

dpkg-reconfigure command to reconfigure the network?

--- Bruno Buys wrote:
> I am missing the dpkg-reconfigure command to
> reconfigure the network
> interfaces. I am moving from dhcp to static ip
> address, and I need that
> dpkg dialog.
> Can someone here recall that? The machine is sarge.
> thanks much!
>
Have you tried editing /etc/network/interfaces? It
should look something like this:

# 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
allow-hotplug eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0

If you edit this file, the changes in settings will be
made the next time you bring the network interfaces up.

--

dpkg-reconfigure command to reconfigure the network?

On Sat, 13 Jan 2007 11:28:55 -0200
Bruno Buys wrote:

> I am missing the dpkg-reconfigure command to reconfigure the network
> interfaces. I am moving from dhcp to static ip address, and I need
> that dpkg dialog.
> Can someone here recall that? The machine is sarge.
> thanks much!

I don't think this can be done with debconf. It is only done during
install. Maybe base-config is what you're looking for (but I don't
remember if it configures the network too).

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

--

dpkg-reconfigure command to reconfigure the network?

Bruno Buys wrote:

> I am missing the dpkg-reconfigure command to reconfigure the network
> interfaces. I am moving from dhcp to static ip address, and I need that
> dpkg dialog.

You're overengineering this a little bit. Check out /etc/network/interfaces
with a text editor and this manual page for examples. Once you have it
reset how you want it and
saved /etc/networking/interfaces, /etc/init.d/networking restart will apply
your settings.

http://ursine.ca/cgi-bin/dwww?type=runman&location=interfaces/5

--

Syndicate content