DHCP相关笔记

DHCP:基于UDP 67(dhcpd) 68(dhclient)

DHCP四部工作原理:
  以广播形式进行
  DHCP Discovery
  DHCP Offer
  DHCP Request
  DHCP ACK

DHCP:lease租约
  release
  归还,到期,关机

续租:2H-->1H
  50%,75%,87.5%,DHCP Discovery
  DHCP REQUEST
  DHCP NAK

主配置文件:
  dhcpd:
  /etc/dhcpd.conf,
  指定提供服务的网卡:
  vim /etc/sysconfig/dhcpd
  EHCPDARGS=eth0

  /etc/init.d/dhcpd start|stop|status|restart

dhcrelay:
  /etc/sysconfig/dhcrelay
  /etc/init.d/dhcrelay

拷贝主配置文件:
  cd /usr/share/doc/dhcp-3.0.5/
  cp dhcpd.conf.sample /etc/dhcpd.conf

客户端命令:
  dhclient -d eth0
  killall dhclient

查看使用的IP地址:
less dhcpd.leases
less dhcpd.leases~

DHCP中继

你可能感兴趣的:(职场,笔记,休闲,hdcp)