-------------------------------------------------------------------------------------------------------------------------------
Show all network card status
ifocnifg -a (顯示目前所有網路介面狀態)
-------------------------------------------------------------------------------------------------------------------------------
Enable the network card
方法一、
ifconfig elxl0 plumb (啟動網卡 重新開機就會失效)
方法二、
create /etc/hostname.elxl0 內容:elxl0 (開機啟動網卡)
Configuring ipaddress and netmask and making the interface status as up
方法一、
ifconfig elxl0 192.168.1.132 netmask 255.255.255.0 up (設定網卡 IP & NetMask 並啟用 重新開機就會失效)
方法二、
modify /etc/hosts 內容:192.168.1.132 elxl0 (開機設定IP)
-------------------------------------------------------------------------------------------------------------------------------
Setting up DHCP client
方法一、
ifconfig elxl0 dhcp (設定網卡自動取得IP 重新開機就會失效)
方法二、
touch /etc/hostname.hme0 (開機時啟動網卡)
touch /etc/dhcp.hme0
(設定網卡自動取得IP)
ifconfig hme0 dhcp start (立即啟動網卡自動取得IP)
-------------------------------------------------------------------------------------------------------------------------------
Route Configuration
#route add -net 10.0.0.0 -netmask 255.0.0.0 172.40.30.1 1 (新增單一網段路由)
#route add default 205.100.155.2 1 (新增預設路由)
#route change default 205.100.155.2 1 (變更預設路由)
-------------------------------------------------------------------------------------------------------------------------------
Add a default route (gateway). Create an /etc/defaultrouter file with the IP to have it set to this for each boot.
route add default xxx.xxx.xxx.xxx
-------------------------------------------------------------------------------------------------------------------------------
#參考網址:http://solaris-x86.org/documents/guides/interfaces.mhtml
#參考網址:http://www.rite-group.com/rich/solaris_dhcp.html
#參考網址:http://www.adminschoice.com/docs/solaris_network_configuration.html
-------------------------------------------------------------------------------------------------------------------------------
留言列表