服务器需要以多种方式进行设置,以便为客户端做好准备
运行命令 /sbin/ifconfig
,如果您的输出与下面类似,则您的环回和以太网卡已正确配置。
[cassie@snoball cassie]$ /sbin/ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0 UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1 RX packets:854 errors:0 dropped:0 overruns:0 frame:0 TX packets:854 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 eth0 Link encap:Ethernet HWaddr 00:AA:00:BB:BD:09 inet addr:192.168.53.1 Bcast:192.168.53.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:190369 errors:0 dropped:0 overruns:0 frame:0 TX packets:249267 errors:0 dropped:0 overruns:0 carrier:1 collisions:4793 Interrupt:5 Base address:0x320
如果不是...
在这里,服务器向客户端的请求发出 IP 地址
/etc/dhcpd.conf
文件在您有匹配的 MAC 地址时分配静态 IP 地址。MAC 地址是赋予 NIC 的唯一“号码”。“号码”的开头基于制造商,如果您在卡上没有贴纸,请尝试从 eprom 或软盘加载 rom 映像,看看它报告什么。(请参阅客户端设置)#/etc/dhcpd.conf subnet 192.168.35.0 netmask 255.255.255.0 { option domain-name "gundog.net"; range dynamic-bootp 192.168.35.128 192.168.35.255; default-lease-time 21600; max-lease-time 43200; } host 286 { filename "/tftpboot/kermit.nb"; hardware ethernet 00:80:c8:22:ae:de; fixed-address 192.168.35.70; } host elite { filename "/tftpboot/vmlinuz.xterm"; hardware ethernet 00:00:79:80:34:c9; fixed-address 192.168.35.23; option host-name "elite";
/etc/hosts
文件将 IP 地址解析为主机名#etc/hosts 127.0.0.1 localhost localhost.localdomain 192.168.53.1 snoball snoball.gundog.net 192.168.53.23 elite elite.gundog.net
简单 ftp - 在您获得 IP 地址后,您的客户端请求内核,这通过以太网传递。
/etc/inetd.conf
中处于活动状态,典型行tftp dgram udp wait root /usr/sbin/tcpd in.tftpd -s /tftpboot
重启 inetd,kill -HUP “inetd 的进程 ID”
您必须为客户端编译一个内核,其中包含 NFS 支持和为该客户端编译的 NIC 驱动程序(而不是模块)。对NFS 上的根文件系统?和BOOTP 支持?回答“是”。
构建内核后,从 Etherboot 发行版中在其上运行 mknbi-linux。(netboot/linux 目录中的 mknbi 程序)将此标记的镜像安装为 /tftpdir/“vmlinuz.xterm”。
请参阅 etherboot-4.2/doc/html/README-3.html
我应该把我的副本放在某个地方供下载吗?RH6.0 ne2000 NIC
允许任何人以及任何事物在您的计算机上运行服务和进程是最容易的,但总有一天您会后悔的。您可以通过您的 /etc/hosts.deny 限制这些,并通过 /etc/hosts.allow 具体恢复权限,指示性示例
#hosts.deny # all except those in hosts.allow ALL:ALL #hosts.allow #only hosts within my domain and my host at home. ALL:LOCAL, 192.168.53. #<-- note:no space after :
更多安全性 - 在 ldp-howto 中查找更多信息,如果您正在使用 etherboot,请在其安全性 howto 中查找更多信息。