Re: network configuration
On Friday 21 April 2006 04:53, roberto wrote:
> hi all
> i'd like to know if there is some GUI in KDE 3.3 that lets me
> reconfigure the eth0 network interface each time i move from a network
> to another one, to set up again IP address, gateway ecc...
> thank you!
> OS: GNU/Linux, Debian Sarge
I use a combination of ifplugd, guessnet, resolvconf to automatically detect
which network I am plugged into. The only configuration I do is to modify
the /etc/network/interfaces file. Mine is shown below:
# 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
iface lo inet loopback
# The primary network interface
# turn off since ifplugd is controlling things
map default: none
map timeout: 3
map verbose: true
iface work inet dhcp
test peer address 126.96.36.199 00:XX:XX:XX:XX:XX
pre-up hostname puppy.mech.utah.edu
iface home inet static
dns-nameservers 188.8.131.52 184.108.40.206
test peer address 192.168.1.1 00:XX:XX:XX:XX:XX:
pre-up hostname puppy
The "test peer address" lines are for guessnet. This test determines which
network you are hooked into based on "pinging" a specific machine with its
MAC address specified (obfuscated with XX).
The "dns-nameservers" is for resolvconf which takes over the management of dns
nameservers. For my dhcp connection dns nameservers are given to me,
whereas, for my static home connection, I specify them.
ifplugd determines if I am connected to the network.
All the packages, "ifplugd, guessnet, and resolvconf" are in Debian.