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 Prikaži usmerjevalno tabelo bodisi v Ubuntu ali Windows

From a command prompt or terminal window, run this command: Od zapoved uren ali terminalsko okno, zaženite ta ukaz:

netstat -rn netstat-rn

You should see output that looks similar to this: Zdaj bi morali videti rezultat, ki je podoben temu:

 Kernel IP routing table Kernel IP routing tabelo 
 Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface Genmask Destination Gateway 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: Ta članek je bil prvotno napisan na 09/11/06 Tagged with: Networking Networking , , Ubuntu Ubuntu , , Windows Windows

Daily Email Updates Dnevni Email Updates

You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:


Name: Ime:
Email: E-pošta:

Comments (10) Komentarji (10)

  1. Kanakan Kanakan

    This is not working on Windows XP. To se ne dela na Windows XP. The correct option is “netstat -r” Pravilna možnost je "netstat-r"

  2. squir squir

    in what file does the routing table sit in Ubuntu v kakšnem file does usmerjevalne tabele sedijo v Ubuntu

  3. Snezer Snezer

    Kanakan> You said that without testing it… didn't you? Kanakan> Rekel si, da brez preskušanja to ... kajne? Big mistake. Velika napaka.

  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 . No povezave pravi njena povezana, vendar laptop ne bo šel na spletu sem Enabled delitev omrežja na širšem okviru skupine, vendar laptop (Ubuntu 8,04), je ne dobiš na spletu. . . Using a RJ – 45 connection between them Uporaba RJ - 45 povezave med njimi

  5. Kanakan Kanakan

    I did test this. Sem storil to test.

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

    Displays protocol statistics and current TCP/IP network connections. Prikazuje protokol statistika in trenutne TCP / IP omrežne povezave.

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

    -a Displays all connections and listening ports. -Prikaže vse povezave in poslušanje pristanišč.
    -b Displays the executable involved in creating each connection or -b Prikaže izvršljiv sodelujejo pri ustvarjanju vsake povezave ali
    listening port. poslušanje luka. In some cases well-known executables host V nekaterih primerih znanih izvršljiv gostitelja
    multiple independent components, and in these cases the več neodvisnih delov, in v teh primerih
    sequence of components involved in creating the connection zaporedje elementov, ki ustvarjajo povezave
    or listening port is displayed. ali poslušanje luka se prikaže. In this case the executable V tem primeru je izvršljiv
    name is in [] at the bottom, on top is the component it called, Ime je v [], na dnu, na vrhu je sestavni del se imenuje,
    and so forth until TCP/IP was reached. in tako naprej, dokler TCP / IP je bil dosežen. Note that this option Upoštevajte, da ta možnost
    can be time-consuming and will fail unless you have sufficient je lahko dolgotrajen in ne bo, razen če imate dovolj
    permissions. dovoljenja.
    -e Displays Ethernet statistics. e-Displays Ethernet statistike. This may be combined with the -s To se lahko kombinirajo s-s
    option. možnost.
    -n Displays addresses and port numbers in numerical form. -n Displays naslove in številke vrat v številčni obliki.
    -o Displays the owning process ID associated with each connection. -o Prikaže lastnice ID proces, povezan z vsako povezavo.
    -p proto Shows connections for the protocol specified by proto; proto p-proto Kaže priključki za protokol, ki ga proto; proto
    may be any of: TCP, UDP, TCPv6, or UDPv6. lahko katera koli od: TCP, UDP, TCPv6, ali UDPv6. If used with the -s Če se uporablja s-s
    option to display per-protocol statistics, proto may be any of: možnost za prikaz per-protokol statistiko, proto je lahko katera koli od:
    IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6. IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP ali UDPv6.
    -r Displays the routing table. -r Prikaže usmerjevalne tabele.
    -s Displays per-protocol statistics. Prikaže e-per-protokol statistike. By default, statistics are By default, statistike
    shown for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6; prikazan za IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, in UDPv6;
    the -p option may be used to specify a subset of the default. -p možnost se lahko uporabijo za določitev podmnožico neplačila.
    -v When used in conjunction with -b, will display sequence of -v Kadar se uporablja v povezavi z-b bo prikaz zaporedja
    components involved in creating the connection or listening komponente, ki ustvarjajo povezavo ali poslušanje
    port for all executables. pristanišče za vse izvedljive.
    interval Redisplays selected statistics, pausing interval seconds interval Redisplays izbrani statistični podatki, zamrznete interval sekund
    between each display. med posameznimi zaslonu. Press CTRL+C to stop redisplaying Press CTRL + C za ustavitev redisplaying
    statistics. statistike. If omitted, netstat will print the current Če izpustite, bo netstat tiskanja trenutne
    configuration information once. informacije o konfiguraciji enkrat.

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

    Route Table Route Table
    =========================================================================== ================================================== =========================
    Interface List Interface List
    0×1 ……………………… MS TCP Loopback interface 0 × 1 ... ... ... ... ... ... ... ... ... MS TCP Loopback vmesnik
    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 miniporta
    =========================================================================== ================================================== =========================
    =========================================================================== ================================================== =========================
    Active Routes: Active Routes:
    Network Destination Netmask Gateway Interface Metric Netmask Network Destination 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 Default Gateway: 212.124.45.62
    =========================================================================== ================================================== =========================
    Persistent Routes: Persistent Routes:
    None Nič

  6. JRM JRM

    They wrote -r -n (-rn) you interpreted it as an m thus it did not work To je napisal-r-n (-n), ki jo razlaga kot m tako ni dela

    Cheers, Na zdravje,
    JRM JRM

  7. Lynne Lynne

    I got it connected by changing the Network address in the RJ-45 ( network card in windows ) Imam povezan s spremembo v naslovu Network RJ-45 (omrežna kartica v okno)
    to 192.168.1.2 . na 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 . Razumeš, da ga z desnim klikom na omrežno povezavo in pojdite do "Lastnosti", potem ko gre gor kliknite na "Configure" zraven (blagovna znamka omrežne povezave) in se odpre druga točka pojdite na "Advanced" in v "Network Address" povečati zgornje 192.168.1.2 Linux bo že na povezavo iz svojega konca. . . Its windows which has problems doing much of any networking and is the biggest Problem of computers Njena okno, ki ima težave počne večina vseh mrež in je največji Problem računalnikov
    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 ! Ali veste, sem zmožen narediti 2 X hitrost hitrosti na oknih računalnik greva ven vrata preko RJ-45 povezavo in isti požarni zid! Down load same file same web site in 1/2 the time in Linux . Down obremenitev iste datoteke isto spletno stran v 1 / 2 časa v Linux. . . 1 in Ubuntu Linux , 1 in windows XP Pro ! 1 v Ubuntu Linux, 1 v okno XP Pro! Explain that one ! Pojasnite, da je eden! Same USB720 Verizon Modem Linux hits 2.9 megs per and windows if its lucky gets 1.3 megs per . Enako USB720 Verizon Modem Linux zadetkov na 2,9 MB in okna, če svojo srečo dobi 1,3 MB per. . . WHY ? ZAKAJ?
    I heard they totally re-wrote the Stack in Vista and still slow ( LMAO ) Slišal sem, da v celoti ponovno napisal Stack v razgled in še vedno počasna (LMAO)

  8. Ihatebloatware Ihatebloatware

    lol I thought it was an 'm' too! lol sem mislil, da je "m" preveč!

    Routing info you can also get with the commands “ipconfig” (Windows) and “ifconfig” (Linux). Routing informacije lahko dobite tudi z ukazi "ipconfig" (Windows) in "ifconfig" (Linux).

    Also in Linux try “iptables -L” to see the routing (and firewall) rules. Tudi v Linux začeti "iptables-L" za prikaz poti (in požarni zid) pravila.

  9. mutilOSer mutilOSer

    Lynne, I get the same speed whether I use Windows XP, Windows Vista, Ubutu, or SLED. Lynne, jaz zaslužiti isto hitrostjo, ali sem uporabo operacijskega sistema Windows XP, Windows Vista, Ubutu, ali sled. ~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. To je meja, da je moj ISP je naložena na mene zaradi moje pomanjkanje želje, da bi več denarja na mesec.

    I wonder if it might have something to do with the fact that you're using a USB modem? Zanima me, če bi moral kaj storiti z dejstvom, da ga uporabljate USB modema? USB and Windows never really got along well… USB in Windows nikoli ni zares prodrl skupaj dobro ...

  10. mutilOSer mutilOSer

    Hmm, actually, you say RJ-45, but the modem you list is USB wireless only… I dunno. Hmm, pravzaprav, pravite RJ-45, vendar modem, ki ga je seznam USB brezžična samo ... Ne vem.


Our Friends Naši prijatelji
Getting Started Getting Started


About How-To Geek O Kako naj Geek
What Is That Process? Kaj je to proces?
svchost.exe svchost.exe
jusched.exe jusched.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.