LinuxÒÁµéÔ°ÂÛ̳'s Archiver

yuio654 ·¢±íÓÚ 2006-8-3 10:24

¡¾ÇóÖú¡¿solaris9µÄË«Íø¿¨ÎÊÌ⣬¹²Í¬ÌÖÂÛ

[size=2]sun fire440 °²×°µÄsolaris9£¬ÓÐÁ½¸öÍø¿¨£¬Ò»¸ö½ÓÄÚÍø£¬Ò»¸ö½ÓÍâÍø£¬ÄÚÍøµÄ¿ÉÒÔÕý³£·ÃÎÊ£¬µ«ÊÇÍâÍøµÄÍø¿¨ÄÜping³öÈ¥£¬Íⲿping²»Í¨¡£°Ù˼²»µÃÆä½â£¬ÁíÍâһ̨sunÖ÷»úÒ²ÓÐÀàËÆÎÊÌâ¡£ÌØ°ÑÅäÖÃÎļþÌù³öÀ´£¬Çë¸ßÊÖÖ¸½Ì¡£

$ more hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.199.71 buptdes01 loghost
218.249.255.61 buptdes02


$ more hostname.ce0
buptdes01

$ more hostname.ce1
buptdes02


$ more defaultrouter
192.168.199.1 218.249.255.1

$ more netmasks
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
# network-number netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
#59.64.177.128 255.255.255.128
192.168.199.1 255.255.255.0
218.249.255.61 255.255.255.128


$ more nsswitch.conf
#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd: files
group: files
hosts: files
ipnodes: files
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
sendmailvars: files
printers: user files

auth_attr: files
prof_attr: files
project: files



# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
ce0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.199.71 netmask ffffff00 broadcast 192.168.199.255
ether 0:3:ba:9:44:d1
ce1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 218.249.255.61 netmask ffffff00 broadcast 218.249.255.255
ether 0:3:ba:9:44:d1

# ping -s -i ce0 218.249.255.1
PING 218.249.255.1: 56 data bytes
64 bytes from 218.249.255.1: icmp_seq=0. time=1. ms
64 bytes from 218.249.255.1: icmp_seq=1. time=1. ms
64 bytes from 218.249.255.1: icmp_seq=2. time=1. ms
64 bytes from 218.249.255.1: icmp_seq=3. time=1. ms
64 bytes from 218.249.255.1: icmp_seq=4. time=2. ms
64 bytes from 218.249.255.1: icmp_seq=5. time=4. ms
64 bytes from 218.249.255.1: icmp_seq=6. time=1. ms
^C
----218.249.255.1 PING Statistics----
7 packets transmitted, 7 packets received, 0% packet loss
round-trip (ms) min/avg/max = 1/1/4


ping -s -i ce1 218.249.255.1
PING 218.249.255.1: 56 data bytes
64 bytes from 218.249.255.1: icmp_seq=0. time=1. ms
64 bytes from 218.249.255.1: icmp_seq=1. time=1. ms
64 bytes from 218.249.255.1: icmp_seq=2. time=2. ms
64 bytes from 218.249.255.1: icmp_seq=3. time=1. ms
^C
----218.249.255.1 PING Statistics----
4 packets transmitted, 4 packets received, 0% packet loss
round-trip (ms) min/avg/max = 1/1/2[/size]

ip·Ö±ðÊÇ
192.168.199.71          255.255.255.0           192.168.199.1
218.249.255.61           255.255.255.128         218.249.255.1

yuio654 ·¢±íÓÚ 2006-8-3 10:35

ÔÚÏßµÈ
żµÄmsn£º[email="yuio654@hotmail.com"]yuio654@hotmail.com[/email]

Ò³: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.