现在Solaris以安装我想大家一定迫不及待的向上网了把
对于大多数的人一定使用ADSL上网的
一下就介绍Solaris的ADSL上网配置
收集DNS信息:
在XP下:
开始-->应用程序-->附件-->命令提示符 打开命令行窗口
在其中输入ipconfig/all回车,将显示以下信息:
Windows IP Configuration
Host Name . . . . . . . . . . . . :pine (服务器名)
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Sundance ST201 based PCI Fast Etheret Adapter (本机的网卡型号)
Physical Address. . . . . . . . . : 00-05-5D-05-8F-F7 (本网卡的MAC地址)
Dhcp Enabled. . . . . . . . . . . : Yes (DHCP服务器开放)
Autoconfiguration Enabled . . . . : Yes
Autoconfiguration IP Address. . . : 169.254.235.57 (本地IP地址0
Subnet Mask . . . . . . . . . . . : 255.255.0.0 (子网掩码)
Default Gateway . . . . . . . . . :
PPP adapter richard: (PPPOE拨号程序)
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00 (PPPOE拨号的MAC地址)
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 218.61.119.190(对映的服务器的客户端IP地址)
Subnet Mask . . . . . . . . . . . : 255.255.255.255 (对映的服务器的客户端子网掩码)
Default Gateway . . . . . . . . . : 218.61.119.190(对映的服务器的客户端网关地址)
DNS Servers . . . . . . . . . . . : 202.96.64.68
202.96.69.38 (接入商DNS服务的地址)
NetBIOS over Tcpip. . . . . . . . : Disabled
其中Default Gateway . . . . . . . . . : 218.61.119.190(对映的服务器的客户端网关地址)
DNS Servers . . . . . . . . . . . : 202.96.64.68
202.96.69.38 (接入商DNS服务的地址)
在以后的配置重要用到
对于大多数的人一定使用ADSL上网的
一下就介绍Solaris的ADSL上网配置
收集DNS信息:
在XP下:
开始-->应用程序-->附件-->命令提示符 打开命令行窗口
在其中输入ipconfig/all回车,将显示以下信息:
Windows IP Configuration
Host Name . . . . . . . . . . . . :pine (服务器名)
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Sundance ST201 based PCI Fast Etheret Adapter (本机的网卡型号)
Physical Address. . . . . . . . . : 00-05-5D-05-8F-F7 (本网卡的MAC地址)
Dhcp Enabled. . . . . . . . . . . : Yes (DHCP服务器开放)
Autoconfiguration Enabled . . . . : Yes
Autoconfiguration IP Address. . . : 169.254.235.57 (本地IP地址0
Subnet Mask . . . . . . . . . . . : 255.255.0.0 (子网掩码)
Default Gateway . . . . . . . . . :
PPP adapter richard: (PPPOE拨号程序)
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00 (PPPOE拨号的MAC地址)
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 218.61.119.190(对映的服务器的客户端IP地址)
Subnet Mask . . . . . . . . . . . : 255.255.255.255 (对映的服务器的客户端子网掩码)
Default Gateway . . . . . . . . . : 218.61.119.190(对映的服务器的客户端网关地址)
DNS Servers . . . . . . . . . . . : 202.96.64.68
202.96.69.38 (接入商DNS服务的地址)
NetBIOS over Tcpip. . . . . . . . : Disabled
其中Default Gateway . . . . . . . . . : 218.61.119.190(对映的服务器的客户端网关地址)
DNS Servers . . . . . . . . . . . : 202.96.64.68
202.96.69.38 (接入商DNS服务的地址)
在以后的配置重要用到
用ifconfig -a检查以太网卡
如出现两个网卡第二个就是你的以太网卡
如出现两个网卡第二个就是你的以太网卡
如果没有检测到用下面的命令添加以太网卡
# touch /etc/hostname.hme0 (注:hme0是SUN的机子,是X86 用rtls0或pcn0替换hme0)
打开hostname.hme0(注:hme0是SUN的机子,是X86 用rtls0或pcn0替换hme0)在其中添加
SUNload
打开/etc/hosts在其中添加
169.254.1.1 SUNload loghost
注:IP可为任意的
重启用ifconfig -a
如出现名为pcn0,rtls0,hem0之一说明配置成功
# touch /etc/hostname.hme0 (注:hme0是SUN的机子,是X86 用rtls0或pcn0替换hme0)
打开hostname.hme0(注:hme0是SUN的机子,是X86 用rtls0或pcn0替换hme0)在其中添加
SUNload
打开/etc/hosts在其中添加
169.254.1.1 SUNload loghost
注:IP可为任意的
重启用ifconfig -a
如出现名为pcn0,rtls0,hem0之一说明配置成功
# touch /etc/resolv.conf建立DNS文件
打开/etc/resolv.conf在其中加入
你收集到的DNS信息在这里是
202.96.64.68
202.96.69.38
打开/etc/resolv.conf在其中加入
你收集到的DNS信息在这里是
202.96.64.68
202.96.69.38
/etc/nsswitch.conf
修改hosts: files 为 hosts: files dns
修改hosts: files 为 hosts: files dns
在/etc/ppp下建立一个ADSL文件打开添加
sppptun
plugin pppoe.so
connect "/usr/lib/inet/pppoec hme0" 注:hme0是SUN的机子,是X86 用rtls0或pcn0替换hme0
noccp
noauth
user usename 注:usename是你的ADSL帐户名
password usesecret 注:usesecret是你的ADSL帐户密码
noipdefault
defaultroute
到此配置完成
sppptun
plugin pppoe.so
connect "/usr/lib/inet/pppoec hme0" 注:hme0是SUN的机子,是X86 用rtls0或pcn0替换hme0
noccp
noauth
user usename 注:usename是你的ADSL帐户名
password usesecret 注:usesecret是你的ADSL帐户密码
noipdefault
defaultroute
到此配置完成
在shell中输入
#/usr/sbin/sppptun plumb pppoed hme0 (注:hme0是SUN的机子,是X86 用rtls0或pcn0替换hme0)
#/usr/sbin/sppptun plumb pppoe hme0 (注:hme0是SUN的机子,是X86 用rtls0或pcn0替换hme0)
#/usr/bin/pppd call ADSL
#ifconfig -a
如出现sppp0信息表明连接以建立
在rc3.d中创将一个开机自启动脚本S100bohao其中添加
注:S100bohao中的S代表开机自启动
sppptun plumb pppoed rtls0
sppptun plumb pppoe rtls0
/usr/bin/pppd call ADSL
#/usr/sbin/sppptun plumb pppoed hme0 (注:hme0是SUN的机子,是X86 用rtls0或pcn0替换hme0)
#/usr/sbin/sppptun plumb pppoe hme0 (注:hme0是SUN的机子,是X86 用rtls0或pcn0替换hme0)
#/usr/bin/pppd call ADSL
#ifconfig -a
如出现sppp0信息表明连接以建立
在rc3.d中创将一个开机自启动脚本S100bohao其中添加
注:S100bohao中的S代表开机自启动
sppptun plumb pppoed rtls0
sppptun plumb pppoe rtls0
/usr/bin/pppd call ADSL
Solaris ADSL配置指南
本文详细介绍如何在Solaris系统中配置ADSL上网,包括收集DNS信息、添加以太网卡、设置DNS服务器及PPP配置等步骤。
9661

被折叠的 条评论
为什么被折叠?



