
Saturday January 07, 2006
In some areas, in India, you need to configure pppoe for BSNL
to connect to net.
docs.sun.com has a very good document
on this, but thought a quick guide to configure would be helpful.
So here is a quick quide to setup pppoe for BSNL networks.
(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.
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 it to file name bsnl
cp /etc/ppp/peers/myisp.tmpl /etc/ppp/peers/bsnl
edit 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.
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 update.
/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 done.
now run
#/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 resolve.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.
cp /etc/nsswitch.dns /etc/nsswitch.conf
Make a backup copy so that you can copy back when needed nexttime.
cp /etc/resolv.conf /etc/resolv.conf.bsnl
copy
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
Hi
Let me introduce myself. I am Sriram and I work for Solaris Sustaining.
I graduated from IIT-Guwahati, India.
I am passionate about Solaris from my college days onwards.
I personally feel Solaris is the best OS on this planet and feel proud to be working in a group which
fixes issues in Solaris.
I like to play a lot. From the day I was born I was watching my father play and
then watch cricket on TV, probably the reason why I love cricket.
I play Badminton. No reason why,but I like playing it. I represented my school twice in badminton.
I also like playing chess which I used to play long hours with my grandpa.
When I get bored I play loosing game in chess.
Do you know what? you have to loose all your pieces on board before your opponent.
I like drawing, Now I am much more interested in cryptic drawings. Will share what I have meant, once
I know what it is :) just kidding. When I have time will blog it.
Recent books I read:
The Chess Mysteries of Sherlock Holmes, I feel this book is a master piece written by Raymond Smullyan.
This book deals with Retrograte Analysis.
I thought of buying all the books of this Author, but I couldn't get them in
any of the bookstores in India :(
DaVinci Code, nice one. It involves lots of puzzles and interesting twists.
Currently reading The music of the primes: The Author is a mathematician,
who talks about discoveries in primes. The book focuses mainly on Reimann Hypothesis.
If you read it, I am sure you fall in love with primes. Not too much of maths involved.
So easy to understand for anyone.