日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

solaris常用網(wǎng)絡(luò)文件配置( 二 )


Args 該域包括服務(wù)的程序所使用的命令行參數(shù) 。即以程序名開 始,然后跟隨用戶設(shè)置的參數(shù) 。
路由和網(wǎng)關(guān)
1. /etc/defaulrouter文件
配置缺省網(wǎng)關(guān)
防止不必要的路由進程
適用于只有一個路由器通向其它網(wǎng)段
單一路由占用較小的路由表資源
該文件保存了缺省路由得信息 。系統(tǒng)安裝時并沒有該文件,是用戶自己創(chuàng)建的 。文件內(nèi)容是缺省路由的地址 。#cat /etc/defaultrouter
172.16.255.254優(yōu)點:
占用資源少,只有一條路由條目 。
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.24. 查看路由表# 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ò)或主機
Gateway 轉(zhuǎn)發(fā)數(shù)據(jù)包的主機
Flags 這條路由的狀態(tài),這個參數(shù)有這樣幾個選項:
U 端口處于激活狀態(tài)(up)
H 目標(biāo)是個主機,而不是網(wǎng)段
Ref 同一個網(wǎng)絡(luò)接口地址擁有的路由條目數(shù)量
Use 通過這條路由的包數(shù)量,對于localhost來說,這個數(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.cn2. /etc/nsswitch.conf文件
記錄主機名的搜索順序等信息# 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

…將這個文件的hosts記錄配置成hosts: files dns
3. nslookup命令
用于查詢DNS服務(wù)器
用于驗證客戶端的設(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>
啟動時,nslookup缺省地以本地服務(wù)器為目標(biāo) 。響應(yīng)中包括目標(biāo)服務(wù)器的名字和地址 。
【solaris常用網(wǎng)絡(luò)文件配置】>是提示符,這意味著可以開始發(fā)送名字服務(wù)詢問或配置 。

推薦閱讀