[CentOS-virt] xen setup documentation for centos?

Sat Jun 7 00:03:38 UTC 2014
lee <lee at yun.yagibdah.de>

Manuel Wolfshant <wolfy at nobugconsulting.ro> writes:

>> https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1-networkscripts-static-routes.html
>>
>>
>> [root at charon ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
>> DEVICE="eth0"
>> BOOTPROTO=none
>> DNS1="192.168.178.20"
>> IPADDR="192.168.1.1"
>> NETMASK="255.255.255.255"
>> NM_CONTROLLED=no
>> ONBOOT="yes"
>> TYPE="Ethernet"
>> UUID="1b645d25-9f66-4335-ba0b-939cdd9f553f"
>>
>> [root at charon ~]# cat /etc/sysconfig/network-scripts/route-eth0
>> 192.168.178.0/24 via 192.168.1.1 eth0
>
> syntax error.  you need a "dev" before eth0. which actually is useless 
> to append anyway because the interface is already specified in the file name
>
>
>> default 192.168.178.200 dev eth0
> syntax error. you miss a "via" before the IP of the gateway
>
>>
>> [root at charon ~]# service network restart
>> Shutting down interface eth0:  [  OK  ]
>> Shutting down loopback interface:  [  OK  ]
>> Bringing up loopback interface:  [  OK  ]
>> Bringing up interface eth0:  Determining if ip address 192.168.1.1 is already in use for device eth0...
>> Error: either "to" is duplicate, or "eth0" is a garbage.
> explained by the syntax error from the first line in route-eth0
>
>
>> Error: either "to" is duplicate, or "192.168.178.200" is a garbage.
> explained by the syntax error from the second line in route-eth0

You're right, I overlooked the 'dev'.

Why doesn't the error message simply say "syntax error" and perhaps even
points out that "dev" might be missing?  There is no 'to' in the
configuration file anywhere, and saying that "eth0" might be "a garbage"
isn't helpful in any way.  This isn't any better than failing silently
or just printing "error".

I would like to make a bug report about this so that the useless error
message may be changed.  But what package should the report refer to?


-- 
Knowledge is volatile and fluid.  Software is power.