Friday, June 8, 2007

Broadband In Ubuntu Feisty Fawn

First make sure ur LAN card is enable and is up.

Sudo ifconfig


the output shud show ethx,where x is ur lan card(s) number.
for reference below is my output.
eth0 Link encap:Ethernet HWaddr 00:17:88:99:GE:AV
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::214:85ff:fe98:bea2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16343 errors:0 dropped:0 overruns:0 frame:0
TX packets:13328 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:17254486 (16.4 MiB) TX bytes:2304662 (2.1 MiB)
Interrupt:20 Base address:0xa000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:34 errors:0 dropped:0 overruns:0 frame:0
TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1700 (1.6 KiB) TX bytes:1700 (1.6 KiB)

if u got "lo" and "ethx" there in the output
Lets see:
first open a terminal.type and enter below commands.

$sudo pppoeconf

^^
this will go step by step setting ur internet.at somewhere in last section,it will ask for always on connection-if u want only say yes.else say no.now after everything is over.go to ur terminal or ALT+F2 run dialog and enter :

poff dsl-provider


^^switches off.
U can make shortcuts for this in ur desktop or top panel that will be used to on or off.


press keyboard ALT+F2 to get a run dialog.inside u type below lines and press enter.it will ask for ur passwd-enter it.

gksudo gedit /etc/ppp/peers/dsl-provider

put a "#" before the "usepeerdns" line.then save and exit the editor.the file will look a like below one ofcorz with ur userid :
Code:

:~# cat /etc/ppp/peers/dsl-provider


# Minimalistic default options file for DSL/PPPoE connections

noipdefault
defaultroute
replacedefaultroute
hide-password
#lcp-echo-interval 30
#lcp-echo-failure 4
noauth
persist
#mtu 1492
#usepeerdns
plugin rp-pppoe.so eth0
user "username"



look for the lan interface name using the "ifconfig" command and make sure it is "eth0" else change.but mostly pppoeconf had done the job for u.so look only the usepeerdns line.
.now again use "run" dialog by pressing ALT+F2 and run below command:
 
Code:
gksudo gedit /etc/resolv.conf

inside remove/clear the page and insert below lines and save and exit.
Code:
 

nameserver 208.67.222.222
nameserver 208.67.220.220


now restart ur computer if u like and try switching on internet.

Taken from User Prakash(praka) from a technology Forum

No comments: