LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-01-2005, 04:53 AM   #1
trendsetter
LQ Newbie
 
Registered: Nov 2005
Posts: 22

Rep: Reputation: 15
lan connection works but adsl doesn't, why?


hi,
i installed mandriva 2006 couple of days ago. i tried red hat and fedora which didnt work. my computer is dell inspiron 6000.
The problem is i can specify the lan ip, dns, gateway everything and get it to work. i could access website normally in my lan. Now, i created new connection - adsl to be precise. after i do this i can neither access the local area network nor the internet. i have been trying every options since 3 days. i wish i had some linux using friend here, anybody please help me. i am a complete newbie in linux. i'm just sick of using windows and want some change....everything was going fine until adsl didnt work out.
any response would be appreciated.
thanks
sabin
 
Old 11-01-2005, 06:37 AM   #2
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184

Rep: Reputation: 36
can you give me this info:
ifconfig -a
route

and what type of adslmodem you are using, (router, via network , via usb)

I think the problem can be a default route, but I hope you can give some more info about you network setup

tlowk
 
Old 11-01-2005, 10:37 AM   #3
trendsetter
LQ Newbie
 
Registered: Nov 2005
Posts: 22

Original Poster
Rep: Reputation: 15
i dont use the modem..its a broadband, it works through network card thats realtek. and it was fine while using windows. i'll let u know the ipconfig in a while...
 
Old 11-01-2005, 10:44 AM   #4
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184

Rep: Reputation: 36
then you will probably need to use rp-pppoe

http://www.roaringpenguin.com/pppoe/

but you will need no address on the realtek network card
then you need to can use the rp-pppoe (probably also included in mandriva)

there are some startup scripts in the rp-pppoe package that can explain how
to use it. It is not very hard to setup I remember.

Tlowk
 
Old 11-01-2005, 11:03 AM   #5
trendsetter
LQ Newbie
 
Registered: Nov 2005
Posts: 22

Original Poster
Rep: Reputation: 15
here is ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:12:3F6:31:6F
inet addr:192.168.187.130 Bcast:192.168.187.255 Mask:255.255.255.0
inet6 addr: fe80::212:3fff:fed6:316f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:256 errors:0 dropped:0 overruns:0 frame:0
TX packets:879 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:25815 (25.2 KiB) TX bytes:62283 (60.8 KiB)
Interrupt:18

eth1 Link encap:UNSPEC HWaddr 32-4F-C0-00-06-2A-58-3C-00-00-00-00-00-00-00
-00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

eth2 Link encap:Ethernet HWaddr 00:12:F0:8D:C5:86
inet6 addr: fe80::212:f0ff:fe8d:c586/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:17 Memory:dfcfd000-dfcfdfff

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:429 errors:0 dropped:0 overruns:0 frame:0
TX packets:429 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25260 (24.6 KiB) TX bytes:25260 (24.6 KiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


and the route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.187.0 * 255.255.255.0 U 10 0 0 eth0




i used rp-pppoe as well..it didnt work out.
so any idea whats wrong?
 
Old 11-01-2005, 11:17 AM   #6
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184

Rep: Reputation: 36
did you run some config script?
you can also check the /var/log/messages file which can give some extra info

Last edited by tlowk; 11-01-2005 at 11:20 AM.
 
Old 11-01-2005, 11:29 AM   #7
trendsetter
LQ Newbie
 
Registered: Nov 2005
Posts: 22

Original Poster
Rep: Reputation: 15
what will that do?
i have no idea what to do
 
Old 11-01-2005, 11:33 AM   #8
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184

Rep: Reputation: 36
grep pppd /var/log/messages | less

now you will get (if everything is the way I expect it to be) a log of the previous
connections (up and down arrows , q to end)

maybe you can find some message about what device is used for the pppoe
which will be eth1 or eth2 from what I see, and what type of authentication (pap
or chap) and is the username in the style (user@provider)
 
Old 11-01-2005, 11:44 AM   #9
trendsetter
LQ Newbie
 
Registered: Nov 2005
Posts: 22

Original Poster
Rep: Reputation: 15
i know i have to use eth0. coz its the network card. and i connect internet thru it. the problem is i can work with lan smoothly, no problem. its only whe n i setup lan and adsl both, i cant connect to lan and internet both. i know there should be some easier ways....
 
Old 11-01-2005, 11:46 AM   #10
trendsetter
LQ Newbie
 
Registered: Nov 2005
Posts: 22

Original Poster
Rep: Reputation: 15
or am i just #$%ed up
 
Old 11-01-2005, 11:56 AM   #11
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184

Rep: Reputation: 36
You want to use your eth0 with an ipaddress and pppoe?

I've never done it but maybe you need to configure after setting up the pppoe
connection the eth0 ip again

ip a a 192.168.187.130/24 dev eth0
or
ipconfig eth0 192.168.187.130 255.255.255.0 up

do you have a reason the have the adsl 'modem' on the same nic as your network?
 
Old 11-01-2005, 01:27 PM   #12
trendsetter
LQ Newbie
 
Registered: Nov 2005
Posts: 22

Original Poster
Rep: Reputation: 15
of course!! i have broadcom 44X as eth0, this means i should be using pppoe and lan both from same NIC, dont i? but of course when i use pppoe i can't use lan or vice versa. and its not adsl modem, actually i dont know what it is. i have a this broadcom network card, which is the only way to access network recources, no modem no nothing. i get username and password from isp and use it which in windows xp works fine. this linux is driving me crazy!!!!!
 
Old 11-01-2005, 01:39 PM   #14
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184

Rep: Reputation: 36
How is the nic connected?

is it a pci card with a rj45 to you lan and a separate cable to you phoneline (or cable)



another thing you can try in to see what it is doing in windows

ipconfig /all
route print

maybe this way it is possible to find out what windows is doing with it, I hope that it explains what is going on since I don't see yet how your connection works

another thing that can help is the program ethereal use the windows version and filter on
'pppoe || lcp' for your various network interfaces and see which one handles the connection.
when connecting you will see stuff like PADI PADO PADR PADS and LCP packets
 
Old 11-01-2005, 01:50 PM   #15
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184

Rep: Reputation: 36
I see you configure DHCP on your ppp0 which is not very common, since the ppp protocol has its own system to configure that info, I think that it is in the LCP packets.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring Mandrake 9.2 on home LAN with ADSL connection AndyD Linux - Networking 18 01-12-2006 09:37 AM
machine has adsl ethernet modem, to make it gateway over lan do i need more lan cards b0nd Linux - Networking 2 10-04-2005 10:19 PM
LAN connection works with SuSE 9.0 not Mandrake 9.1, why? ickselglic Linux - Hardware 0 02-08-2004 08:48 AM
WLAN problems -- driver works, AP is being found but no LAN connection... tomatensaft Linux - Wireless Networking 3 09-24-2003 01:57 AM
Mandrake ADSL and Win NT LAN connection willieDunno Mandriva 6 08-25-2003 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration