- 论坛徽章:
- 0
|
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 & 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 & 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 |
|