Hi

I am trying to set up an router using Ubuntu Server 11.10. I edited the interfaces file as follows (replacing the xxx with the relevant details!)

# set up the local loopback interface
auto lo
iface lo inet loopback

# Setup External interface

auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx

# Setup internalnetwork interface

auto eth1
iface eth1 inet static
address 192.168.2.1
network 192.168.2.0
netmask 255.255.255.0
broadcast 192.168.2.255

After saving the file I tried to restart the networking
$ sudo /etc/init.d/networking restart

I then get the message
* Reconfiguring network interfaces
/etc/network/interfaces: duplicate option
ifdown: couldn't read interface file /etc/network/interfaces
/etc/network/interfaces: duplicate option
ifdown: couldn't read interface file /etc/network/interfaces


If I restore the backup interfaces file it reads it!