For configurong BSNL Broadband on solaris 10 u need following packages to b installed:
SUNWpppd - Solaris PPP Device Drivers.
SUNWpppdr - Solaris PPP configuration files.
SUNWpppdt - Solaris PPP Tunneling.
SUNWpppdu - Solaris PPP daemon and utilities.
==>Install these packages from Solaris DVD
There will be a file myisp.tmpl in /etc/ppp/peers directory. copy the file to a filename /etc/ppp/peers/bsnl.
# cp /etc/ppp/peers/myisp.tmpl /etc/ppp/peers/bsnl
Edit /etc/ppp/peers/bsnl file,
connect "/usr/bin/chat -f /etc/ppp/myisp-chat" # dial into ISP.
sppptun
plugin pppoe.so
connect "/usr/lib/inet/pppoec INTERFACE"
user USERNAME # my account name at my ISP
remotename bsnl # name of the ISP; for pap-secrets
noauth # do not authenticate the ISP's identity (client)
noipdefault # assume no IP address; get it from ISP
defaultroute # install default route; ISP is Internet gateway
updetach # log errors and CONNECT string to invoker
noccp # ISP doesn't support free compression
==>In above file the INTERFACE should be your ethernet interface name and USERNAME is your broadband user name.
Now, edit the two configuration files
/etc/ppp/pap-secrets
/etc/ppp/chap-secrets
add entry in both of files as:
USERNAME bsnl PASSWORD
This entry should be tab separated
==>Where USERNAME is your broadband username and PASSWORD is you broadband password.
!!Your configuration is almost done.
Now for connecting.
#/usr/sbin/sppptun plumb pppoe INTERFACENAME
#/usr/sbin/sppptun plumb pppoed INTERFACENAME
#/usr/bin/pppd debug call bsnl
Enable your dns/client
#svcadm enable dns/client
Now, for connecting everytime make a script as
#!/usr/bin/bash
ifconfig INTERFACENAME plumb
pkill -9 pppd
/usr/sbin/sppptun plumb pppoe INTERFACENAME
/usr/sbin/sppptun plumb pppoed INTERFACENAME
sleep 5
/usr/bin/pppd debug call bsnl
Monday, February 22, 2010
Subscribe to:
Post Comments (Atom)

GUD FOR CREATING DIAL UP IN SUN SOLARIS.........
ReplyDelete