#vi /etc/hosts 修改不同的主機名稱
-----------------------------------------------
127.0.0.1 localhost
192.168.55.12 solaris1 loghost
192.168.50.12 solaris2 loghost
-------------------------------------------
指定兩張網卡的主機名稱
#vi /etc/hostname.ech0
solaris1
#vi /etc/hostname.ech1
solaris2
--------------------------------------------------
設定netmasks
# more /etc/netmasks
192.168.0.0 255.255.255.0
---------------------------------------------------
---------------------------------------------------
#ifconfig -a
ech0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.55.12 netmask ffffff00 broadcast 192.168.2.255
ether 10:2r:58;86:8c:4d
ech1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.50.12 netmask ffffff00 broadcast 192.168.1.255
ether 0p:95:195:f8;af:gg
Q&A
版主有遇到ADSL+DNS Server時,當兩張網卡都設定IP之後,DNS無法解析,所以我將第二張網卡的IP全部清掉,只留下一張網卡的IP,DNS 內外都能解析的到,滿奇怪的。(還在找問題是不是如此)
留言列表