Re: xen setup documentation for centos?

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

 



On 06/06/2014 06:23 AM, lee wrote:
> George Dunlap <dunlapg@xxxxxxxxx> 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@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@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@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@charon ~]# route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> [root@charon ~]#
explained by the fact that your route-eth0 file doesn't contain any 
correct line

_______________________________________________
CentOS-virt mailing list
CentOS-virt@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos-virt




[Index of Archives]     [CentOS Users]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Linux USB]

  Powered by Linux