[CentOS-virt] xen setup documentation for centos?

Manuel Wolfshant

wolfy at nobugconsulting.ro
Fri Jun 6 07:53:18 UTC 2014

On 06/06/2014 06:23 AM, lee wrote:
> George Dunlap <dunlapg at umich.edu> writes:
>> *I* care about the documentation that didn't work, so that other
>> people don't trip over the same thing.  :-)  If you've walked this
>> path and become frustrated, there are probably a dozen other people
>> who have also walked it and just not said anything.
> To give an example:
> 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"
> DNS1=""
> ONBOOT="yes"
> TYPE="Ethernet"
> UUID="1b645d25-9f66-4335-ba0b-939cdd9f553f"
> [root at charon ~]# cat /etc/sysconfig/network-scripts/route-eth0
> via 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 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 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 "" is a garbage.
explained by the syntax error from the second line in route-eth0

> [  OK  ]
> [root at charon ~]# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> [root at charon ~]#
explained by the fact that your route-eth0 file doesn't contain any 
correct line

More information about the CentOS-virt mailing list