LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-18-2003, 06:22 AM   #1
guanyu
Member
 
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111

Rep: Reputation: 15
NAT ADSL disconnected problem


Hey guys,
I am having this problem. My external is ppp0 and internal is eth1.
Everything boot up I have to add the command under
/etc/rc.d/rc.local
route del default
route add -net 0.0.0.0 gw 219.93.x.x netmask 0.0.0.0 ppp0
route add -net 192.168.1.1 netmask 255.255.255 255 eth1
If I don't add it, my server and all my clients couldn't browse or ping out internal. Well my problem is when my adsl disconnected, and it will connect back to normal. But my routing lost the default as I mentioned above. Is that anyway to solve it? Thank you and have a nice day.

Guan
 
Old 02-20-2003, 05:48 PM   #2
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
in dial up ppp there is an opton called "defaultroute" that adds the ppp gateway as the default router. I'm not sure how it is set in pppoe but you need a similar option.
 
  


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 no-nat dopamina Linux - Networking 4 01-17-2006 11:25 AM
iptables, nat, dhcp with adsl modem/router and wireless AP gjhicks Linux - Wireless Networking 8 05-16-2005 06:15 AM
internet gets disconnected usb adsl jwijesundra Linux - Hardware 6 08-21-2004 05:24 PM
Setting up a NAT/ Packet filter setup on ADSL router pcwulf Linux - Networking 1 11-28-2003 01:57 PM
Adsl Nat guanyu Linux - Networking 3 12-26-2002 11:48 PM

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

All times are GMT -5. The time now is 09:36 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