⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 boot.8

📁 minix操作系统最新版本(3.1.1)的源代码
💻 8
📖 第 1 页 / 共 2 页
字号:
.PP.RSStandalone with no connection to a network..SPIn a small network with no support from a "big" host..SPConnected to a large network with address and name servers..RE.PPIn each situation you need a different set of configuration files..SS StandaloneAll you need is a name and an IP address.  Suppose the name is "flotsam"and the IP address is 192.168.0.1 from the private IP space, then this isput in.BR /etc/hosts :.PP.RS.ta +\w'192.168.0.1'u+3n192.168.0.1	flotsam.RE.PPAnd this in.BR /etc/dhcp.conf :.PP.RS.nfhost 192.168.0.0/24 {};interface ip0 flotsam;.fi.RE.SS "Small Network"A network requires an ethernet driver.  You need to enable one in<minix/config.h> and you need to tell.B inetthat it should use that driver by making.B /etc/inet.conflook like this:.PP.RS.nfeth0 DP8390 0 { default; };.fi.RE.PPThe second word (DP8390) must the name of the ethernet driver you've enabled.It can also be seen among the drivers in the output of.BR "ps ax" .See also.BR inet (8)..PPIn a small network there may not be a DHCP server for MINIX 3 to obtain its IPaddress and name from, so you need specify the ethernet address of your machineand host names of all machines in the hosts and DHCP configuration files.Suppose your machine is to be named "flotsam", and another machine in thenetwork is named "jetsam", and let's use network 192.168.0.0/24 again.  Thefile.B /etc/hostsnow looks like this:.PP.RS.ta +\w'192.168.0.1'u+3n.nf192.168.0.1	flotsam192.168.0.2	jetsam.fi.RE.PPAnd.B /etc/dhcp.conflike this:.PP.RS.nfhost 192.168.0.0/24 {};client 0:1:1b:a:68:ce flotsam;.fi.RE.PPUse.B hostaddr \-eto find out what the ethernet address of your network card is.  (The addressabove is an example.).PPA host needs to have all hostnames used on your little network in itshost file.  In the DHCP configuration you only need the client entry of thesystem itself, but it may be useful to add all client entries to make them allthe same..PPIf one of the machines is always on when any of the others is, then you can letit be a DHCP server.  The other machines don't need a hosts or DHCP fileanymore.  If flotsam is the server then its.BR /etc/dhcp.conflooks like this:.PP.RS.nf.ta +4mhost 192.168.0.0/24 {	DNSserver flotsam;};client 0:1:1b:a:68:ce flotsam { option server; };client 0:0:c0:3a:12:10 jetsam;.fi.RE.SS "Large Network"In a network with a central network administration your machine's IP addressand name are given by the DHCP server.  You don't need any configurationfiles.  If you want your machine to do more, like being a router orsomething, then see.BR inet (8)on setting up more than one network interface..PP.SS "Simpler configuration tools"The.BR dhcpdand.BR nonameddaemons are complex little programs that try to obtain information abouttheir surroundings automatically to tell the machine what its place in thenetwork is.  It should come as no surprise that there are simpler utilitiesto configure a machine.  On a memory starved machine it may even be wise toconfigure a machine statically to get rid of the daemons.  The first daemon,.BR dhcpd ,can be replaced by:.PP.RS.B ifconfig \-h.I host-IP-address.B \-n.I netmask.br.B add_route \-g.I gateway-IP-address.RE.PPto set the IP address and netmask of the machine.  Note that you can onlydo this if the machine has a static IP address, or chaos will follow.  Remove.BR /usr/adm/dhcp.cacheif the DHCP daemon has run before..PPThe name daemon,.BR nonamed ,can be replaced by an entry in.B /etc/resolv.confthat specifies an external name daemon:.PP.RS.B nameserver.I nameserver-IP-address.RE.PPThe.B ifconfigand.B add_routecalls can be placed in the file.BR /etc/rc.net .Check.B /usr/etc/rcto see how.BR /etc/rc.netcan be used to override running the normal series of network deamons.Note that.BR /etc/rc.netis sourced, so you can use the same variables and functions that.BR /usr/etc/rcuses.These changes undo all the efforts to make MINIX 3 TCP/IPautoconfigurable.  Make very sure that all the IP addresses are correct, andthat the IP address of your machine is unique.  (Mistakenly using theaddress of a main server will make all other machines look at your machine,and will make all the users of all other machines look at you.).SH FILES.TP 20n/bootMINIX 3 Boot Monitor..TP/minixKernel image, or directory containing them..TP/etc/rcBasic system initialization..TP/usr/etc/rcComplete system initialization..TP/etc/rc.netSpecialized network initialization..TP/usr/local/etc/rcPer site initialization..TP/etc/hostsName to IP address mapping..TP/etc/dhcp.confNetwork initialization..TP/etc/resolv.confName resolver configuration..SH "SEE ALSO".BR monitor (8),.BR init (8),.BR inet (8),.BR loadkeys (8),.BR readclock (8),.BR fsck (1),.BR fstab (5),.BR update (8),.BR cron (8),.BR ttytab (5),.BR getty (8),.BR hostaddr (1),.BR ifconfig (8),.BR dhcpd (8),.BR nonamed (8),.BR tcpd (8),.BR hosts (5),.BR ethers (5),.BR resolv.conf (5),.BR inet (8)..SH DIAGNOSTICS.TP 5nChecking File Systems.If the system has crashed then.B fsckis called for the root and /usr file systems.  It is wise to reboot if theroot file system must be fixed..TPFinish the name of device to mount as /usr: /dev/The prompt for the.B \-aoption, or if the name of the /usr file system has not been set in /etc/fstab.You can type a device name, say.BR fd0 ..TPUnable to obtain an IP address after 10 seconds.TCP/IP misconfiguration.  The DHCP daemon may have failed because the ethernetaddress of the machine is not known to the DHCP server, the DHCPconfiguration is not filled in properly, or the DHCP server can not be reached.Either talk to your Network Administrator, or make a dhcp.confand a hosts file..TP1.2.3.4 login:If you see an IP address instead of a host name then the system failed totranslate the IP address.  Either talk to your Network Administrator tohave the reverse address translation tables fixed, or make a hosts file..SH NOTESThe 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 networks can be used forprivate networks.  (This so-called CIDR notation names an IP address andthe number of bits in the network number.  So 172.16.0.0/12 includes alladdresses from 172.16.0.0 to 172.31.255.255.)RFC-1597 will tell you why private networks are good, and RFC-1627 whythey are bad..SH BUGSIndefinite hangs are possible if I/O addresses or IRQ's are wrong.  A drivermay babble about addresses and IRQ's, but that does not mean that what itsays is true, it may just be configured that way.  It is very difficult tofind peripherals on a PC automatically, and MINIX 3 doesn't even try..SH AUTHORKees J. Bot <kjb@cs.vu.nl>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -