Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Display the routing table in either Windows or Ubuntu Visa routningstabellen i antingen Windows eller Ubuntu

From a command prompt or terminal window, run this command: Från en kommandotolk eller terminalfönster kör detta kommando:

netstat -rn netstat-rn

You should see output that looks similar to this: Du borde se resultat som ser ut ungefär så här:

 Kernel IP routing table Kernel IP routing table 
 Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface Destination Gateway Genmask Flags MSS Window irtt iface 
 192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0 192.168.1.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 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 
 127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 
 0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 
This article was originally written on 09/11/06 Tagged with: Denna artikel skrevs ursprungligen på 09/11/06 Märkta med: Networking Nätverk , , Ubuntu Ubuntu , , Windows Windows

Daily Email Updates Dagligt Updates

You can get our how-to articles in your inbox each day for free. Du kan få våra instruktioner artiklar i din inkorg varje dag gratis. Just enter your name and email below: Skriv bara in ditt namn och e-postadress nedan:


Name: Namn:
Email: Email:

Comments (10) Kommentarer (10)

  1. Kanakan Kanakan

    This is not working on Windows XP. Detta fungerar inte i Windows XP. The correct option is “netstat -r” Det korrekta alternativet är "netstat-r"

  2. squir squir

    in what file does the routing table sit in Ubuntu i vilken fil gör routningstabellen sitta i Ubuntu

  3. Snezer Snezer

    Kanakan> You said that without testing it… didn't you? Kanakan> Du sa att utan att testa den ... inte ni? Big mistake. Stort misstag.

  4. Lynne Lynne

    Well the connection says its connected but The laptop will not go on line I Enabled the network sharing on the broad band connection but the laptop ( Ubuntu 8.04 ) is not getting on line . Väl anslutningen säger dess anslutna men Den bärbara datorn kommer inte att gå på linjen Jag aktiverade nätverk dela på bredband men den bärbara (Ubuntu 8,04) inte blir on line. . . Using a RJ – 45 connection between them Använda en RJ - 45 samband mellan dem

  5. Kanakan Kanakan

    I did test this. Jag gjorde testet här.

    C:\Documents and Settings\xyz>netstat -m C: \ Documents and Settings \ xyz> netstat-m

    Displays protocol statistics and current TCP/IP network connections. Visar protokoll statistik och aktuella TCP / IP-nätverksanslutningar.

    NETSTAT [-a] [-b] [-e] [-n] [-o] [-p proto] [-r] [-s] [-v] [interval] Netstat [-a] [-b] [-e] [-n] [-o] [-p proto] [-r] [-n] [-v] [intervall]

    -a Displays all connections and listening ports. -a Visar alla anslutningar och lyssnande portar.
    -b Displays the executable involved in creating each connection or -b Visar den körbara inblandade i skapandet av varje anslutning eller
    listening port. lyssnande port. In some cases well-known executables host I vissa fall välkända körbara värd
    multiple independent components, and in these cases the flera oberoende komponenter, och i dessa fall
    sequence of components involved in creating the connection sekvens av komponenter som skapar anslutningen
    or listening port is displayed. eller lyssnande port visas. In this case the executable I detta fall den körbara
    name is in [] at the bottom, on top is the component it called, namn är [] längst ner på toppen är den komponent som det kallas,
    and so forth until TCP/IP was reached. och så vidare tills TCP / IP nåddes. Note that this option Observera att detta alternativ
    can be time-consuming and will fail unless you have sufficient kan vara tidskrävande och kommer att misslyckas om du inte har tillräckligt
    permissions. behörigheter.
    -e Displays Ethernet statistics. -e Visar Ethernet-statistik. This may be combined with the -s Detta kan kombineras med-s
    option. alternativ.
    -n Displays addresses and port numbers in numerical form. -n Visar adresser och portnummer i numerisk form.
    -o Displays the owning process ID associated with each connection. -o Visar äger process-ID i samband med varje anslutning.
    -p proto Shows connections for the protocol specified by proto; proto -p proto Visar anslutningar för det protokoll som anges av proto; proto
    may be any of: TCP, UDP, TCPv6, or UDPv6. kan vara något av: TCP, UDP, TCPv6 eller UDPv6. If used with the -s Om det används med-s
    option to display per-protocol statistics, proto may be any of: alternativ för att visa per-protokoll statistik kan proto vara något av följande:
    IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6. IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, eller UDPv6.
    -r Displays the routing table. -r Visar routningstabellen.
    -s Displays per-protocol statistics. -s Visar per-protokoll statistik. By default, statistics are Som standard, statistik
    shown for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6; visas för IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, och UDPv6;
    the -p option may be used to specify a subset of the default. -p alternativet kan användas för att ange en delmängd av standard.
    -v When used in conjunction with -b, will display sequence of -v Vid användning tillsammans med-b, visas sekvens av
    components involved in creating the connection or listening komponenter som skapar anslutningen eller lyssnar
    port for all executables. port för alla körbara.
    interval Redisplays selected statistics, pausing interval seconds intervall visar återigen vald statistik, pauser intervall sekunder
    between each display. mellan varje skärm. Press CTRL+C to stop redisplaying Tryck Ctrl + C för att stoppa redisplaying
    statistics. statistik. If omitted, netstat will print the current Om utelämnas, kommer netstat ut den aktuella
    configuration information once. konfigurationsinformation gång.

    C:\Documents and Settings\xyz>netstat -r C: \ Documents and Settings \ xyz> netstat-r

    Route Table Route Tabell
    =========================================================================== ================================================== =========================
    Interface List Interface List
    0×1 ……………………… MS TCP Loopback interface 0 × 1 ... ... ... ... ... ... ... ... ... MS TCP Loopback interface
    0×2 …00 1c c4 20 9b 38 …… Realtek RTL8169/8110 Family Gigabit Ethernet NIC – Packet Scheduler Miniport 0 × 2 ... 00 1c c4 20 9b 38 ... ... Realtek RTL8169/8110 Family Gigabit Ethernet NIC - Packet Scheduler miniport
    =========================================================================== ================================================== =========================
    =========================================================================== ================================================== =========================
    Active Routes: Aktiva vägar:
    Network Destination Netmask Gateway Interface Metric Nätverk Destination Nätmask Gateway Interface Metric
    0.0.0.0 0.0.0.0 212.124.45.62 212.124.45.37 20 0.0.0.0 0.0.0.0 212.124.45.62 212.124.45.37 20
    127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
    212.124.45.32 255.255.255.224 212.124.45.37 212.124.45.37 20 212.124.45.32 255.255.255.224 212.124.45.37 212.124.45.37 20
    212.124.45.37 255.255.255.255 127.0.0.1 127.0.0.1 20 212.124.45.37 255.255.255.255 127.0.0.1 127.0.0.1 20
    212.124.45.255 255.255.255.255 212.124.45.37 212.124.45.37 20 212.124.45.255 255.255.255.255 212.124.45.37 212.124.45.37 20
    224.0.0.0 240.0.0.0 212.124.45.37 212.124.45.37 20 224.0.0.0 240.0.0.0 212.124.45.37 212.124.45.37 20
    255.255.255.255 255.255.255.255 212.124.45.37 212.124.45.37 1 255.255.255.255 255.255.255.255 212.124.45.37 212.124.45.37 1
    Default Gateway: 212.124.45.62 Standard-gateway: 212.124.45.62
    =========================================================================== ================================================== =========================
    Persistent Routes: Ihållande Rutter:
    None Ingen

  6. JRM JRM

    They wrote -r -n (-rn) you interpreted it as an m thus it did not work De skrev-r-n (-rn) du tolkade det som en meter varför det inte fungerade

    Cheers, Skål,
    JRM JRM

  7. Lynne Lynne

    I got it connected by changing the Network address in the RJ-45 ( network card in windows ) Jag fick den anslutna genom att ändra nätverket adressen i RJ-45 (nätverkskort i Windows)
    to 192.168.1.2 . till 192.168.1.2. . . You get to it by right clicking on the network connection and go down to “Properties” then when it comes up click on “Configure” next to the ( brand of network connection ) and it opens another Item go to “Advanced” and in the “Network Address” add the above 192.168.1.2 Linux will have already made the connection from its end . Du får den genom att högerklicka på nätverksanslutningen och gå ner till "Egenskaper" och sedan när det kommer upp klicka på "Configure" bredvid (märke nätverksanslutning) och det öppnar en annan punkt gå till "Avancerat" och i "Network Address" lägg ovanstående 192.168.1.2 Linux har redan gjort anslutningen från dess slut. . . Its windows which has problems doing much of any networking and is the biggest Problem of computers Dess fönster som har problem att göra mycket av något nätverk och är det största problemet med datorer
    Do you know I am able to do 2 X the speed of the speed on the windows computer going out the door via the RJ-45 connection and same fire wall ! Vet du jag kan göra 2 x hastighet för hastighet på Windows-datorn hoppar ut genom dörren via RJ-45 anslutning och samma brand vägg! Down load same file same web site in 1/2 the time in Linux . Ladda ner samma fil samma webbplats i 1 / 2 tiden i Linux. . . 1 in Ubuntu Linux , 1 in windows XP Pro ! 1 in Ubuntu Linux, 1 i Windows XP Pro! Explain that one ! Förklara att en! Same USB720 Verizon Modem Linux hits 2.9 megs per and windows if its lucky gets 1.3 megs per . Samma USB720 Verizon Modem Linux träffar 2,9 megabyte per och fönster om sin tur blir 1,3 megabyte per. . . WHY ? VARFÖR?
    I heard they totally re-wrote the Stack in Vista and still slow ( LMAO ) Jag hörde att de helt nytt skrev Stack i Vista och fortfarande långsamt (LMAO)

  8. Ihatebloatware Ihatebloatware

    lol I thought it was an 'm' too! lol jag trodde det var ett "m" också!

    Routing info you can also get with the commands “ipconfig” (Windows) and “ifconfig” (Linux). Routing info kan du också få med kommandot "ipconfig" (Windows) och "ifconfig" (Linux).

    Also in Linux try “iptables -L” to see the routing (and firewall) rules. Även i Linux försöka "iptables-L" för att se routing (och brandvägg) regler.

  9. mutilOSer mutilOSer

    Lynne, I get the same speed whether I use Windows XP, Windows Vista, Ubutu, or SLED. Lynne, får jag samma hastighet om jag använder Windows XP, Windows Vista, Ubutu eller släde. ~8Mb/s. ~ 8Mb / s.

    That is the limit that my ISP has imposed on me because of my lack of desire to spend more money per month. Det är den gräns som min ISP har ålagt mig på grund av min brist på lust att spendera mer pengar per månad.

    I wonder if it might have something to do with the fact that you're using a USB modem? Jag undrar om det kan ha något att göra med det faktum att du använder ett USB-modem? USB and Windows never really got along well… USB och Windows aldrig riktigt bra överens ...

  10. mutilOSer mutilOSer

    Hmm, actually, you say RJ-45, but the modem you list is USB wireless only… I dunno. Hmm, faktiskt, säger du RJ-45, men det modem du listan trådlösa USB bara ... Jag vet inte.


Our Friends Our Friends
Getting Started Komma igång


About How-To Geek Om How-To Geek
What Is That Process? Hur skall den processen?
svchost.exe svchost.exe
jusched.exe SynTPEnh.exe
dwm.exe dwm.exe
ctfmon.exe CTFMON.EXE
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.