- 论坛徽章:
- 0
|
# An example file that could be copied over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
# DNS service expects that an instance of svc:/network/dns/client be
# enabled and online.
passwd: files
group: files
# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files dns
# Note that IPv4 addresses are searched for in all of the ipnodes databases
# before searching the hosts databases.
ipnodes: files dns
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
printers: user files
auth_attr: files
prof_attr: files
project: files
# more /etc/netmsk
/etc/netmsk: 无此文件或目录
# more /etc/netmask
/etc/netmask: 无此文件或目录
# vi /etc/netmask
"/etc/netmask"[新文件]
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
:q!
# vi /etc/defaultrouter
"/etc/defaultrouter" 1行,12个字符
192.168.0.1
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
:q!
# more /etc/hostname.hme0
u30
# more /etc/host
/etc/host: 无此文件或目录
# ls
Desktop cdrom export metadb proc var
Documents core home mnt sbin vol
Mail dev kernel net system
TT_DB devices lib opt tmp
bin etc lost+found platform usr
# cd etc
# ls
TIMEZONE inittab rc2
X11 install rc2.d
acct ioctl.syscon rc3
aggregation.conf ipf rc3.d
aliases iscsi rc5
apache iu.ap rc6
apache2 killall rcS
apoc krb5 rcS.d
auto_home labelit rcm
auto_master lib reboot
autopush link release
bonobo-activation llc2 remote
cacao log resolv.conf
certs logadm.conf rmmount.conf
cfgadm logindevperm rmt
chroot lp rndc.key
clri lu rpc
coreadm.conf lvm rpcsec
cron magic rpld.conf
cron.d mail saf
crypto mailcap sasl
dacf.conf mime.types scrollkeeper.conf
dat minor_perm security
datemsk mkfs services
dcopy mknod setmnt
default mnttab sfw
defaultrouter motd sgml
device.tab mount shadow
devices mountall shutdown
devlink.tab mvdir skel
dfs name_to_major sma
dgroup.tab name_to_sysnum smartcard
dhcp nca snmp
dmi ncheck sock2path
driver_aliases net sound
driver_classes netconfig sparcv9
dumpadm.conf netmasks ssh
dumpdates networks sulogin
esd.conf nfs svc
ff nfssec.conf swap
flash nodename swapadd
fm nscd.conf sysdef
fmthard nsswitch.conf sysevent
fonts nsswitch.dns syslog.conf
format nsswitch.files syslog.pid
format.dat nsswitch.ldap system
fs nsswitch.nis tar
fsck nsswitch.nisplus telinit
fsdb openwin termcap
fstyp opt tm
ftpd orbitrc ttydefs
fuser pam.conf ttysrch
gconf pango uadmin
getty passwd umount
gimp patch umountall
gnome-vfs-2.0 path_to_inst unlink
gnome-vfs-mime-magic path_to_inst.196 usb
gnopernicus-1.0 path_to_inst.old user_attr
group pgsql utmppipe
grpck power.conf utmpx
gss power.conf-Orig uucp
gtk ppp vfstab
gtk-2.0 printers.conf volcopy
halt product-info vold.conf
hba.conf profile wall
hostname.hme0 project webmin
hosts protocols wgetrc
iiim prtconf whodo
ima.conf prtvtoc wrsm
imq publickey wtmpx
inet pwck xml
inetd.conf rc0 xpdfrc
init rc0.d zfs
init.d rc1 zones
initpipe rc1.d
# more hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.0.188 u30 loghost
#
login: root
Password:
Last login: Mon May 28 10:46:49 from 192.168.0.11
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
#
#
# ls
Desktop cdrom export metadb proc var
Documents core home mnt sbin vol
Mail dev kernel net system
TT_DB devices lib opt tmp
bin etc lost+found platform usr
# cd etc
# ls
TIMEZONE inittab rc2
X11 install rc2.d
acct ioctl.syscon rc3
aggregation.conf ipf rc3.d
aliases iscsi rc5
apache iu.ap rc6
apache2 killall rcS
apoc krb5 rcS.d
auto_home labelit rcm
auto_master lib reboot
autopush link release
bonobo-activation llc2 remote
cacao log resolv.conf
certs logadm.conf rmmount.conf
cfgadm logindevperm rmt
chroot lp rndc.key
clri lu rpc
coreadm.conf lvm rpcsec
cron magic rpld.conf
cron.d mail saf
crypto mailcap sasl
dacf.conf mime.types scrollkeeper.conf
dat minor_perm security
datemsk mkfs services
dcopy mknod setmnt
default mnttab sfw
defaultrouter motd sgml
device.tab mount shadow
devices mountall shutdown
devlink.tab mvdir skel
dfs name_to_major sma
dgroup.tab name_to_sysnum smartcard
dhcp nca snmp
dmi ncheck sock2path
driver_aliases net sound
driver_classes netconfig sparcv9
dumpadm.conf netmasks ssh
dumpdates networks sulogin
esd.conf nfs svc
ff nfssec.conf swap
flash nodename swapadd
fm nscd.conf sysdef
fmthard nsswitch.conf sysevent
fonts nsswitch.dns syslog.conf
format nsswitch.files syslog.pid
format.dat nsswitch.ldap system
fs nsswitch.nis tar
fsck nsswitch.nisplus telinit
fsdb openwin termcap
fstyp opt tm
ftpd orbitrc ttydefs
fuser pam.conf ttysrch
gconf pango uadmin
getty passwd umount
gimp patch umountall
gnome-vfs-2.0 path_to_inst unlink
gnome-vfs-mime-magic path_to_inst.196 usb
gnopernicus-1.0 path_to_inst.old user_attr
group pgsql utmppipe
grpck power.conf utmpx
gss power.conf-Orig uucp
gtk ppp vfstab
gtk-2.0 printers.conf volcopy
halt product-info vold.conf
hba.conf profile wall
hostname.hme0 project webmin
hosts protocols wgetrc
iiim prtconf whodo
ima.conf prtvtoc wrsm
imq publickey wtmpx
inet pwck xml
inetd.conf rc0 xpdfrc
init rc0.d zfs
init.d rc1 zones
initpipe rc1.d
# ifconfig -a
\lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843 mtu 1500 index 2
inet 192.168.0.188 netmask ffffff00 broadcast 192.168.0.255
ether 8:0:20:9b:15:fe
# \
?
#
# more /etc/netmask
/etc/netmask: 无此文件或目录
# more /etc/path_to_inst |grep hme
"/pci@1f,4000/network@1,1" 0 "hme"
#
#
#
# more /etc/resolv.conf
nameserver 192.168.0.1
# more /etc/nsswitch.conf
#
# /etc/nsswitch.dns:
#
# An example file that could be copied over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
# DNS service expects that an instance of svc:/network/dns/client be
# enabled and online.
passwd: files
group: files
# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files dns
# Note that IPv4 addresses are searched for in all of the ipnodes databases
# before searching the hosts databases.
ipnodes: files dns
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
printers: user files
auth_attr: files
prof_attr: files
project: files
# cat /etc/hostname.hme0
u30
# cat /etc/inet/ipnodes
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
192.168.0.188 u30 loghost
# more /etn/nodesname
/etn/nodesname: 无此文件或目录
# more /etc/nodesname
/etc/nodesname: 无此文件或目录
# more /nodesname
/nodesname: 无此文件或目录
# cd etc
etc: \316\336\264\313\316\304\274\376\273\362\304\277\302\274.
# ls
TIMEZONE inittab rc2
X11 install rc2.d
acct ioctl.syscon rc3
aggregation.conf ipf rc3.d
aliases iscsi rc5
apache iu.ap rc6
apache2 killall rcS
apoc krb5 rcS.d
auto_home labelit rcm
auto_master lib reboot
autopush link release
bonobo-activation llc2 remote
cacao log resolv.conf
certs logadm.conf rmmount.conf
cfgadm logindevperm rmt
chroot lp rndc.key
clri lu rpc
coreadm.conf lvm rpcsec
cron magic rpld.conf
cron.d mail saf
crypto mailcap sasl
dacf.conf mime.types scrollkeeper.conf
dat minor_perm security
datemsk mkfs services
dcopy mknod setmnt
default mnttab sfw
defaultrouter motd sgml
device.tab mount shadow
devices mountall shutdown
devlink.tab mvdir skel
dfs name_to_major sma
dgroup.tab name_to_sysnum smartcard
dhcp nca snmp
dmi ncheck sock2path
driver_aliases net sound
driver_classes netconfig sparcv9
dumpadm.conf netmasks ssh
dumpdates networks sulogin
esd.conf nfs svc
ff nfssec.conf swap
flash nodename swapadd
fm nscd.conf sysdef
fmthard nsswitch.conf sysevent
fonts nsswitch.dns syslog.conf
format nsswitch.files syslog.pid
format.dat nsswitch.ldap system
fs nsswitch.nis tar
fsck nsswitch.nisplus telinit
fsdb openwin termcap
fstyp opt tm
ftpd orbitrc ttydefs
fuser pam.conf ttysrch
gconf pango uadmin
getty passwd umount
gimp patch umountall
gnome-vfs-2.0 path_to_inst unlink
gnome-vfs-mime-magic path_to_inst.196 usb
gnopernicus-1.0 path_to_inst.old user_attr
group pgsql utmppipe
grpck power.conf utmpx
gss power.conf-Orig uucp
gtk ppp vfstab
gtk-2.0 printers.conf volcopy
halt product-info vold.conf
hba.conf profile wall
hostname.hme0 project webmin
hosts protocols wgetrc
iiim prtconf whodo
ima.conf prtvtoc wrsm
imq publickey wtmpx
inet pwck xml
inetd.conf rc0 xpdfrc
init rc0.d zfs
init.d rc1 zones
initpipe rc1.d
# pwd
/etc
# ls
TIMEZONE inittab rc2
X11 install rc2.d
acct ioctl.syscon rc3
aggregation.conf ipf rc3.d
aliases iscsi rc5
apache iu.ap rc6
apache2 killall rcS
apoc krb5 rcS.d
auto_home labelit rcm
auto_master lib reboot
autopush link release
bonobo-activation llc2 remote
cacao log resolv.conf
certs logadm.conf rmmount.conf
cfgadm logindevperm rmt
chroot lp rndc.key
clri lu rpc
coreadm.conf lvm rpcsec
cron magic rpld.conf
cron.d mail saf
crypto mailcap sasl
dacf.conf mime.types scrollkeeper.conf
dat minor_perm security
datemsk mkfs services
dcopy mknod setmnt
default mnttab sfw
defaultrouter motd sgml
device.tab mount shadow
devices mountall shutdown
devlink.tab mvdir skel
dfs name_to_major sma
dgroup.tab name_to_sysnum smartcard
dhcp nca snmp
dmi ncheck sock2path
driver_aliases net sound
driver_classes netconfig sparcv9
dumpadm.conf netmasks ssh
dumpdates networks sulogin
esd.conf nfs svc
ff nfssec.conf swap
flash nodename swapadd
fm nscd.conf sysdef
fmthard nsswitch.conf sysevent
fonts nsswitch.dns syslog.conf
format nsswitch.files syslog.pid
format.dat nsswitch.ldap system
fs nsswitch.nis tar
fsck nsswitch.nisplus telinit
fsdb openwin termcap
fstyp opt tm
ftpd orbitrc ttydefs
fuser pam.conf ttysrch
gconf pango uadmin
getty passwd umount
gimp patch umountall
gnome-vfs-2.0 path_to_inst unlink
gnome-vfs-mime-magic path_to_inst.196 usb
gnopernicus-1.0 path_to_inst.old user_attr
group pgsql utmppipe
grpck power.conf utmpx
gss power.conf-Orig uucp
gtk ppp vfstab
gtk-2.0 printers.conf volcopy
halt product-info vold.conf
hba.conf profile wall
hostname.hme0 project webmin
hosts protocols wgetrc
iiim prtconf whodo
ima.conf prtvtoc wrsm
imq publickey wtmpx
inet pwck xml
inetd.conf rc0 xpdfrc
init rc0.d zfs
init.d rc1 zones
initpipe rc1.d
#
#
#
#
#
# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.0.0 192.168.0.188 U 1 2 hme0
224.0.0.0 192.168.0.188 U 1 0 hme0
default 192.168.0.1 UG 1 0
127.0.0.1 127.0.0.1 UH 4 91 lo0
#
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/31600/showart_311524.html |
|