MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap
Revision 2 as of 2013-10-18 14:51:15
  • dhcpd

dhcpd

Program that operates as a daemon on a server to provide Dynamic Host Configuration Protocol (DHCP) service to a network.

Configuration to push extra static route

Extra static route to network 10.0.0.0/24 through router 192.168.1.128.

File /etc/dhcp/dhcpd.conf on CentOS 6.3:

ddns-update-style none;
default-lease-time 600; # 10 minutes
max-lease-time 3600; #one hour
authoritative;

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.100 192.168.1.240;
  option routers 192.168.1.1; #default router
  option domain-name-servers 8.8.8.8, 8.8.4.4;
  option broadcast-address 192.168.1.255;
}
# extra router 
option classless-routes code 121 = array of unsigned integer 8;
option classless-routes 24, 10,0,0, 192,168,1,128;
option classless-routes-win code 249 = array of unsigned integer 8;
option classless-routes-win 24, 10,0,0, 192,168,1,128;

Add routes to routers on machines

Linux: route add -net 10.196.0.0 netmask 255.255.0.0 gw 192.168.1.134

Windows:route ADD 10.196.0.0 MASK 255.255.0.0 192.168.1.134

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01