routing table question

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat routing table question
# 1  
Old 03-05-2010
routing table question

I have below routing table in linux kernel 2.6.9
Code:
[root@TSTgcota ~]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.155.24.0     0.0.0.0         255.255.252.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         10.155.24.1     0.0.0.0         UG        0 0          0 eth0

If the packet go to 169.254.1.1 , which road od it go ??Where does it destined??
If the packet go to 10.155.24.10 , which road it go ?? where does it destined??
If the packet go to 1.1.1.1 which road it go ?? where does it destined ????
Please advice .

Last edited by pludi; 03-05-2010 at 04:40 AM.. Reason: code tags, please...
# 2  
Old 03-05-2010
What ever packet u send it will hit 10.155.24.1 first .

For the path you can use "traceroute"

Code:
traceroute 10.155.24.10

# 3  
Old 03-05-2010
Quote:
Originally Posted by amitranjansahu
What ever packet u send it will hit 10.155.24.1 first .

For the path you can use "traceroute"

Code:
traceroute 10.155.24.10


So, is it 0.0.0.0 mean any IP address or destined address ??
So, can I remove below two entries ??
Code:
 
10.155.24.0     0.0.0.0         255.255.252.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0

As the entry start 0.0.0.0 already represent all IP route to 10.155.24.1 ??
Please advice ....
# 4  
Old 03-05-2010
I think you're not quite sure what the entrances in your routing table stands for, so lets take them step by step.
Code:
10.155.24.0     0.0.0.0         255.255.252.0   U         0 0          0 eth0

is telling that your eth0 is assigned an IP address within the 10.155.24.0 address range with a subnet matching 255.255.252.0
Code:
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0

is the default address space where the interface assumes to have an IP within should the dhcp request fail, this can be removed since we assume the dhcp request would never fail.
Code:
0.0.0.0         10.155.24.1     0.0.0.0         UG        0 0          0 eth0

This is the default route "UG" telling that anything the machine wants to reached should be asked for at the IP 10.155.24.1, conveniently it is matching the address space provided to your interface.
# 5  
Old 03-09-2010
HI,
How can you know which route is for DHCP ,which route is for other as
the first two route look like the same apart from the different IP 10.155.24 /169.254.9... ..
Could you advice how you can recongise/differentiate them????
Code:
 
10.155.24.0     0.0.0.0         255.255.252.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0

# 6  
Old 03-09-2010
The network 169.254.0.0/16 is a specialized IP range defined in RFC 3330: This is the "link local" block. It is allocated for communication between hosts on a single link. Hosts obtain these addresses by auto-configuration, such as when a DHCP server may not be found.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

how to read routing table

Hi all, Could someone please explain to me how I should read this routing table, # netstat -rn Routing tables Destination Gateway Flags Refs Interface Pmtu 127.0.0.1 127.0.0.1 UH 0 lo0 32808 10.222.47.82 10.222.47.82 UH... (3 Replies)
Discussion started by: rachael
3 Replies

2. IP Networking

IP routing table restore

Hello. Is there any way to restore back the default ip routing table ? For example, my current routing table is something like Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 109.123.95.0 0.0.0.0 255.255.255.0 U 0 ... (0 Replies)
Discussion started by: anid
0 Replies

3. Linux

Routing Table

Hello, how to make entries in routing table perminent (1 Reply)
Discussion started by: teenasuresh
1 Replies

4. IP Networking

Routing table

Hi all, I am confusing with routing table, i use linux and iptables. i have 1 internet gateway, and 1 router for VPN. here is my network. eth0=192.168.0.1 eth1=192.168.100.1 192.168.0.0/24 --- eth0(Linux Box)eth1 ---(DSL)---Internet | ... (4 Replies)
Discussion started by: blesets
4 Replies

5. IP Networking

routing table

hi all... i need to know, where is locate the routing table on sun solaris, how i can saved the configuration.... because when i restart the server, lost the configuration.... thank you... Regards... (3 Replies)
Discussion started by: chanfle
3 Replies

6. AIX

Dynamic routing table

i have AIX Unix with "dynamic routing table" service enabled, but i do not need this service. How i can disable this service. thanks (1 Reply)
Discussion started by: jdsnbr
1 Replies

7. IP Networking

Ip routing table

hi all, how to access ip routing table throgh program, how should i integrate my rip routing table with the ip routing table :) (0 Replies)
Discussion started by: vinodkumar
0 Replies

8. IP Networking

routing table (netstat -rn)

Is ther a way to retain say, a default gateway entered in a routing table after a reboot? I end up always having to re-enter my default gateway after I reboot my system. Thanks! (4 Replies)
Discussion started by: thundrrod
4 Replies

9. UNIX for Dummies Questions & Answers

not following routing table

Hi, I'm trying to connect to a network device, with the connection follwoing the UNIX routing table we set up. Its to go via a specific network Gateway and out throught a specific Lan card (Lan4). However when trying to conenct it keeps going through Lan3 and will not get to its destination.... (3 Replies)
Discussion started by: nhatch
3 Replies

10. UNIX for Dummies Questions & Answers

Kernel Routing Table

How can i set an permanent route so that itīs still here after a reboot ? i have a gateways file Thanks :confused: :confused: :confused: (1 Reply)
Discussion started by: redcrosskbg
1 Replies
Login or Register to Ask a Question