On 23/09/2012 13:06, Tom H wrote:
On Sun, Sep 23, 2012 at 4:17 AM, Marek Pawinski<li...@pawinski.co.za>  wrote:
Squeeze 6.05 amd64, I had backports enabled and made the mistake of updating
to the latest back port kernel amongst other updates a few days ago.

When I rebooted I had no internet connectivity so I removed the back port
kernel thinking it was that.

But now with my original 2.6.32-5-amd64 kernel every time I reboot,
/etc/resolve.conf is empty and I have to enter my DNS server by hand.

If I can remember correctly I do not use network manger but placed my
entries in the interfaces file.
What are the contents of "/etc/network/interfaces" and
/etc/NetworkManager/NetworkManager.conf"?

Do you have any scripts in "/etc/NetworkManager/dispatcher.d/"?



Here they are, three of them:

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
#allow-hotplug eth0
#NetworkManager#iface eth0 inet dhcp

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.2.106
gateway 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255


cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false


cat /etc/NetworkManager/dispatcher.d/01ifupdown
#!/bin/sh -e
# Script to dispatch NetworkManager events
#
# Runs ifupdown scripts when NetworkManager fiddles with interfaces.
# See NetworkManager(8) for further documentation of the dispatcher events.

if [ -z "$1" ]; then
    echo "$0: called with no interface" 1>&2
    exit 1;
fi

# Fake ifupdown environment
export IFACE="$1"
export LOGICAL="$1"
export ADDRFAM="NetworkManager"
export METHOD="NetworkManager"
export VERBOSITY="0"

# Run the right scripts
case "$2" in
    up|vpn-up)
    export MODE="start"
    export PHASE="post-up"
    exec run-parts /etc/network/if-up.d
    ;;
    down|vpn-down)
    export MODE="stop"
    export PHASE="post-down"
    exec run-parts /etc/network/if-post-down.d
    ;;
# pre-up/pre-down not implemented. See
# https://bugzilla.gnome.org/show_bug.cgi?id=387832
#    pre-up)
#    export MODE="start"
#    export PHASE="pre-up"
#    exec run-parts /etc/network/if-pre-up.d
#    ;;
#    pre-down)
#    export MODE="stop"
#    export PHASE="pre-down"
#    exec run-parts /etc/network/if-down.d
#    ;;
    hostname|dhcp4-change|dhcp6-change)
        # Do nothing
    ;;
    *)
    echo "$0: called with unknown action \`$2'" 1>&2
    exit 1
    ;;
esac



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/505f1184.7050...@pawinski.co.za

Reply via email to