LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-10-2003, 12:46 PM   #1
Dataforce
Member
 
Registered: Nov 2003
Distribution: Redhat 9
Posts: 38

Rep: Reputation: 15
ADSL problems - Possibly "Route" issuses not sure :S


My Problem:
I have a Zoom X3 running in PPP Half-Bridge mode (sometimes known as DHCP Spoofing) and i've got it hooked up
to my rehat 8 machine.
I have configured eth1 (/etc/sysconfig/network-scripts/eth1) with the details of my static IP and subnet
etc and i can do ./ifup on the interface fine, and it allows me to ping machines on the ips
82.0.0.0 - 82.255.255.255

if i do route -n I get the follwoing:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.0 0.0.0.0 255.255.255.255 UH 0 0 0 lo
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
82.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1

and if i do ifup eth1:0 (contains the details of my 2nd static ip it turns into this:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.0 0.0.0.0 255.255.255.255 UH 0 0 0 lo
82.***.**.** 0.0.0.0 255.255.255.248 U 0 0 0 eth1 (masked)
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
82.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1

if I try to ping a machine with an ip beginning 82. (eg 82.133.120.221 (random IP that exists)) it does this:
[root@neo root]# ping 82.133.120.221
PING 82.133.120.221 (82.133.120.221) from <my ip addr> : 56(84) bytes of data.
<ping results here>

but when i try to ping an address like 213.48.150.3 i get the following :
[root@neo root]# ping 213.48.150.3
connect: Network is unreachable
[root@neo root]#

Can someone help me fix this?

Other possibly usefull Details:

Modem: Zoom X3 in PPP Half-bridge mode
ISP : Nildram UK
Type of connection : PPPoA (PPP over ATM)
ADSL Modulation: G.dmt
ENCAPSULATION: VC-Mux
NIC : Netgear EA201 - on eth1 - working fine, as it was temporarily used as my main NIC when the identical modle on eth0 was broken.

Anything else you need just ask

Thanks

Dataforce.

I think the problem is todo with my route settings, but I'm up for any solution that works (except reinstallation)

Last edited by Dataforce; 12-10-2003 at 01:09 PM.
 
Old 12-10-2003, 04:20 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You don't have default route set. As I see eth1 is your external interface, so run
route add default eth1
 
Old 12-10-2003, 05:42 PM   #3
balam
Member
 
Registered: Nov 2002
Location: us
Distribution: red hat
Posts: 143

Rep: Reputation: 15
if you are sharing dsl conecion / using the linux box as a router then you need to make your linux box a Nat, too
 
Old 12-11-2003, 06:58 AM   #4
Dataforce
Member
 
Registered: Nov 2003
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
I tried that many times :S

When i do that, it SOMETIMES works for about 2 mins, then it stops working :S

Balam: NAT is already configured from when i used ppp0 - the firewall rules have been updated to use eth1 not ppp0 - but thats not the problem i'm having
 
Old 12-11-2003, 11:47 AM   #5
balam
Member
 
Registered: Nov 2002
Location: us
Distribution: red hat
Posts: 143

Rep: Reputation: 15
now that I am remembering I had a similar problem like this one. I was using Mandrake, I my problem was the mandrake keep making down my ethernet card, .
 
Old 12-11-2003, 12:46 PM   #6
Dataforce
Member
 
Registered: Nov 2003
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
I thought that was happening, it didn't appear to be - the card still appears in ifconfig,

Then some1 told me that perhaps DHCPD was Changing the IP addr on me - so seeing as i have a fixed IP i set the values for the interface to the values from my ISP - but yet again, it still drops dead after a while :S
 
Old 12-11-2003, 01:19 PM   #7
Dataforce
Member
 
Registered: Nov 2003
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
I'm doing my planned upgrade to RH9 tonight, so I'll see if i can get it working on a clean install of RH.
 
Old 12-12-2003, 12:19 PM   #8
Dataforce
Member
 
Registered: Nov 2003
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
Unfortunatly my planned upgrade didn't fix the problem, it appears to have worsened it - and i can't go back cos i formatted before upgrading because i needed to (only had 1gb left)

New Routing Table:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
82.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth1


And when i ping i get :
[root@you root]# ping 82.133.120.221
PING 82.133.120.221 (82.133.120.221) 56(84) bytes of data.
From 82.***.***.*** icmp_seq=1 Destination Host Unreachable
From 82.***.***.*** icmp_seq=2 Destination Host Unreachable
From 82.***.***.*** icmp_seq=3 Destination Host Unreachable

Any ideas what todo ?
Has any one else used a Zoom X3 (or X4) in PPP Half Bridge with linux?
 
Old 12-14-2003, 12:33 AM   #9
kkerrigan
LQ Newbie
 
Registered: Dec 2003
Location: Westchester Co., NY
Distribution: RH 9.0
Posts: 2

Rep: Reputation: 0
Unhappy similar situation

I am in a very similar boat.

I was running RH 7.0 (a freebee) on an old 300MHz AOpen. I decided that it would be a good thing to set it up as the firewall/router/storage unit for my other computers to connect to. I have Verizon DSL, and here in lies my problems.

The rp-pppoe client wouldn't work with 7.0, pppd out of date and such. I went out and bought RH 9.0. It installed easily and even has its own pppoe client. I ran the adsl-setup script and tried to connect. I am halfway there. I have an IP connection to the outside world (I can ping the verizon server, and other ip's outside my local network. However, I cannot resolve any names. I reran the adsl-setup script with the ips of two of Verizon's local nameservers ns1.bellatlantic.net and ns2.bellatlantic.net I still get nothing.

It may be related to this as well. when I run Lynx, it will not connect to any website, even if I set the IP address instead of typing in the url

When I was messing with route and my iptable, I noticed that if I typed route -n a couple of times in a row, sometimes the connection would be there, and other times it wouldn't. It appears that the connection is being dropped and reinitializing, which may have something to do with the difficulty I am having manually editing the iptables.

Can anyone offer a suggestion?

Kevin
 
Old 12-14-2003, 12:40 AM   #10
kkerrigan
LQ Newbie
 
Registered: Dec 2003
Location: Westchester Co., NY
Distribution: RH 9.0
Posts: 2

Rep: Reputation: 0
PS

it may help to note that my home network looks like this:
|
Verizon's Westell DSL modem
|
linux box
|
Netgear 5port switch
| |
| |--------Win2000 workstation
|
D-link 802.11b WAP

IBM laptop (win2000/RH 9.0)

Compaq laptop (win2000 for SO)

Sharp Zaurus (linux PDA w/ D-link CF 802.11b card)
 
Old 12-14-2003, 02:00 PM   #11
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
kkerrigan, have you looked to /var/log/messages? If the connection was closed and then opened again, there will be thrace of the fact inside. The logs may give you clues. Or it just looks normal?
 
Old 12-16-2003, 10:36 AM   #12
Dataforce
Member
 
Registered: Nov 2003
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
Bleh i don't understand this, it works fine on windows but i really don't want windows as my gateway.

why can't linux just let a modem be plugged in, then try all interfaces to get a connection :S

Windows can ping other subnets (eg i can ping 10.0.0.2 from my 192.168.0.2) yet linux can't cos its ?to stupid to try it? ¬_¬
 
Old 12-19-2003, 06:53 PM   #13
Dataforce
Member
 
Registered: Nov 2003
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
please help guys i need to get this working :S
 
Old 12-20-2003, 04:15 PM   #14
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Could you write more about the IPs you use? You refer to 192.168.x.x addressses and 10.0.x.x addresses. Which ones you use in your local net?
Does the Net connection work at all (for short time or so?) How does your firewall/masquearading look like? Are you able to ping your global IP?
 
Old 12-21-2003, 09:25 PM   #15
Dataforce
Member
 
Registered: Nov 2003
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Mara
Could you write more about the IPs you use? You refer to 192.168.x.x addressses and 10.0.x.x addresses.
I was using that as an example how windows isn't so picky about subnets
Quote:
Originally posted by Mara
Which ones you use in your local net?
I use 192.168.0.x on my local net
Quote:
Originally posted by Mara
Does the Net connection work at all (for short time or so?)
Not when the router is plugged into the linux machine.
Quote:
Originally posted by Mara
How does your firewall/masquearading look like?
Atm there is no firewalling rules, I test the connection using lynx and the ping command
Quote:
Originally posted by Mara
Are you able to ping your global IP?
Yes, but i can do that regardless if the modem is conencted as long as the interface is up.
 
  


Reply



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
ADSL Problems: "cannot enable interface ppp0" funkymunky Linux - Networking 3 05-24-2005 06:19 AM
Problems with "adsl-setup" b0r Linux - Networking 2 02-22-2005 01:31 AM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM
anging "Protocol" option to "IMPS/2" in XF86Config-4 causes problems zstingx Linux - General 2 10-27-2003 09:47 AM
"unusable" network (possibly re. ARP) Ollie5882 Linux - Networking 9 10-10-2003 01:02 PM

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

All times are GMT -5. The time now is 06:58 AM.

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