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

路由器用途 Solaris8 雙網(wǎng)卡配置

前言
現(xiàn)在有一臺sun 280的服務(wù)器是192.192.192..0網(wǎng)段的 , 現(xiàn)在需要和172.172.172.0網(wǎng)段的網(wǎng)絡(luò)通訊 , 現(xiàn)在需要在Solaris上配置雙網(wǎng)卡實(shí)現(xiàn)路由器的功能 。

本人聲明如需轉(zhuǎn)載請保留如下信息:
作者:SOLARIS小兵
MAIL:solarisxb@hotmail.com
FROM:WWW.CHINAUnix.NET

一、 系統(tǒng)環(huán)境:
1、 應(yīng)用目的說明:
現(xiàn)在所有的應(yīng)用都是192網(wǎng)段的服務(wù)器 , 現(xiàn)在配置sun服務(wù)器雙網(wǎng)卡的目的是通過sun服務(wù)器 , 192網(wǎng)段的所有服務(wù)器通過sun服務(wù)器訪問172.172.172.170.

設(shè)置目的:192.192.192.3和192.192.192.151都可以ping通172.16.128.170

2、 系統(tǒng)網(wǎng)絡(luò)配置:
系統(tǒng)現(xiàn)在有兩塊網(wǎng)卡:分別是hme0和eri0 , 打算hme0配192網(wǎng)段 , eri0配置172網(wǎng)段 。
網(wǎng)卡配置:
bash-2.03# ifconfig -a
lo0: flags=19200849 mtu 8232 index 1 inet 127.0.0.1 netmask ff000000

eri0: flags=19200843 mtu 1500 index 2 inet 172.172.172.33 netmask

ffffff00 broadcast 172.16.255.255 ether 0:3:ba:29:cf:3a
hme0: lags=19200843 mtu 1500 index 3 inet 192.192.192..2 netmask ffffff00 broadcast 192.192.192..255 ether 0:3:ba:29:cf:3a
bash-2.03#

3、 系統(tǒng)路由表配置:
路由配置:
bash-2.03# netstat -nr
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.192.192..0 192.192.192..2 U 1 19 hme0
172.172.172.0 172.172.172.33 U 1 192 eri0
172.172.172.0 192.192.192..2 UG 1 0
224.0.0.0 192.192.192..2 U 1 0 hme0
default 192.192.192..1 UG 1 16
127.0.0.1 127.0.0.1 UH 2 5382 lo0
bash-2.03#
說明:
默認(rèn)路由:192.192.192..1(互聯(lián)網(wǎng)線路路由)
172.172.172.33(外聯(lián)172網(wǎng)段路由)

4、 Solaris網(wǎng)絡(luò)更改:
保證網(wǎng)絡(luò)轉(zhuǎn)發(fā)打開默認(rèn)是關(guān)閉的:
#ndd -set /dev/ip ip_forwarding 1
#ndd -set /dev/ip ip_forward_directed_broadcasts 1
#ndd -set /dev/ip ip_forward_src_routed 1

5、 Windows客戶端192.192.192..151測試:
Windows系統(tǒng)需要添加靜態(tài)路由:
route add 172.172.172.0 mask 255.255.255.0 192.192.192..2

6、 從Windows客戶端192.192.192..151測試:

C:Documents and Settingsguyhu>ping 192.192.192..2
Reply from 192.192.192..2: bytes=32 time<1ms TTL=255

C:Documents and Settingsguyhu>ping 172.172.172.33
Reply from 172.172.172.33: bytes=32 time<1ms TTL=255

C:Documents and Settingsguyhu>ping 172.172.172.170
Reply from 172.172.172.170: bytes=32 time=5ms TTL=254
C:Documents and Settingsguyhu>

7、 總結(jié):
配置過程中一定要添加“#ndd -set /dev/ip ip_forwarding 1“ , 這個(gè)很重要 。


    推薦閱讀