免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1309 | 回复: 3
打印 上一主题 下一主题

How to configure the PPPoE on Solaris [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-03-28 17:11 |只看该作者 |倒序浏览
Description: How to configure the PPPoE on Solaris[TM](Maintenance Update 6)

Sun PPPoE is part of Sun's PPPD 4.0 package. This is available in the Solaris [TM] 8 Maintenance Update 6 and higher. It is

not available in earlier versions of the Solaris [TM] Operating Environment.

Packages:

Make sure the following packages are installed for pppoe server/client configuration:

        # pkginfo -l |grep pppd
        PKGINST: SUNWpppd
        PKGINST: SUNWpppdr
        PKGINST: SUNWpppdt
        PKGINST: SUNWpppdu
        PKGINST: SUNWpppdx      
Additional package information:

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 SPARCs with 64-bit kernels)


Access Server Configuration :

1. Make sure that no ppp daemon is running on the system, such as aspppd, pppd, etc., prior to configuring the pppoe.

2. Make sure that the network interface, such as le, ge ,eri, etc., is used only for pppoe and not for any other

communication..

3. Create the following two files.

a. Create the file /etc/ppp/pppoe with the two options below. Device le0 is the ppp network interface in this example.

        pppoeserver# more /etc/ppp/pppoe
        device le0
        service local      
b. Create the file /etc/ppp/options with the following options:

        pppoeserver# more /etc/ppp/options
        lock #uucp style locking .
        nodefaultroute # not used any default route.
        updetach #it will display the output on the screen when pppd starts.
        noauth #No authentication is used
        debug #Debug mode
        1.1.1.1:2.2.2.2 #<serveripaddres:clientipaddress>;      
4. Reboot the box.

5. Plumb the pppoed &amp; pppoe protocols on the network interface le0 as follows:

        pppoeserver# sppptun plumb pppoed le0
        pppoeserver# sppptun plumb pppoe le0      
6. Verify that the interface is plumbed:

        pppoeserver# sppptun query
        eri0:pppoed
        eri0:pppoe      
7. Start the pppoed deamon as follows:

        pppoeserver# /usr/lib/inet/pppoed      
8. Test the server configuration. You should see the MAC address, type of service, etc.

        pppoeserver# /usr/lib/inet/pppoec -i le0
        0:3:ba:4:b9:9b Svc:"" Svc:"local" Name:"Solaris PPPoE" Uniq:00000002      
Client confguration:

1. Make sure that no ppp daemon is running on the system, such as ppp, pppd, pppoed, etc.

2. Make sure that the network interface, such as eri, le, ge, etc., is used only for pppoe.

3. Create a file in /etc/ppp/peers such as myserver to keep the connecting parameters.

        pppoeclnt# more /etc/ppp/peers/myserver
        sppptun
        updetach
        debug
        plugin pppoe.so
        connect "/usr/lib/inet/pppoec -v eri0 local"      
Where:

sppptun - what device to use

updetach -will display the o/p on screen when pppd starts.

debug -dubug mode

plugin pppoe.so -initialize the connect string.

connect "..." -connect string


4. Plumb the pppoed &amp; pppoe protocols on the network interface eri0 as follows:

        pppoeclnt# sppptun plumb pppoed eri0
        pppoeclnt# sppptun plumb pppoe eri0      
5. Verify that the interface is plumbed:

        pppoeclnt# sppptun query
        eri0:pppoed
        eri0:pppoe      
6. Start the pppoed deamon:

        pppoeclnt#/usr/lib/inet/pppoed      
7. Test the client configuration. You should see the MAC address, type of service, etc.

        pppoeclnt# /usr/lib/inet/pppoec -i eri0
        0:3:ba:4:b9:9b Svc:"" Svc:"local" Name:"Solaris PPPoE" Uniq:00000002      
Starting the connection:

To connect to a peer access server named myserver:

pppoeclnt# pppd debug call myserver ( myserver is the file in /etc/ppp/peers of client)

