الفرق بين المراجعتين لصفحة «خادوم المعسكرات المتقدم»
اذهب إلى التنقل
اذهب إلى البحث
| سطر 36: | سطر 36: | ||
sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /tmp/ldif_output/cn\=config/cn\=schema/cn\=\{0\}dhcp.ldif | sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /tmp/ldif_output/cn\=config/cn\=schema/cn\=\{0\}dhcp.ldif | ||
| + | |||
| + | |||
| + | ==kvm== | ||
| + | ===network bridge=== | ||
| + | |||
| + | sudo apt-get install bridge-utils | ||
| + | |||
| + | auto br0 | ||
| + | iface br0 inet static | ||
| + | address 192.168.50.1 | ||
| + | network 192.168.50.0 | ||
| + | netmask 255.255.255.0 | ||
| + | broadcast 192.168.50.255 | ||
| + | bridge_ports eth1 | ||
| + | bridge_stp off | ||
| + | bridge_fd 0 | ||
| + | bridge_maxwait 0 | ||
مراجعة 09:47، 29 يونيو 2012
هذه الوصفة تسعى لإنشاء خادوم يقدم إستيثاق مركزي بإستخدام LDAP، خادم تخزين مركزي وخوادم بنية شبكة (إعداد شبكة تلقائي وخادم أسماء) تستخدم إل داب.
إعداد خادم الدليل - إل داب
sudo apt-get install samba-doc smbldap-tools
sudo cp /usr/share/doc/samba-doc/examples/LDAP/samba.schema.gz /etc/ldap/schema/ sudo gzip -d /etc/ldap/schema/samba.schema.gz
cat << EOF > /tmp/schema_convert include /etc/ldap/schema/core.schema include /etc/ldap/schema/collective.schema include /etc/ldap/schema/corba.schema include /etc/ldap/schema/cosine.schema include /etc/ldap/schema/duaconf.schema include /etc/ldap/schema/dyngroup.schema include /etc/ldap/schema/inetorgperson.schema include /etc/ldap/schema/java.schema include /etc/ldap/schema/misc.schema include /etc/ldap/schema/nis.schema include /etc/ldap/schema/openldap.schema include /etc/ldap/schema/ppolicy.schema include /etc/ldap/schema/samba.schema EOF
mkdir /tmp/ldif_output
while read line; do slapcat -f /tmp/schema_convert -F /tmp/ldif_output -n0 -s "cn={$count}`echo $line | cut -f5 -d\/`,cn=schema,cn=config" ; count=`expr $count + 1`; done < /tmp/schema_convert
خادم إعداد الشبكة التلقائي (DHCP)
apt-get install dhcpd-ldap
sudo sh -c "zcat /usr/share/doc/isc-dhcp-server-ldap/dhcp.schema.gz > /etc/ldap/schema/dhcp.schema"
fix/edit the output file, then:
sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /tmp/ldif_output/cn\=config/cn\=schema/cn\=\{0\}dhcp.ldif
kvm
network bridge
sudo apt-get install bridge-utils
auto br0
iface br0 inet static
address 192.168.50.1
network 192.168.50.0
netmask 255.255.255.0
broadcast 192.168.50.255
bridge_ports eth1
bridge_stp off
bridge_fd 0
bridge_maxwait 0