LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Strange ip from the result of tracert command (https://www.linuxquestions.org/questions/linux-networking-3/strange-ip-from-the-result-of-tracert-command-281515/)

mrpc_cambodia 01-24-2005 03:07 AM

Strange ip from the result of tracert command
 
In my LAN, client workstations connect to the internet through a linux system. the linux has 2 network interfaces.
one connect to the local LAN and the other one connect to the isp. i haved checked both network interface ip address. it is 192.168.0.254
and the other one is 203.X.X.X.

when i use command "tracert www.microsoft.com" from a workstation within the LAN, it shows lines below:

1) 192.168.0.254
2) 192.168.36.1
more ............................
more ...........................


from the result, the first line is my linux internal ip. and the second line should be my linux external ip but it's not.
So what's wrong?

Can somebody explain me why it shows this ip "192.168.36.1" instead of my linux external ip?


Thanks,

Frustin 01-24-2005 04:42 AM

thats the router by the looks of things.

TheIrish 01-24-2005 05:19 AM

Quote:

thats the router by the looks of things.
not really, unless you use an unusual netmask. Router's local ip address and PC's local ip address must be in the same network.
Also, you're saying that the 2nd interface takes the isp address, so you're using a modem or a router with traditional bridging.
It might that your provider uses a class C gateway for internal use.

mrpc_cambodia 01-24-2005 10:44 PM

But i wonder why i don't see the ip of my external network interface from the result of tracert command?

I use linux as gateway/router.


Thanks,

cowanrl 01-25-2005 06:49 AM

You should only get 1 reply per router. Your Linux machine will send back an ICMP message from the 192.168.0.254 interface since that's the interface it received the packet on.

I'm not sure where the 192.168.36.1 is coming from. The next step should be your ISP but that address doesn't make sense at all. What's in the route table on the Linux machine(execute route -n)?


All times are GMT -5. The time now is 01:15 PM.