Re: Netstat -nr Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris Miller wrote:
All the info you guys gave me was what I needed thank you.

One last problem

eth0 has ip 10.0.0.253
eth0:1 has ip 192.168.0.253

my gateway is 10.0.0.254

I am trying to go to a server with ip 192.168.0.252 why is 252 showing
192.168.0.253 as the ip that is trying to talk to it.  Since 10.0.0.253
is the main ip and 10.0.0.254 is the default gateway?

The default gateway is -only- used for IP addresses that are not connected to the same local network that you are.


192.168.0.252 and 192.168.0.253 are in the same local network (presuming a class C subnet mask) and presumably attached to the same network of switches and hubs.

When your system goes to send a packet to 192.168.0.252 it notes that it has an interface on the same network, and sends the packet out that interface and directly to the destination system.

This information should also be in your netstat -rn output, with lines like:
10.0.0.0    0.0.0.0  255.255.255.0     U 0 0 0 eth0
192.168.0.0 0.0.0.0  255.255.255.0     U 0 0 0 eth0:1
0.0.0.0     10.0.0.254      0.0.0.0    UG 0 0 0 eth0

IE:
route traffic to 10.0.0.0-10.0.0.254 directly out eth0.
route traffic to 192.168.0.0-192.168.0.254 directly out eth0:1
route any other traffic through 10.0.0.254 (through eth0)




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux