How to print the complete routing table?

Discussion in 'Mac Apps and Mac App Store' started by crenz, Nov 6, 2003.

  1. crenz macrumors 6502a

    crenz

    Joined:
    Jul 3, 2003
    Location:
    Shanghai, China
    #1
    How can I print the complete routing table on X.2/X.3? I'm trying to track down a weird routing problem and need some more information than what I get from "route -v get hostname".
     
  2. jeremy.king macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #2
    did you try traceroute

    Does
    traceroute -v hostname

    help?
     
  3. daveL macrumors 68020

    daveL

    Joined:
    Jun 18, 2003
    Location:
    Montana
    #3
    netstat -r or netstat -nr, depending on whether you want host names or ip addresses, respectively.

    This is the output of netstat -nr on my machine:

    [david]> netstat -nr
    Routing tables

    Internet:
    Destination Gateway Flags Refs Use Netif Expire
    default 10.1.1.100 UGSc 18 4 en1
    10.1.1/24 link#5 UCS 2 0 en1
    10.1.1.2 0:5:5d:da:c9:6f UHLW 2 181713 en1 660
    10.1.1.6 127.0.0.1 UHS 0 0 lo0
    10.1.1.100 0:5:5d:ee:be:a6 UHLW 18 513 en1 944
    127 127.0.0.1 UCS 0 0 lo0
    127.0.0.1 127.0.0.1 UH 8 13637 lo0
    169.254 link#5 UCS 0 0 en1

    Internet6:
    Destination Gateway Flags Netif Expire
    ::1 ::1 UH lo0
    fe80::/64 fe80::1 Uc lo0
    fe80::1 link#1 UHL lo0
    fe80::/64 link#5 UC en1
    fe80::230:65ff:fe0a:5ec2 0:30:65:a:5e:c2 UHL lo0
    ff01::/32 ::1 U lo0
    ff02::/32 ::1 UC lo0
    ff02::/32 link#5 UC en1
    [david]>

    HTH
     

Share This Page