Trouble with ifup

2004-08-19 Thread Ian Thomas
I'm not able to get the file, /etc/network/interfaces, to be read 
successfully with by ifup(8).  The following is a copy of what is the 
contents of the interfaces file (I've left out the comments).

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static\
address 192.168.2.3\
netmask 255.255.255.0\
gateway 192.168.2.1
When running 'ifup -a', I get the following error,
/etc/network/interfaces:12: too many parameters for iface line
ifup: couldn't read interfaces file /etc/network/interfaces
Line 12 is referring to the line containing 'gateway'.  I have 
attempted to format this file in numerous ways, all according to the 
specification defined in interfaces(5), without success.  Any 
suggestions?

Ian Thomas
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Trouble with ifup

2004-08-19 Thread Stefan O'Rear
Try removing the backslashes.

My /e/n/interfaces:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.2.4
netmask 255.255.255.0
broadcast 192.168.2.255
gateway 192.168.2.1
network 192.168.254.0


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Trouble with ifup

2004-08-19 Thread Tom Furie
Hi Ian,

On Thu, Aug 19, 2004 at 05:43:30PM -0400, Ian Thomas wrote:

 auto eth0
 iface eth0 inet static\
   address 192.168.2.3\
   netmask 255.255.255.0\
   gateway 192.168.2.1
 
 When running 'ifup -a', I get the following error,
 
 /etc/network/interfaces:12: too many parameters for iface line
 ifup: couldn't read interfaces file /etc/network/interfaces

Removing the escapes should fix it.

Cheers,
Tom

-- 
Slous' Contention:
If you do a job too well, you'll get stuck with it.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Trouble with ifup (Resolved)

2004-08-19 Thread Ian Thomas
On Aug 19, 2004, at 6:02 PM, Stefan O'Rear wrote:
Try removing the backslashes.
My /e/n/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.2.4
netmask 255.255.255.0
broadcast 192.168.2.255
gateway 192.168.2.1
network 192.168.254.0
Removing the backslashes worked.  After reading the manual for 
interfaces(5), I was unclear about what constituted a line.  The syntax 
of the interfaces file if very similar to the arguments of ifconfig(8), 
so I thought all the options needed to be on one line.

Thanks for the quick response.
Ian Thomas
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]