Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Change display sequence of command 'netstat -rn'

Jackie Han-OracleAug 27 2012 — edited Aug 27 2012
Dear All,

When I use command 'netstat -rn', it shows:

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.145.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.19.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.145.1 0.0.0.0 UG 0 0 0 eth1

Now I want to change the display sequence and put eth0 on the first position, like below:

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.19.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.145.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.145.1 0.0.0.0 UG 0 0 0 eth1

Can I do this? Can anybody help me?

Thanks,
Jackie
This post has been answered by Billy Verreynne on Aug 27 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2012
Added on Aug 27 2012
2 comments
177 views