Linux - NetworkingThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.