2 Replies Latest reply: Aug 27, 2012 8:17 AM by rukbat RSS

    Change display sequence of command 'netstat -rn'

    Jackie Han-Oracle
      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