一、Solaris DNS客户端设置
1. # vi /etc/resolv.conf
## xxx.xxx.xxx.xxx 为你isp的dns
nameserver xxx.xxx.xxx.xxx
2. # vi /etc/nsswitch.conf
修改hosts: files 为 hosts: files dns
3. reboot
二、PPPOE配置:
1.首先请确定你已经安装了下列软件,如果您的系统版本低于 Solaris 8 10/01你还没有装上:
SUNWpppd - Solaris PPP Device Drivers
SUNWpppdr - Solaris PPP configuration files
SUNWpppdt - Solaris PPP Tunneling
SUNWpppdu - Solaris PPP daemon and utilities
SUNWpppdx - Solaris PPP 64-bit (ONLY needed for SPARC's with 64-bit kernels)
请执行下面简单的命令确认:
# ls /dev | grep ppp
sppp
sppptun
# grep sppp /etc/name_to_major
sppp 146
sppptun 147
2. 基本信息
拨号用户:netstorm
密 码:password
# ifconfig -a 取得网卡接口 我的为 rtls0 (Realtek8139网卡)
3. 下面是主要使用到的程序,具体怎么用我还不清楚呢!
/usr/lib/inet/pppoed
/usr/sbin/sppptun
/usr/bin/pppd
4. # touch /etc/ppp/pppoe.if (不知道什么用)
5. 创建一个 连接isp的配置文件 /etc/ppp/peers/hzcnc 内容如下:
###################### /etc/ppp/peers/hzcnc ######################
sppptun # what device to use
plugin pppoe.so # initialize the
connect "/usr/lib/inet/pppoec rtls0" #注意这里和pppd带的模板文件中不同
persist # if the connection dies, bring it back up
user "zhangfan" # username
noauth # Do not make the other side authenticate itself
noipdefault # Let them give you what IP they want to give you
# 如果你知道下面命令的意思,请不吝补充
noccp # No compression
novj # No compression
noaccomp # No compression
nopcomp # No compression
defaultroute # add an appropriate default route
####################################################################
6. 设定你的 用户验证文件。
我的连接是网通的,所以我用/etc/ppp/pap-secrets,按照前面的例子,
我设定她的内容为: