LinuxQuestions.org
Visit Jeremy's Blog.
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 04-01-2002, 12:46 PM   #1
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
routing problem


I have a firewall script which i use for masq. I have a DSL connection, eth0 is my external connection and eth1 is my internal. I am masq form ppp0 to eth1.

everything works just fine but when i see my route table i see something funy.

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.7.31.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
10.10.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.10.1.0 0.0.0.0 255.255.255.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 10.7.31.1 0.0.0.0 UG 0 0 0 ppp0


why do i see 10.7.31.1? how did it become my default gateway? I fixed my subnet to 10.10 then from where did this 10.7 come from?

can anyone clear this for me????????

thank you,
manthram
 
Old 04-01-2002, 12:51 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,533

Rep: Reputation: 148Reputation: 148
If you could write which device has which IP....
 
Old 04-01-2002, 12:54 PM   #3
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
10.7.31.1

Seems to be your gateway to the outside world. The machine at your ISP that is routing all of your traffic. Here's a snippet of one of mine, also pppoe, eathlink, and the route table will look a little funkier as its an older kernel:

user-112urs1.bi * 255.255.255.255 UH 0 0 0 ppp0
localnet * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default user-112urs1.bi 0.0.0.0 UG 0 0 0 ppp0

Cheers,

Finegan
 
Old 04-01-2002, 06:22 PM   #4
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Original Poster
Rep: Reputation: 31
and all the while i thought my computer was giving out that ip.
thanks finegan for the input, but I have a question, isnt the 10.0.0.0 network reserved for private networks?
 
Old 04-01-2002, 06:47 PM   #5
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Actually, getting my head out of my ass and looking at routing tables again, I am mistaken, as it seems that 10.7.31.1 is not actually the gateway's IP, which should be visible from ifconfig, but infact that is your IP. This is rather odd but believable as a lot of ISPs are really cheap with their static IPs.

Luck,

Finegan
 
Old 04-01-2002, 07:30 PM   #6
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Original Poster
Rep: Reputation: 31
I dont understand what you are telling me, you say that is my ip, what is giving that ip?

my ifconfig says that it is using this ip as p-t-p

ppp0 Link encap:Point-to-Point Protocol
inet addr:141.158.226.27 P-t-P:10.7.31.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:1355426 errors:0 dropped:0 overruns:0 frame:0
TX packets:995651 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1406602349 (1341.4 Mb) TX bytes:115974836 (110.6 Mb)


why is this happenening? when I do a traceroute i see that the packes are going out using this ip
 
Old 04-01-2002, 07:42 PM   #7
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Again, ignore that post where I claimed I had my head up my ass. Its out, I'm looking around, and that 144.x.x.x is actually your IP, but oddly enough you have a ptp connection with a machine on a class A private network, which is weird. Yeah, it indeed seems your gateway is on a private network, which means that something up the ladder is NAT'ing for you.

Cheers,

Finegan
 
  


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
routing problem DRagonRage Debian 8 09-21-2005 03:29 PM
routing problem DRagonRage Linux - Networking 1 09-21-2005 01:02 PM
Routing problem Infernal211283 Linux - Networking 3 02-28-2005 02:59 AM
Another Routing problem Bambi Linux - Networking 2 06-03-2004 03:13 PM
routing problem nowonmai Linux - Networking 2 10-09-2003 07:59 AM


All times are GMT -5. The time now is 07:55 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration