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

第三章:路由和網(wǎng)關(guān) Solaris網(wǎng)絡(luò)管理培訓(xùn)

/etc/defaulrouter文件
配置缺省網(wǎng)關(guān)
防止不必要的路由進程
適用于只有一個路由器通向其它網(wǎng)段
單一路由占用較小的路由表資源

該文件保存了缺省路由得信息 。系統(tǒng)安裝時并沒有該文件 , 是用戶自己創(chuàng)建的 。文件內(nèi)容是缺省路由的地址 。
#cat /etc/defaultrouter
172.16.255.254

優(yōu)點:
占用資源少 , 只有一條路由條目 。

/etc/gateways文件
路由表文件
net gateway metric
dest. net 目標(biāo)網(wǎng)段
router 下一跳路由器的地址
count 跳數(shù)


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

查看路由表
# 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ò)接口

    推薦閱讀