2020. 5. 19. 22:26ㆍ리눅스
Centos 7 DHCP SERVER
1. 패키지 설치
2. 환경설정
3.데몬실행
4.동작확인
cd /etc/dhcp
ls
cat dhcp.conf
gedit dhcp.conf
cp /usr/share/doc/dhcp*/dhcp.conf.example ./dhcpd.conf
y
gedit dhcp.conf
cd /var/lib/dhcpd/
ls
systemctl status dhcpd
systemctl start dhcpd
gedit
dhcpd.leases ~(덤프파일 원본 파일 백업->rm -f dhcpd.leases~)
cat dhcpd.leases
yum install -y dhcp
-------
환경설정
cd /etc/dhcp
ls
gedit dhcpd.conf
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet 172.16.100.0 netmask 255.255.255.0 {
option routers 172.15.100.254;
option subnet-mask 255.255.255.0;
option broadcast-address 172.16.100.255;
range 172.16.100.100 172.16.100.150;
option domain-name-servers 168.126.63.1;
}
cat dhcpd.conf
systemctl restart dhcpd
cd /var/lib/dhcpd
ls
tail -f dhcpd.leases -> hostname " DESKTOP-xx"
맥어드레스 복사 ->172.16.100.101
'리눅스' 카테고리의 다른 글
nc (0) | 2020.05.19 |
---|---|
redhat과 debian 비교 (0) | 2020.05.19 |
sftp (0) | 2020.05.12 |
scp (0) | 2020.05.12 |
sshd접속 찾기 ,kill 명령어 사용,아이피 추적 (0) | 2020.05.12 |