本文发表在 rolia.net 枫下论坛# cat /etc/resolv.conf
nameserver cd
# cat /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.2.98 fai loghost
192.168.2.4 cd itsmex.no-ip.com
# hostname
fai
#
# nslookup
*** Can't find server name for address 127.0.0.1: No response from server
*** Default servers are not available
# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.2.0 192.168.2.98 U 1 2 hme0
224.0.0.0 192.168.2.98 U 1 0 hme0
default 192.168.2.4 UG 1 2
127.0.0.1 127.0.0.1 UH 2 111 lo0
#
# ifconfig hme0
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.2.98 netmask ffffff00 broadcast 192.168.2.255
ether 8:0:20:b1:99:fb
#
fai是新装的solaris
cd是LINUX,上面有DNS services,NAT firewall/router.更多精彩文章及讨论,请光临枫下论坛 rolia.net
nameserver cd
# cat /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.2.98 fai loghost
192.168.2.4 cd itsmex.no-ip.com
# hostname
fai
#
# nslookup
*** Can't find server name for address 127.0.0.1: No response from server
*** Default servers are not available
# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.2.0 192.168.2.98 U 1 2 hme0
224.0.0.0 192.168.2.98 U 1 0 hme0
default 192.168.2.4 UG 1 2
127.0.0.1 127.0.0.1 UH 2 111 lo0
#
# ifconfig hme0
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.2.98 netmask ffffff00 broadcast 192.168.2.255
ether 8:0:20:b1:99:fb
#
fai是新装的solaris
cd是LINUX,上面有DNS services,NAT firewall/router.更多精彩文章及讨论,请光临枫下论坛 rolia.net