Solaris adsl上网

现在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服务的地址)
在以后的配置重要用到

用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/resolv.conf建立DNS文件
打开/etc/resolv.conf在其中加入
      你收集到的DNS信息在这里是
      202.96.64.68
      202.96.69.38
/etc/nsswitch.conf
修改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
到此配置完成
在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
 以后开机就能自动上网。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值