LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-24-2005, 03:07 AM   #1
mrpc_cambodia
Member
 
Registered: Jun 2004
Posts: 131

Rep: Reputation: 15
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,
 
Old 01-24-2005, 04:42 AM   #2
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
thats the router by the looks of things.
 
Old 01-24-2005, 05:19 AM   #3
TheIrish
Member
 
Registered: Oct 2003
Location: ITALY
Distribution: Debian, Ubuntu, Fedora
Posts: 137

Rep: Reputation: 15
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.

Last edited by TheIrish; 01-24-2005 at 05:22 AM.
 
Old 01-24-2005, 10:44 PM   #4
mrpc_cambodia
Member
 
Registered: Jun 2004
Posts: 131

Original Poster
Rep: Reputation: 15
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,
 
Old 01-25-2005, 06:49 AM   #5
cowanrl
Member
 
Registered: Dec 2004
Location: Western Pennsylvania, USA
Distribution: Red Hat
Posts: 150

Rep: Reputation: 15
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)?
 
  


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
How to set PATH variable for command tracert? princegbenga Linux - Software 2 06-14-2007 07:48 AM
really strange glxgears result... ganja_guru Linux - Software 8 02-16-2005 03:27 AM
BASH Command Result redhatnoob Programming 2 08-19-2004 06:25 PM
command ifconfig, route, tracert... missing in /bin mae Red Hat 2 09-18-2003 09:08 AM
Strange CD Burning Result liaohaohui Linux - Hardware 6 08-28-2003 01:58 AM

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

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