当前位置: 技术问答>linux和unix
solaris 10 上网怎么设置啊,高手们99我啊!
来源: 互联网 发布时间:2016-01-31
本文导语: 我们共有四台电脑连在一个路由器上. 我用XP时路由的IP信息: LAN口状态: MAC地址: 00-14-78-FA-1E-E8 IP 地址: 192.168.1.1 子网掩码: 255.255.255.0 WAN口状态: ...
我们共有四台电脑连在一个路由器上.
我用XP时路由的IP信息:
LAN口状态:
MAC地址: 00-14-78-FA-1E-E8
IP 地址: 192.168.1.1
子网掩码: 255.255.255.0
WAN口状态:
MAC地址: 00-14-78-FA-1E-E9
IP 地址: 58.244.49.117 PPPoE
子网掩码: 255.255.255.255
网关: 58.244.49.117
DNS服务器: 202.98.0.68 ,202.98.5.68
我的网卡不能识别,我装完了网卡,那还有说明:
> # vi /etc/hostname.afe0 (create a file, hostname.afe0, by typed as
follow.)
'IP address your assign' 'Host name' loghost
For example:
192.168.10.1 solaris loghost
上面的 'IP address your assign' 我该填XP中的哪一个啊。
还有我上网搜了一下,说还要配置
/etc/defaultrouter
/etc/nsswitch.conf
/etc/resolv.conf
/etc/hosts
这四个文件,怎么配置啊?
高手们发表一下意见啊,我想学一下SOLARIS,这问题一直解决不了啊。
我用XP时路由的IP信息:
LAN口状态:
MAC地址: 00-14-78-FA-1E-E8
IP 地址: 192.168.1.1
子网掩码: 255.255.255.0
WAN口状态:
MAC地址: 00-14-78-FA-1E-E9
IP 地址: 58.244.49.117 PPPoE
子网掩码: 255.255.255.255
网关: 58.244.49.117
DNS服务器: 202.98.0.68 ,202.98.5.68
我的网卡不能识别,我装完了网卡,那还有说明:
> # vi /etc/hostname.afe0 (create a file, hostname.afe0, by typed as
follow.)
'IP address your assign' 'Host name' loghost
For example:
192.168.10.1 solaris loghost
上面的 'IP address your assign' 我该填XP中的哪一个啊。
还有我上网搜了一下,说还要配置
/etc/defaultrouter
/etc/nsswitch.conf
/etc/resolv.conf
/etc/hosts
这四个文件,怎么配置啊?
高手们发表一下意见啊,我想学一下SOLARIS,这问题一直解决不了啊。
|
mymtom@:/home/c/r/mymtom$ uname -a
SunOS t1000 5.10 Generic_118833-33 sun4v sparc SUNW,Sun-Fire-T1000 Solaris
mymtom@:/home/c/r/mymtom$ cat /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.1.11 t1000 loghost
mymtom@:/home/c/r/mymtom$ cat /etc/resolv.conf
nameserver 211.151.88.20
nameserver 211.151.94.26
nameserver 202.106.196.115
mymtom@:/home/c/r/mymtom$ cat /etc/nsswitch.conf
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)nsswitch.files 1.14 06/05/03 SMI"
#
# /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 ldap
group: files
hosts: files dns
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
printers: user files
auth_attr: files
prof_attr: files
project: files
tnrhtp: files
tnrhdb: files
mymtom@:/home/c/r/mymtom$ cat /etc/defaultrouter
192.168.1.1
SunOS t1000 5.10 Generic_118833-33 sun4v sparc SUNW,Sun-Fire-T1000 Solaris
mymtom@:/home/c/r/mymtom$ cat /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.1.11 t1000 loghost
mymtom@:/home/c/r/mymtom$ cat /etc/resolv.conf
nameserver 211.151.88.20
nameserver 211.151.94.26
nameserver 202.106.196.115
mymtom@:/home/c/r/mymtom$ cat /etc/nsswitch.conf
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)nsswitch.files 1.14 06/05/03 SMI"
#
# /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 ldap
group: files
hosts: files dns
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
printers: user files
auth_attr: files
prof_attr: files
project: files
tnrhtp: files
tnrhdb: files
mymtom@:/home/c/r/mymtom$ cat /etc/defaultrouter
192.168.1.1