Sean Hincheeinitial push75d07b48 years agoHistory
1860 lines · 16.0 KB · HTML
RawDownload
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />	<meta name="keywords" content="9p, 9p2000, research, Plan 9, Inferno, Unix, Open Source, Bell Labs" />	<meta name="description" content="Open source distributed operating system Plan 9 from Bell Labs." />	<link rel="stylesheet" href="/wiki-style.css" media="all" type="text/css" />	<title>Network Configuration (Diff)</title></head><body><h1><a name="top"></a>Network Configuration <i>-Diff-</i></h1> <div class='body'> <!-- ***************************** --> <hr /><div class='diff_head'><a href="index.html">Thu Aug  9 07:49:09 EDT 2007</a>, glenda</div><hr />Thefirstsectionofthispagedescribesthesimplestpossiblesetupforastandaloneterminal,therestofthepagedescribeshowtosetupmorecomplexPlan9network.<a name="STANDALONE_TERMINAL_NETWORK_SETUP" /><h3>STANDALONE TERMINAL NETWORK SETUP</h3> <p class='para'>Toconfigureyournetworkconnectiononastandaloneterminalyouonlyneedtocall<a href="http://plan9.bell-labs.com/magic/man2html/8/ipconfig"><i>ipconfig</i>(8)</a>andrunndb/dns-r.</p> <p class='para'>IfyouhaveDHCPjustrun:<pre>	ip/ipconfig</pre> </p> <p class='para'>Ortoexplicitlysettheconfiguration:<pre>	ip/ipconfig -g &lt;your-gateway&gt; ether /net/ether0 &lt;your-ip-address&gt; &lt;your-subnet-mask&gt;</pre> </p> <p class='para'>Aftercallingipconfigmakesuretorunndb/dns-rtoenablednsresolution.</p> <p class='para'>Tomakethisconfigurationpermanentedityour/rc/bin/termrccommentingoutandediting(ifneeded)thecorrespondinglinesthatcall<a href="http://plan9.bell-labs.com/magic/man2html/8/ipconfig"><i>ipconfig</i>(8)</a>.</p> <p class='para'>Youcanuseip/pingtotestthatyournetworkconnectionisworkingproperly.Ifyouhaveproblemsseethe"troubleshooting"sectionbelow.</p> <a name="NETWORK_DATABASE" /><h3>NETWORK DATABASE</h3> <p class='para'>Plan9usesasingledatabaseforstoringallthenetwork-relatedconfigurationinformationinthesystem.</p> <p class='para'>Thedatabasestorestheconfigurationformachinesspecificallyidentifiablebythelocalinstallation,defaultconfigurationsformachinesinparticularsubnets,domainnameresolutioninformation,andmappingsbetweenTCPservicenamesandportnumbersamongotherthings.</p> <p class='para'>Thedatabaseisassembledfromanumberoftextfilesbearingaparticularrecordstructure.</p> <p class='para'>Thedefaultrootofthedatabaseisthetextfile/lib/ndb/local.Themostimportantentryinthatfileisthe``database=''entry,whichspecifiesalistofotherfilestoinclude.Forexample,<pre>database=	file=/lib/ndb/local	file=/lib/ndb/local-cs	file=/lib/ndb/common</pre> </p> <p class='para'>Itisfromthecontentsofthisfileandthoseinthelistthatthedatabaseisassembled.Thesefilesaretypicallyusedbyndb/cscommandsinthestartupscripts(e.g./rc/bin/cpurc).</p> <p class='para'>Conventionally,thefile/lib/ndb/commonisforstandardportdefinitionsandthelike;theotherfilesholdactualsystemconfiguration.</p> <a name="RECORD_STRUCTURE" /><h3>RECORD STRUCTURE</h3> <p class='para'>Lexically,arecordisanunindentedlinefollowedbyaseriesofindentedlines.Thusanunindentedline,ablankline,oracommentline(onebeginningwith#)endsarecord.</p> <p class='para'>Semantically,arecordisaseriesof``key=value''tuples.Tuplesonthesamelinebindslightlymoretightlythantuplesondifferentlines,butusuallythat'snotimportant.</p> <p class='para'>Anexamplerecordis:<pre>	ip=10.247.62.235 ip=10.247.60.200 sys=lusitania ether=0060088bc416		proto=il		dom=lusitania.domain.dom</pre> </p> <p class='para'>Thisrecorddefinesasystemnamed``lusitania''withaspecifiedethernetaddress,twoIPaddresses,andafullyqualifieddomainname.The``proto=il''tupleindicatesthatthesystemspeaksIL,thePlan9transportprotocolofchoice.Bydefault,systemsareassumedonlytospeakTCP.</p> <p class='para'>Otherusefulattributesinclude:<pre>	auth           default Plan 9 authentication server	cpu            default Plan 9 cpu server	dns            default DNS server (can be more than one)	dnsdomain      default DNS domain suffix (can be more than one)	fs             default Plan 9 file server	ipgw           IP gateway	ipmask         IP network mask	ipsubmask      IP subnetwork mask	ntp            default NTP server	nntp           default NNTP server	smtp           default SMTP server</pre> </p> <a name="IP_HIERARCHY_WALKING" /><h3>IP HIERARCHY WALKING</h3> <p class='para'>Mostinformationinthedatabaseisnotstoredineach

Lines 1–500 of 1860.