/usr/lib/inet/pppoec: PPPoE Event Open (1) in state Dead (0): action SendPADI (2
)
/usr/lib/inet/pppoec: Sending PADI to ff:ff:ff:ff:ff:ff: 18 bytes
/usr/lib/inet/pppoec: PPPoE State change Dead (0) ->; InitSent (1)
/usr/lib/inet/pppoec: Received Active Discovery Offer from 0:3:ba:4:b9:9b/eri0:p
ppoed
/usr/lib/inet/pppoec: PPPoE Event rPADO+ (5) in state InitSent (1): action SendP
ADR+ (5)
/usr/lib/inet/pppoec: Sending PADR to 0:3:ba:4:b9:9b: 30 bytes
/usr/lib/inet/pppoec: PPPoE State change InitSent (1) ->; ReqSent (3)
connect option: '/usr/lib/inet/pppoec -v eri0 local' started (pid 489)
/usr/lib/inet/pppoec: Received Active Discovery Session-confirmation from 0:3:ba
:4:b9:9b/eri0:pppoed
/usr/lib/inet/pppoec: PPPoE Event rPADS (7) in state ReqSent (3): action Open (7
)
/usr/lib/inet/pppoec: Connection open; session 0002 on eri0:pppoe
/usr/lib/inet/pppoec: PPPoE State change ReqSent (3) ->; Convers (4)
/usr/lib/inet/pppoec: connected
Serial connection established.
Using interface sppp0
Connect: sppp0 <-->; /dev/sppptun
/etc/ppp/pap-secrets is apparently empty
/etc/ppp/chap-secrets is apparently empty
sent [LCP ConfReq id=0x25 <mru 1492>; <asyncmap 0x0>; <magic 0xa7d1363>; <pcomp>; <accomp>;]
rcvd [LCP ConfReq id=0xb8 <mru 1492>; <asyncmap 0x0>; <magic 0x39280b29>; <pcomp>; <accomp>;]
sent [LCP ConfAck id=0xb8 <mru 1492>; <asyncmap 0x0>; <magic 0x39280b29>; <pcomp>; <accomp>;]
rcvd [LCP ConfAck id=0x25 <mru 1492>; <asyncmap 0x0>; <magic 0xa7d1363>; <pcomp>; <accomp>;]
sent [LCP Ident id=0x26 magic=0xa7d1363 "ppp-2.4.0b1 (Sun Microsystems, Inc., Nov 8 2001 18:35:15)"]
sent [IPCP ConfReq id=0xd3 <addr 129.149.141.226>; <compress VJ 0f 01>;]
sent [CCP ConfReq id=0x4e <deflate 15>; <deflate(old#) 15>; <bsd v1 15>;]
rcvd [LCP Ident id=0xb9 magic=0x39280b29 "ppp-2.4.0b1 (Sun Microsystems, Inc., Nov 8 2001 18:35:15)"]
Peer Identification: ppp-2.4.0b1 (Sun Microsystems, Inc., Nov 8 2001 18:35:15)
rcvd [IPCP ConfReq id=0x4a <addr 1.1.1.1>; <compress VJ 0f 01>;]
sent [IPCP ConfAck id=0x4a <addr 1.1.1.1>; <compress VJ 0f 01>;]
rcvd [CCP ConfReq id=0x44 <deflate 15>; <deflate(old#) 15>; <bsd v1 15>;]
sent [CCP ConfAck id=0x44 <deflate 15>; <deflate(old#) 15>; <bsd v1 15>;]
rcvd [IPCP ConfNak id=0xd3 <addr 2.2.2.2>;]
sent [IPCP ConfReq id=0xd4 <addr 2.2.2.2>; <compress VJ 0f 01>;]
rcvd [CCP ConfAck id=0x4e <deflate 15>; <deflate(old#) 15>; <bsd v1 15>;]
Deflate (15) compression enabled
rcvd [IPCP ConfAck id=0xd4 <addr 2.2.2.2>; <compress VJ 0f 01>;]
local IP address 2.2.2.2
remote IP address 1.1.1.1      
Verifying the Connection:

pppoeclnt# ping 1.1.1.1
1.1.1.1 is alive

pppoeclnt# ping 2.2.2.2
2.2.2.2 is alive

pppoeclnt# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4>; mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
sppp0: flags=10008d1<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST,IPv4>; mtu 1492 index
3
inet 2.2.2.2 -->; 1.1.1.1 netmask ff000000
ether 0:0:0:0:0:0      
Stopping pppd:

# pkill pppd

论坛徽章:
0
2 [报告]
发表于 2003-03-30 14:37 |只看该作者

How to configure the PPPoE on Solaris

up

论坛徽章:
0
3 [报告]
发表于 2003-03-31 14:29 |只看该作者

How to configure the PPPoE on Solaris

你所说的是自己建立PPPOE的服务器,本人是无论如何都不能连上电信的ADSL,所作的配置和你的客户端配置一样,唯一是我没有知道电信的SVC名称,如果知道,还请告知。其他配置都通过,就是连接不上啊,呵呵。

论坛徽章:
0
4 [报告]
发表于 2003-12-08 22:48 |只看该作者

How to configure the PPPoE on Solaris

本人和june_cai遇到的现象应该一样,其实以上的东东都仔细研究过了的,包括Solaris的系统管理手册,可惜就是不行。
从log看应该是和电信的PPPoE Server端已经有通信,否则不可能获得对端网关地址,目前怀疑是options之类其他配置文件有什么特殊之处。另手册中提到了要建立options.sppptun这样一个文件,不知有没有影响。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP