歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> solaris上網配置

solaris上網配置

日期:2017/2/28 11:09:34   编辑:關於Unix


運行命令ifconfig -a, 只發現lo0接口,沒有發現網卡。
一.識別網卡
1. 使用 /usr/X11/bin/scanpci 查看系統上的PCI設備:
................vendor 0x8086 device 0x1050 Intel Corporation PRO/100 VE Network Connection
2. 編輯/etc/driver_aliases,增加以下內容
iprb "pci8086,1050" (iprb是intel網卡的接口名,後面的id是剛剛用scanpic查到的 8086是venderid)
3. /boot/solaris/devicedb/master文件,加入以下內容:
pci8086,1050 pci8086,1050 net pci iprb.bef "Intel Pro/100 VE Network Connection"
4. 運行devlinks
5. 運行touch /reconfigure
6.編輯/etc/hostname.iprb0, 文件內容是你的主機名比如ZSol。(如果用的是IPv6,那麼要編輯的是hostname6.iprb0文件)
7. 配置主機名:
(1)運行/usr/lib/mail/sh/check-hostname
(2)獲取root權限
(3)chmod 644 /etc/inet/hosts
(4)gedit /etc/inet/hosts 並按(1)所提示的方法輸入相關內容
(5)chmod 444 /etc/ineet/hosts
8. 重新啟動系統
二.配置相關文件
1. 啟動網卡: 點擊屏幕右下角的“網絡監視器”,並在“連接”選項中選中“iprb0“。
2.配置網關,新建/etc/defaultrouter文本文檔,內容為網關ip:
xxx.xxx.xxx.xxx (要換成你的網關地址)
3.配置DNS:
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
4.設置掩碼:修改/etc/netmasks文件
最後添加一行:
xxx.xxx.xxx.xxx 255.255.255.0
5.新建空白文件 /etc/dhcp.iprb0。
6. 啟用網卡:
ifconfig iprb0 unplumb down 停用網卡
ifconfig iprb0 plumb up 激活網卡
ifconfig iprb0 dhcp 配置動態分配ip
Copyright © Linux教程網 All Rights Reserved