LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   i have a problem with creating scopes and polices in Centos vmware kickstart (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/i-have-a-problem-with-creating-scopes-and-polices-in-centos-vmware-kickstart-804560/)

the student 04-27-2010 12:53 PM

i have a problem with creating scopes and polices in Centos vmware kickstart
 
please can some one tell me where i have gone wrong?

thanks in advance


option domain-name-servers 148.197.x.x;
option root-path "/usr/kick";
ddns-update-style ad-hoc;

subnet 148.197.x.x netmask 255.255.255.0 {
# Note: subnet declaration for eth2
}



subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
#option log-servers 148.197.x.x;
use-host-decl-names on;
default-lease-time 1800;
max-lease-time 72000;
# pxeboot image
filename "/tftpboot/linux-install/pxelinux.0" ;
next-server 192.168.1.1;


range 192.168.1.10 192.168.1.100;

#scope for 192.168.1.0/24
subnet 192.168.1.0 netmask 255.255.255.0 {

deny unknown-clients;


host VKickstart1{
hardware ethernet 00:0C:29:DE:1D:10;
# Following not required for PXEboot only DVD based kickstart
filename "/usr/kick/ks.cfg";
}


#scope for 192.168.2.0/24
subnet 192.168.1.0 netmask 255.255.255.0 {

deny unknown-clients;


host VKickstart2{
hardware ethernet 00:0C:29:46:CF:D2;

filename "/usr/kick/ks.cfg";
}

host VKickstart3{
hardware ethernet 00:0C:29:58:5D:9F;

#filename "/usr/kick/ks.cfg";
}


}

the student 04-28-2010 08:35 AM

Quote:

Originally Posted by the student (Post 3949519)
please can some one tell me where i have gone wrong?

thanks in advance


option domain-name-servers 148.197.x.x;
option root-path "/usr/kick";
ddns-update-style ad-hoc;

subnet 148.197.x.x netmask 255.255.255.0 {
# Note: subnet declaration for eth2
}



subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
#option log-servers 148.197.x.x;
use-host-decl-names on;
default-lease-time 1800;
max-lease-time 72000;
# pxeboot image
filename "/tftpboot/linux-install/pxelinux.0" ;
next-server 192.168.1.1;


range 192.168.1.10 192.168.1.100;

#scope for 192.168.1.0/24
subnet 192.168.1.0 netmask 255.255.255.0 {

deny unknown-clients;


host VKickstart1{
hardware ethernet 00:0C:29:DE:1D:10;
# Following not required for PXEboot only DVD based kickstart
filename "/usr/kick/ks.cfg";
}


#scope for 192.168.2.0/24
subnet 192.168.1.0 netmask 255.255.255.0 {

deny unknown-clients;


host VKickstart2{
hardware ethernet 00:0C:29:46:CF:D2;

filename "/usr/kick/ks.cfg";
}

host VKickstart3{
hardware ethernet 00:0C:29:58:5D:9F;

#filename "/usr/kick/ks.cfg";
}


}

help

10110111 04-28-2010 09:06 AM

Why do you quote the only post?

Quote:

i have a problem with creating scopes and polices in Centos vmware kickstart
please can some one tell me where i have gone wrong?
What exactly problem do you have and what are you trying to achieve?

the student 04-28-2010 11:06 AM

I'm really trying to understand how i can show scopes and policies.I thought maybe I could show it by limiting certain systems that boot in a range within a range(scope) to have like a less lease time than another set of systems. Does this make any sense?

the student 04-28-2010 02:16 PM

Quote:

Originally Posted by the student (Post 3950698)
I'm really trying to understand how i can show scopes and policies.I thought maybe I could show it by limiting certain systems that boot in a range within a range(scope) to have like a less lease time than another set of systems. Does this make any sense?


I have ow done something like this. I havent tried it yest but its the logic i'm working with for anyone to correct me.


#scope for 192.168.1.0/24
subnet 192.168.1.0 netmask 255.255.255.0 {

default-lease-time 86400;
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;


group {
filename "linux-install/pxelinux.0"; # name of the bootloader program

host VKickstart1 {

#scope for 192.168.1.0/24
subnet 192.168.1.0 netmask 255.255.255.0 {

default-lease-time 55000;
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;
hardware ethernet 00:0C:29:DE:1D:10;


}
host VKickstart2 {
hardware ethernet 00:0C:29:46:CF:D2;

#scope for 192.168.1.0/24
subnet 192.168.1.0 netmask 255.255.255.0 {

default-lease-time 44000;
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;

}

host VKickstart3 {
hardware ethernet 00:0C:29:58:5D:9F;


#scope for 192.168.1.0/24
subnet 192.168.1.0 netmask 255.255.255.0 {

default-lease-time 22000;
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;

}


All times are GMT -5. The time now is 01:37 AM.