linux中dhcp的安裝,設定及ip驗證

2021-08-19 08:36:25 字數 1298 閱讀 2041

dhcp設定

在desktop下:

yum search dhcp   ####尋找dhcp包

yum install dhcp.x86_64 -y    ####安裝dhcp包

vim /etc/dhcp/dhcpd.conf      ###複製   /usr/share/doc/dhcp/dhcpd.conf.example

cp      /usr/share/doc/dhcp/dhcpd.conf.example     /etc/dhcp/dhcpd.conf

vim /etc/dhcp/dhcpd.conf      ####配置dhcp

7 option domain-name "example.com";  ##網域名稱

8 option domain-name-servers 114.114.114.114;   ## dns設定

## 26,27,28行沒用,刪除

## 配置三十到三十三行

subnet 172.25.254.0  netmask 255.255.255.0 {  ##子網ip 子網掩碼

range 172.25.254.200 172.25.254.210;    ##位址池(給予ip位址的範圍)

option routers 172.25.254.250     ##閘道器

配置好後開啟dhcp並且讓其開機啟動

systemctl start dhcpd  ##開啟dhcpd服務

systemctl enable dhcpd ##設定開機自啟動dhcpd服務

在server下:

重置server(拔掉網線)

ifconfig eth0 ##檢視是否有ip位址

在desktop中用 cat /var/lib/dhcpd/dhcpd.leases檢視hardware enternet是否與server ip中ether相對應

FastMM 安裝設定

fastmm 在d2006和2007中已代替了原來的記憶體管理器。d7也可以使用,而且很方便哦。請看步驟 1.fastmm是開源專案,去她老家先拖個來.我使用的是fastmm.v4.86.2.資料夾replacement borlndmm dll precompiled for delphi ide...

Memcached安裝設定

what is memcached?安裝依賴 memcached依賴libevent,需要先安裝libevent包 yum install libevent devel wget files memcached 1.4.21.tar.gz tar zxvf memcached 1.4.21.tar....

Ubuntu Gitosis安裝設定

gitosis就是一套用來管理 authorized keys 檔案和實現簡單連線限制的指令碼。用來新增使用者和設定許可權的並非通過網頁程式,而只是管理乙個特殊的 git倉庫。你只需要在這個特殊倉庫內做好相應的設定,然後推送到伺服器上,gitosis 就會隨之改變執行策略。sudo apt get ...