[CentOS-virt] xen setup documentation for centos?
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:
> [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
> [ 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
More information about the CentOS-virt