[{"data":1,"prerenderedAt":175},["ShallowReactive",2],{"term-d\u002Fdhcp":3,"related-d\u002Fdhcp":159},{"id":4,"title":5,"acronym":6,"body":7,"category":140,"description":141,"difficulty":142,"extension":143,"letter":144,"meta":145,"navigation":65,"path":146,"related":147,"seo":152,"sitemap":153,"stem":156,"subcategory":157,"__hash__":158},"terms\u002Fterms\u002Fd\u002Fdhcp.md","DHCP","Dynamic Host Configuration Protocol",{"type":8,"value":9,"toc":134},"minimark",[10,15,19,23,26,30,123,127,130],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"DHCP is the system that automatically assigns IP addresses to devices when they join a network. When your phone connects to WiFi, it sends out a request like 'I need an IP address!' and the DHCP server says 'here, use 192.168.1.42' — automatically, no setup needed.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"DHCP is a network protocol that automatically assigns IP addresses and other network configuration (subnet mask, gateway, DNS servers) to devices on a network. The process is DORA: Discover, Offer, Request, Acknowledge. Assignments are called leases and expire after a set time.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Check DHCP lease info on Linux\ncat \u002Fvar\u002Flib\u002Fdhcp\u002Fdhclient.leases\n\n# Or with ip command\nip addr show eth0\n\n# DHCP lease info shows:\n# IP address assigned\n# Lease duration\n# DNS servers\n# Default gateway\n","bash","",[38,39,40,49,60,67,73,88,93,99,105,111,117],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","# Check DHCP lease info on Linux\n",[41,50,52,56],{"class":43,"line":51},2,[41,53,55],{"class":54},"sBMFI","cat",[41,57,59],{"class":58},"sfazB"," \u002Fvar\u002Flib\u002Fdhcp\u002Fdhclient.leases\n",[41,61,63],{"class":43,"line":62},3,[41,64,66],{"emptyLinePlaceholder":65},true,"\n",[41,68,70],{"class":43,"line":69},4,[41,71,72],{"class":47},"# Or with ip command\n",[41,74,76,79,82,85],{"class":43,"line":75},5,[41,77,78],{"class":54},"ip",[41,80,81],{"class":58}," addr",[41,83,84],{"class":58}," show",[41,86,87],{"class":58}," eth0\n",[41,89,91],{"class":43,"line":90},6,[41,92,66],{"emptyLinePlaceholder":65},[41,94,96],{"class":43,"line":95},7,[41,97,98],{"class":47},"# DHCP lease info shows:\n",[41,100,102],{"class":43,"line":101},8,[41,103,104],{"class":47},"# IP address assigned\n",[41,106,108],{"class":43,"line":107},9,[41,109,110],{"class":47},"# Lease duration\n",[41,112,114],{"class":43,"line":113},10,[41,115,116],{"class":47},"# DNS servers\n",[41,118,120],{"class":43,"line":119},11,[41,121,122],{"class":47},"# Default gateway\n",[11,124,126],{"id":125},"when-youll-hear-this","When You'll Hear This",[16,128,129],{},"\"The server needs a static IP — take it out of the DHCP pool.\" \u002F \"DHCP leases expire every 24 hours on this network.\"",[131,132,133],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":51,"depth":51,"links":135},[136,137,138,139],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":125,"depth":51,"text":126},"networking","DHCP is the system that automatically assigns IP addresses to devices when they join a network.","beginner","md","d",{},"\u002Fterms\u002Fd\u002Fdhcp",[148,149,150,151],"IP Address","Subnet","NAT","DNS",{"title":5,"description":141},{"changefreq":154,"priority":155},"weekly",0.7,"terms\u002Fd\u002Fdhcp",null,"uT7680ZNShs6tJkBtGMpyvWuPN58VifqVz-mzkkoGTI",[160,164,167,172],{"title":151,"path":161,"acronym":162,"category":140,"difficulty":142,"description":163},"\u002Fterms\u002Fd\u002Fdns","Domain Name System","DNS is the internet's phonebook. You type 'google.",{"title":148,"path":165,"acronym":157,"category":140,"difficulty":142,"description":166},"\u002Fterms\u002Fi\u002Fip-address","An IP address is your device's home address on the internet.",{"title":150,"path":168,"acronym":169,"category":140,"difficulty":170,"description":171},"\u002Fterms\u002Fn\u002Fnat","Network Address Translation","intermediate","NAT is how your home router lets all your devices share one public IP address. Your phone, laptop, and TV each get a private IP (192.168.x.",{"title":149,"path":173,"acronym":157,"category":140,"difficulty":170,"description":174},"\u002Fterms\u002Fs\u002Fsubnet","A subnet is a smaller chunk of a larger network, like dividing a city into neighborhoods. All devices in a subnet can talk to each other directly.",1776518271644]