[CentOS-virt] xen setup documentation for centos?
lee at yun.yagibdah.de
Sat Jun 7 00:03:38 UTC 2014
Manuel Wolfshant <wolfy at nobugconsulting.ro> writes:
>> [root at charon ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
>> [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.
More information about the CentOS-virt