There is a lot of HOW-TO in Internet about setting up OpenSolaris to use PPPoE, however I have spent about two days to understand why my configuration doesn't work. So here is mostly trouble shutting guide with PPPoE debugging tips.
First of all my ISP requires service field in the PADI request (PPPoE Active Discovery Initiation, RFC2516), so usual test "/usr/lib/inet/pppoec -v -i rge0" doesn't work for me. Moreover pppoec still has unfixed bug with sending service (
http://opensolaris.org/jive/thread.jspa?messageID=306543You can check all sending/received messages by snoop (it was very helpfull for me to undestand what's hapening):). I'll try to submit the bug. But now you have to download precompiled pppoec from the forum message and copy it insteand of /usr/lib/inet/pppoec (it's 32bit application, however original pppoec on my 64bit installation is also 32bit).
$ snoop -v -r -d rge0 <your_MAC>
Secondly, use any available configuration from Win, BSD or Linux from your provider (for example, FreeBSD /etc/ppp/options posted in help section of my provider's site was also very helpfull).
Some excelent guides:
http://www.phildev.net/solaris/spppoe/html
Sun: "System Administration Guide: Network Services", chapter 20
Lastly, some stuff from my configuration:
1) /etc/ppp/peers/options (man pppd):
sppptun
plugin pppoe.so
connect '/usr/lib/inet/pppoec -v rge0 "starnet"' # service name in quotes
user <my_login>
password <my_password>
persist # try to reopen connection after it is treminated
noaccomp # disable HDLC Address/Contril compression
noccp # disable CCP negotiation
nopcomp # disable protocol field compression
novj # disable Van Jacobson style TCP/IP header compression
noauth # don't requre the peer to authenticate itself
defaultroute # set peer as a default route
noproxyarp # prevent proxy ARP entries with pppd
refuse-chap # refuse standard CHAP refuse-pap # refuse PAP
hide-password # debugging
debug
nodetach
2) /etc/ppp/pppoe.if
rge0
3) /etc/ppp/options lock
4) routing:
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
---------- ---------- -------------------- ----- ----- ---------- --------- default
\u0026lt;sppp0_IP> U 1 54 sppp0
10.0.13.20 \u0026lt; ; sppp0_IP> UH 1 6 sppp0
\u0026lt;LAN_gate> 192.168.0.0 UG 1 4
192.168.53.0 U 1 67 rge0 \u0026lt;rge0_IP> ;
127.0.0.1 127.0.0.1 UH in January 1927 lo0
0 comments:
Post a Comment