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

Re: Can't parse interface line '#015'



On 07/03/14 01:59, lina wrote:
> Hi,
> 
>>From syslog, it shows me:
> 
> Mar  6 10:47:05 debian NetworkManager[6729]: Error: Can't parse
> interface line '#015'
> 
> # cat -n interfaces
>      1	# This file describes the network interfaces available on your system
>      2	# and how to activate them. For more information, see interfaces(5).
>      3	
>      4	# The loopback network interface
>      5	auto lo
>      6	iface lo inet loopback
>      7	iface eth0 inet dhcp
>      8	        dns-nameservers xxx.xx.5.7 xxx.xx.5.225
>      9	        dns-search example.com
>     10	
>     11	# The primary network interface
>     12	allow-hotplug eth0
>     13	iface eth0 inet dhcp
> 
> I don't know how to fix this error related to interface. Thanks for your
> suggestions,
> 
> Best regards,
> 
> 

# nano -c /etc/network/interfaces
will show line numbers for you

I'm guessing you have blank lines in your interfaces file. So open that
file for editing with the above command. You should find you can move
the cursor to line 15 *even* though there's nothing written on it. If so
use the backspace key to delete those lines - until the cursor reaches
the end of line 13 (behind the "p" in "dhcp"). Then press "F2" to save,
followed by "y" to save changes.

You can then run:-
# ifdown eth0
# ifup eth0
If you have fixed the problem there should be no error messages from the
last command.

Kind regards


Reply to: