1825003 Members
3425 Online
109678 Solutions
New Discussion юеВ

Re: route table

 
MeZaRcI_1
New Member

route table

Hi
this is my route table
/root # netstat -rn
Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 260158914 lo0 4136
145.78.106.70 145.78.106.70 UH 0 58877 lan0 4136
145.78.106.64 145.78.106.70 U 2 0 lan0 1500
127.0.0.0 127.0.0.1 U 0 0 lo0 4136
default 145.78.106.65 UG 0 0 lan0 1500
My ip adres = 145.78.106.70
my GW = 145.78.106.65
my network = 145.78.106.64
why shoud i need a route from my ip to my ip ???

5 REPLIES 5
Ralph Grothe
Honored Contributor

Re: route table

This host route is automatically set by ifconfig if you also supply it with a netmask (which is common) when you bind an IP address to your NIC
Madness, thy name is system administration
hpuxrox
Respected Contributor

Re: route table

Why? Is something not working? That is a manual setting, but if you have to know; The network address will need to Hop from your network to your address. Then from your address to your default route. Its all about how the machine uses the MAC address.
Rahul Mehta_1
New Member

Re: route table

Your routing table looks some what weired to me.
actually your destination subnet should have your IP address as gateway address.
all the routes learned WITH "uh" IS FOR the host .
specimen of routing table.

Destination Gateway Flags Refs Use Interface Pmtu PmtuTime
10.17.17.1 127.0.0.1 UH 52 556998 lo0 4608
127.0.0.1 127.0.0.1 UH 0 3839 lo0 4608
default 10.17.16.2 UG 39 1065426 lan2 1500
10.17.16.0 10.17.17.1 U 4 43094 lan2 1500
Mark Greene_1
Honored Contributor

Re: route table

This bit:

127.0.0.1 127.0.0.1 UH 0 260158914 lo0 4136
145.78.106.70 145.78.106.70 UH 0 58877 lan0 4136

is normal, and automatically configured by the OS when you setup lan0.


mark
the future will be a lot like now, only later
harry d brown jr
Honored Contributor

Re: route table


Your config is "normal" for HP's.

It's there (your "145.78.106.70 145.78.106.70 UH 0 58877 lan0 4136") so processes on your machine that address your machines IP will stay on your machine without going to the wire (network).

live free or die
harry
Live Free or Die