DHCP

#yum -y install dhcp
#yum安装比较方便版本差异不大


#cd /etc
#cat /usr/share/doc/dhcp*/dhcpd.conf.sample >> dhcpd.conf

#cat dhcpd.conf |grep -v "#"

ddns-update-style interim;
ignore client-updates;

#以下为全局配置
option domain-name-servers      172.30.4.4,172.31.7.7;
option nis-domain               "cyberstep.dev";
option domain-name              "cyberstep.dev";

#subnet hosts中没有设置的话以全局变量配置为主,有侧覆盖
#Summit X450中划分了VLAN Subnet对应Summit中的VLAN


subnet 172.16.0.0 netmask 255.255.0.0 {
        option routers                  172.16.0.1;
        option subnet-mask              255.255.0.0;
}

subnet 172.17.0.0 netmask 255.255.0.0 {
        option routers                  172.17.0.1;
        option subnet-mask              255.255.0.0;
}

subnet 172.18.0.0 netmask 255.255.0.0 {
        option routers                  172.18.0.1;
        option subnet-mask              255.255.0.0;
}

subnet 172.19.0.0 netmask 255.255.0.0 {
        option routers                  172.19.0.1;
        option subnet-mask              255.255.0.0;
}

subnet 172.20.0.0 netmask 255.255.0.0 {
        option routers                  172.20.0.1;
        option subnet-mask              255.255.0.0;
}

subnet 172.21.0.0 netmask 255.255.0.0 {
        option routers                  172.21.0.1;
        option subnet-mask              255.255.0.0;
}

subnet 172.30.0.0 netmask 255.255.0.0 {
        option routers                  172.30.0.1;
        option subnet-mask              255.255.0.0;
}

subnet 172.31.0.0 netmask 255.255.0.0 {
        option routers                  172.31.0.1;
        option subnet-mask              255.255.0.0;
}

#让DHCP只LISTEN eth0
#vi /etc/sysconfig/dhcpd
#DHCPDARGS="eth0"

#service dhcpd start
#启动dhcp
/var/lib/openshift/bccd8eac1968476490eaee9ced33c7bf/app-root/runtime/repo/php/data/pages/dhcp.txt · 最后更改: 2012/09/07 09:21 (外部编辑)
到顶部
CC Attribution-Noncommercial-Share Alike 3.0 Unported
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0