unnecessary route entry?


 
Thread Tools Search this Thread
Special Forums IP Networking unnecessary route entry?
# 1  
Old 07-13-2002
unnecessary route entry?

Good day Smilie

I recently checked some stuff on my gateway and discovered what I believe is an unneeded route entry.

# route -n
Kernel IP routing table
Destination Gateway Genmask ... Iface
287.265.45.0 0.0.0.0 255.255.255.0 ... eth0
192.168.0.0 0.0.0.0 255.255.255.0 ... eth1
127.0.0.0 0.0.0.0 255.0.0.0 ... lo
0.0.0.0 287.265.45.1 0.0.0.0 ... eth0

The first entry sends packets targeted for the 287.265.45-network directly right (not through another gateway)?

But is this really necessary? Since...

$ traceroute 287.265.45.133
traceroute to 287.265.45.133 (287.265.45.133), 30 hops max, 40 byte packets
1 287.265.45.1 (287.265.45.1) 227.574 ms 12.567 ms 12.8 ms
2 blabla.example.com (287.265.45.133) 2222.17 ms 2719.7 ms 3233.03 ms

... shows that the packets travel through 287.265.45.1 anyway.

[Yes, the ip-adress 287... is invalid, I changed it Smilie ]
# 2  
Old 07-16-2002
You probably need it. Here is an explaination from SUN - ( I know you aren't running Solaris (the route -n command does not give the information you showed)).

Q: What routes are automatically set up?

A: A few routes automatically get set up every time your machine is
booted.

First, all machines will always have a localhost route back to
themselves:

Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
127.0.0.1 127.0.0.1 UH 0 591 lo0

This is standard and increases the efficiency of packets that a
machine sends to itself.

Second, Solaris machines have a special multicast route:

224.0.0.0 150.101.16.28 U 3 0 le0

Multicast routes are used by certain programs that broadcast to a
group of machines rather than to the subnet in general.

Finally, all machines will always set up one route for each of their
interfaces. The route will be a simple one which says that all packets
which go to the interface's network should be routed through the
interface.

For example, I have one interface, le0, with an IP address of
150.101.16.28. Since I use a netmask of 255.255.255.0, this means that
my local network is 150.101.16.0, and the route looks like this:

150.101.16.0 150.101.16.28 U 3 951 le0

(It should be noted that machines which use point-to-point interfaces,
such as PPP, will have slightly different routes consult the PPP Tip
Sheet for more info on these.)
# 3  
Old 07-17-2002
Lightbulb

aha, thanks for the reply Smilie

I have also seen route entries that has a route to itself (not the 127.0.0.1 adress). Say my IP-adress on the Internet is 123.45.67.89, a route will then look like this:

Destination Gateway Netmask Interface

123.45.67.89 - 0.0.0.0 - 255.255.255.255 - eth0


Any ideas why this is used? Is it even 'necessary'?

/J.P
# 4  
Old 07-17-2002
Here is the link to the whole document on Sunsolve:
explaination of routes

Simply, ask yourself the following:

1. Is it working?
Yes - don't mess with it
No - go to 2
2. Did it work before?
Yes - go to 3
No - call support
3. Did someone change something?
Yes - go to 4
No - call support
4. Can you change it back?
Yes - should be fixed - if not call support
No - go to 5
5. Will you be blamed?
Yes - update resume
No - don't worry about it

If you are just experimenting - insure it is on a box that won't matter if it dies - then, change what you want, reboot, see what happens. You never posted your OS so I can't give you more than this - your OS may have different ways of doing things than Solaris so I can't give you more than this. Read the document.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Avoid running unnecessary repetitive ps command

i have the following code: APIDS=$(echo $(ps -ef | awk -v gpid="${gpid}" '$2 == gpid || $3 == gpid {print $2,$3}') | sed 's~ ~|~g') AllProcs=$(ps -ef | awk -v allpids="${APIDS}" '$2 ~ allpids || $3 ~ allpids {print $0}' | sed '/^$/d') it seems the above... (6 Replies)
Discussion started by: SkySmart
6 Replies

2. How to Post in the The UNIX and Linux Forums

Help me, write a bash script to delete parent entry with all their child entry in LDAP UNIX server

Hi All, Please help me and guide me to write a bash/shell script on Linux box to delete parent entry with all their child entries. example: Parent is : ---------- dn: email=yogesh.kumar@wipro.com, o=wipro, o=in child is: ---------- dn: cn: yogesh kumar, email=yogesh.kumar@wipro.com,... (1 Reply)
Discussion started by: Chand
1 Replies

3. Shell Programming and Scripting

Shell script that should remove unnecessary commas between double quotes in CSV file

i have data as below 123,"paul phiri",paul@yahoo.com,"po.box 23, BT","Eco Bank,Blantyre,Malawi" i need an output to be 123,"paul phiri",paul@yahoo.com,"po.box 23 BT","Eco Bank Blantyre Malawi" (5 Replies)
Discussion started by: mathias23
5 Replies

4. UNIX for Dummies Questions & Answers

Removing unnecessary eol ($) character from Oracle sql query output

Hi All, I am fetching oracle query result in shell variable. As columns numbers are more the output wraps in unix terminal .i.e one complete record in db gets store in multiple lines. with each line ends with $ character. I want to remove these unnecessary $ character but to keep required $... (8 Replies)
Discussion started by: Harshal22
8 Replies

5. Solaris

to clean unnecessary files and folders

I want to clean used solaris OS and then to give another developer. How can I understand that difference between system file/folder and others. I want to delete apart from the files/folders. I need tools or scripts like disk-cleanup or something like that. #usr>du -s -h * 6.6M 4lib ... (1 Reply)
Discussion started by: getrue
1 Replies

6. Solaris

how do i make a route entry permanent in the routing table on solaris 8?

how do I make sure that the entry in the routing table on Solaris 8 stay permanent after rebooting the server. For example route add 172.20.1.60 -netmask 255.255.255.0 172.20.255.253 Each time the server reboots the entry disappears when using the command netstat -nr (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

7. Shell Programming and Scripting

Removing unnecessary Delimiters from a file

Hi all, I have a pipe delimited file - (sample data) 1|1|K|Doe|1234567890|123456789|EXP|99|99|John|Y|Dallas|Texas|Kyle|999 2|1|A|2|01/01/9999|Appl|01/01/9999|vendor|Select|||||| 3|1|A|2|01/01/9999|Check|01/01/9999|ksmith|Suggest|||||| 4|1|T|Complaint|Mary|01/01/9999|01/01/9999|||||||... (2 Replies)
Discussion started by: sumeet
2 Replies

8. UNIX for Advanced & Expert Users

remove unnecessary comma from file

HI all, I have a file with following data - test1 "ABC,D",1234,"XYZ,QWER",1234 "SZXA",9870,"ASD,QWERT",234 "XZ,SD",9478,"ADCS,AXZ",876 "WESR",8764,"AQZXAS",9888 "WESR",9898,"WESDRTSAW",3323 I need to get rid of unnecessary commas in fields having double quotes. Ouput - ... (1 Reply)
Discussion started by: sumeet
1 Replies

9. UNIX for Dummies Questions & Answers

Comparing filename-substrings and remove unnecessary files

hi folks... i have to write a sript that removes unnecessary backup-files. iam new to shell scripting so please be patient with me. and no its not homework :p these files look like "javacore303330.1209029863.txt" where the first number is the PID and the second is the timestamp. so there can be... (5 Replies)
Discussion started by: cypher82
5 Replies

10. UNIX for Dummies Questions & Answers

remove unnecessary lines

If I have a file with 5000 lines contains numbers. Some of the number are repeated and some are not. Among those repeated number, I only would like to keep only one. How do I remove those balance repeated number. Your help is much appreciated. Thank you. (3 Replies)
Discussion started by: nazri
3 Replies
Login or Register to Ask a Question