[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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!
> --
> roberto
> 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
auto lo
iface lo inet loopback

# The primary network interface
# turn off since ifplugd is controlling things
#auto eth0

mapping eth0
        script /usr/sbin/guessnet-ifupdown
        map default: none
        map timeout: 3
        map verbose: true

iface work inet dhcp
        test peer address 155.98.7.82 00:XX:XX:XX:XX:XX
        pre-up hostname puppy.mech.utah.edu

iface home inet static
        address 192.168.1.5
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        dns-nameservers 209.210.176.8 209.210.176.9
        test peer address 192.168.1.1 00:XX:XX:XX:XX:XX:
        pre-up hostname puppy


Notes:

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.

John



Reply to: