LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   lan connection works but adsl doesn't, why? (https://www.linuxquestions.org/questions/linux-networking-3/lan-connection-works-but-adsl-doesn%27t-why-378878/)

trendsetter 11-01-2005 04:53 AM

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

tlowk 11-01-2005 06:37 AM

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

trendsetter 11-01-2005 10:37 AM

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...

tlowk 11-01-2005 10:44 AM

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

trendsetter 11-01-2005 11:03 AM

here is ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:12:3F:D6: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?

tlowk 11-01-2005 11:17 AM

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

trendsetter 11-01-2005 11:29 AM

what will that do?
i have no idea what to do

tlowk 11-01-2005 11:33 AM

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)

trendsetter 11-01-2005 11:44 AM

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....

trendsetter 11-01-2005 11:46 AM

or am i just #$%ed up

tlowk 11-01-2005 11:56 AM

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?

trendsetter 11-01-2005 01:27 PM

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!!!!!

trendsetter 11-01-2005 01:39 PM

these are the settings:

http://img85.imageshack.us/img85/7092/ppp07gz.jpg

http://img85.imageshack.us/img85/813/ppp0dhcp6dp.jpg

http://img85.imageshack.us/img85/6566/eth00cc.jpg

tlowk 11-01-2005 01:39 PM

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

tlowk 11-01-2005 01:50 PM

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.


All times are GMT -5. The time now is 05:58 PM.