Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-01-2002, 12:46 PM
|
#1
|
|
Member
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456
Rep:
|
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
|
|
|
|
04-01-2002, 12:51 PM
|
#2
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,471
Rep: 
|
If you could write which device has which IP....
|
|
|
|
04-01-2002, 12:54 PM
|
#3
|
|
Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
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
|
|
|
|
04-01-2002, 06:22 PM
|
#4
|
|
Member
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456
Original Poster
Rep:
|
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?
|
|
|
|
04-01-2002, 06:47 PM
|
#5
|
|
Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
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
|
|
|
|
04-01-2002, 07:30 PM
|
#6
|
|
Member
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456
Original Poster
Rep:
|
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
|
|
|
|
04-01-2002, 07:42 PM
|
#7
|
|
Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:08 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|