user 表示調(diào)用服務(wù)的用戶名 。
server_pathname 表示inetd在響應(yīng)相關(guān)服務(wù)請(qǐng)求時(shí)必須調(diào)用的 服務(wù)程序的完整路徑名 。
Args 該域包括服務(wù)的程序所使用的命令行參數(shù) 。即以程序名開 始 , 然后跟隨用戶設(shè)置的參數(shù) 。
第三章 路由和網(wǎng)關(guān)
1. /etc/defaulrouter文件
配置缺省網(wǎng)關(guān)
防止不必要的路由進(jìn)程
適用于只有一個(gè)路由器通向其它網(wǎng)段
單一路由占用較小的路由表資源
該文件保存了缺省路由得信息 。系統(tǒng)安裝時(shí)并沒有該文件 , 是用戶自己創(chuàng)建的 。文件內(nèi)容是缺省路由的地址 。
#cat /etc/defaultrouter
172.16.255.254
優(yōu)點(diǎn):
占用資源少 , 只有一條路由條目 。
2. /etc/gateways文件
路由表文件
net gateway metric
dest. net 目標(biāo)網(wǎng)段
router 下一跳路由器的地址
count 跳數(shù)
3. route命令
route add|delete [host|net] destination [gateway ]
Add a route
#route add net 128.50.3.0 192.168.1.1 1
Delete a route
#route delete net 128.50.2.0 192.168.12.2
4. 查看路由表
# netstat -r
Routing Table:
Destination Gateway Flags Ref Use Interface
----------- ---------- ----- --- --- ---------
localhost localhost UH 0 2272 lo0
202.96.0.0 192.168.12.1 U 3 562 le0
10.103.0.0 192.168.12.2 U 3 562 le0
#
Destination 目標(biāo)網(wǎng)絡(luò)或主機(jī)
Gateway 轉(zhuǎn)發(fā)數(shù)據(jù)包的主機(jī)
Flags 這條路由的狀態(tài) , 這個(gè)參數(shù)有這樣幾個(gè)選項(xiàng):
U 端口處于激活狀態(tài)(up)
H 目標(biāo)是個(gè)主機(jī) , 而不是網(wǎng)段
Ref 同一個(gè)網(wǎng)絡(luò)接口地址擁有的路由條目數(shù)量
Use 通過這條路由的包數(shù)量 , 對(duì)于localhost來說 , 這個(gè)數(shù)字代表 所有接收的包數(shù)量
Interface 路由的網(wǎng)絡(luò)接口
第四章 DNS客戶端的設(shè)置
1. /etc/resolv.conf文件
記錄DNS服務(wù)器的地址和域名
關(guān)鍵字:
domainname
nameserver
# more /etc/resolv.conf
nameserver 172.16.255.3
domainname sunrise.com.cn
2. /etc/nsswitch.conf文件
記錄主機(jī)名的搜索順序等信息
# more /etc/nsswitch.conf
#
# /etc/nsswitch.dns:
#
# An example file that could be copIEd over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
passwd: files
group: files
# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files dns
ipnodes: files
…
…
將這個(gè)文件的hosts記錄配置成hosts: files dns
3. nslookup命令
用于查詢DNS服務(wù)器
用于驗(yàn)證客戶端的設(shè)置
用于下載DNS數(shù)據(jù)庫
# nslookup
Default Server: ns.zjhzptt.net.cn
Address: 202.96.96.68
> www.sun.com
Server: ns.zjhzptt.net.cn
Address: 202.96.96.68
Non-authoritative answer:
Name: www.sun.com
Address: 192.18.97.241
>
啟動(dòng)時(shí) , nslookup缺省地以本地服務(wù)器為目標(biāo) 。響應(yīng)中包括目標(biāo)服務(wù)器的名字和地址 。
>是提示符 , 這意味著可以開始發(fā)送名字服務(wù)詢問或配置 。
請(qǐng)大家好好學(xué)習(xí) , 在為新人指點(diǎn) , 我們一起努力
推薦閱讀
- 第十一章:磁盤配置和命名 Solaris系統(tǒng)管理培訓(xùn)
- for Solaris RoseHA快速安裝指引
- 1 solaris基礎(chǔ)和常用知識(shí)
- solaris磁帶設(shè)備使用方法總結(jié)
- 4 Solaris高級(jí)系統(tǒng)管理員指南
- 公共基礎(chǔ)課是什么意思
- 1 Solaris9下安裝vsftpd2.0.1詳解
- SUN SOLARIS 基準(zhǔn)安全清單
- 在東芝Satellite Pro M10 安裝配置solaris X86, JDS, Redhat和Windows
- 路由器用途 Solaris8 雙網(wǎng)卡配置
