network manager with two interfaces



I tried to use network manager with two interfaces and ip masquerade and could not get it working.

Eth0 is the internet interface connected with dhcp.

eth1 is manually set to 192.168.0.1 etc...

This couldn't be set with the nm-applet.

I had to hand edit /etc/udev/rules.d/70-persistent-net.rules and /etc/network/interfaces. This was done with an out of the box installation of debian 6.0.6. It seems like the install process randomly sets the network cards to eth0/eth1 from one install to another on the same computer. (I had to abort the first install attempt for some reason i don't remember. The next install attempt eth0 was eth1 and eth1 was eth0).

After hand editing the files mentioned above the system works but the nm-applet says "enheten hanteras inte" might translate to the unit is not handled.

eth0
enheten hanteras inte
(unit not handled)

eth1
enheten hanteras inte
(unit not handled)

The system works. Ip-masquerade works. Is it possible to get the nm-applet telling that ip-masquerade is up and working?

The contents of the files /etc/udev/rules.d/70-persistent-net.rules and /etc/network/interfaces comes below

Regars
Bo

cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:17:31:70:08:2c", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x10b7:0x9055 (3c59x)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:10:4b:45:80:a1", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


bo pc35:~$ 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 eth1

#iface eth0 inet dhcp

    auto eth0
#   allow-hotplug eth0
    iface eth0 inet dhcp

    auto eth1
    iface eth1 inet static
        address 192.168.0.1
        netmask 255.255.255.0




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