How to Connect Solaris to BSNL DataONE
From Genunix
Configuring pppoe on Solaris for BSNL DataONE broadband
In some areas in India one need to configure pppoe for connecting BSNL DataONE broadband.So here is a reference quick guide to setup pppoe for BSNL DataONE on Solaris. (This is not restricted to BSNL, it should be applicable to any service which is based on pppoe.)
SUNW ppp packages should be already available for you unless you didn't install.If you didn't install you need the following packages.
Install them from your Solaris CD.
Packages
SUNWpppd - Solaris PPP Device Drivers. SUNWpppdr - Solaris PPP configuration files. SUNWpppdt - Solaris PPP Tunneling. SUNWpppdu - Solaris PPP daemon and utilities.
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
Note the conventions
USERNAME - is your BSNL id eg (sampleid) PASSWORD - provided by bsnl (******) INTERFACENAME - is your ethernet card name eg (bge0,iprb0....)
Edit /etc/ppp/peers/bsnl file using you favorite editor. The uncommented section should look like the following. where INTERFACE should be your ethernet interface name and USERNAME is your broadband user name.
connect "/usr/bin/chat -f /etc/ppp/myisp-chat" # dial into ISP.<br> 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
Now there are 2 configuration files to that needs to be updated.
/etc/ppp/pap-secrets /etc/ppp/chap-secrets
In these two files add the entry as follows
USERNAME bsnl PASSWORD
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
(debug is optional.)
you need to specify dns server to resolve dns names.
create a file in /etc with name /etc/resolv.conf
and copy the nameserver info.
for example:
echo nameserver 61.1.96.69 > /etc/resolv.conf
Note: The IP specified here is BSNL nameserver, but might be different for you. Please ask your BSNL operator dns file. Or you can use the opendns.com server IP.
cp /etc/nsswitch.dns /etc/nsswitch.conf
Make a backup copy so that you can copy back when needed next time.
cp /etc/resolv.conf /etc/resolv.conf.bsnl
In case you are still not able to resolv dns name. check if dns/client service is running or not.
svcs -a | grep dns/client
if not enabled
svcadm enable dns/client
if not online, try starting
svcadm restart dns/client or svcadm refresh dns/client
Simple script that can help you for connecting after configuring PPPoE.
#!/usr/bin/bash ifconfig bge0 plumb pkill -9 pppd /usr/sbin/sppptun plumb pppoe bge0 /usr/sbin/sppptun plumb pppoed bge0 sleep 5 /usr/bin/pppd debug call bsnl echo nameserver 208.67.222.222 > /etc/resolv.conf echo nameserver 208.67.220.220 >> /etc/resolv.conf echo nameserver 61.1.96.69 >> /etc/resolv.conf cp /etc/nsswitch.dns /etc/nsswitch.conf svcadm restart dns/client
|
For more detailed configuration refer Configuring PPPoE |
--Pradhap 08:55, 15 May 2007 (PDT)
