Tabela de Roteamento


Tabela de roteamento

Roteador Cisco

Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, Serial0/0/0
S    192.168.0.1/24 [0/1] via 10.1.1.2
R    192.1.1.0/24 [120/1] via 10.1.1.1, 00:00:17, Serial0/0/0
R    192.1.2.0/24 [120/1] via 10.1.1.1, 00:00:17, Serial0/0/0

Cisco PIX & ASA

RagazziD# sh route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is 10.0.0.1 to network 0.0.0.0

C    10.0.0.0 255.255.255.0 is directly connected, outside
C    172.20.0.0 255.255.255.0 is directly connected, dmz
C    192.168.0.0 255.255.255.0 is directly connected, inside
S    172.16.0.0 255.255.255.0 [1/0] via 172.20.0.10, dmz

Windows

C:\Users\dr357f>netstat -rn
===========================================================================
Interface List
 35...02 00 4c 4f 4f 50 ......Microsoft Loopback Adapter
 16...8c 70 5a 6f f0 24 ......Intel(R) Centrino(R) Advanced-N 6205
 14...d0 67 e5 ff 17 c9 ......Intel(R) 82579LM Gigabit Network Connection
 31...08 00 27 00 08 ae ......VirtualBox Host-Only Ethernet Adapter
  1...........................Software Loopback Interface 1
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.0.1     192.168.0.10    20
          0.0.0.0          0.0.0.0         10.0.0.1        10.0.0.10    276
         10.0.0.0        255.0.0.0         On-link         10.0.0.10    276
         224.0.0.0       240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link      192.168.0.10    276
        224.0.0.0        240.0.0.0         On-link      192.168.0.10    286
        224.0.0.0        240.0.0.0         On-link         10.0.0.10    276
        224.0.0.0        240.0.0.0         On-link      192.168.0.10    257
        224.0.0.0        240.0.0.0     192.168.0.1      192.168.0.10      1
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link      192.168.0.10    276
  255.255.255.255  255.255.255.255         On-link      192.168.0.10    286
  255.255.255.255  255.255.255.255         On-link         10.0.0.10    276
  255.255.255.255  255.255.255.255         On-link      192.168.0.10    257
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0         10.0.0.1  Default
===========================================================================

Linux

ragazziD@RagazziD:~> netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
10.0.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
0.0.0.0         192.168.0.0     0.0.0.0         UG        0 0          0 eth0

MacOS

RagazziD-Mac:~ root# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags        Refs      Use   Netif Expire
5/24               192.168.206.2      UGSc            0        0     en0
127                127.0.0.1          UCS             0        0     lo0
127.0.0.1          127.0.0.1          UH              0        0     lo0
169.254            link#4             UCS             0        0     en0
192.168.206        link#4             UCS             4        0     en0
192.168.206.1      link#4             UHLWI           0        0     en0
192.168.206.2      link#4             UHLWI           1        0     en0
192.168.206.137    127.0.0.1          UHS             0        0     lo0
192.168.206.254    0:50:56:f7:5b:cd   UHLWI           0        1     en0    674

Internet6:
Destination                             Gateway                         Flags         Netif Expire
::1                                     ::1                             UH              lo0
fe80::%lo0/64                           fe80::1%lo0                     Uc              lo0
fe80::1%lo0                             link#1                          UHL             lo0
fe80::%en0/64                           link#4                          UC              en0
fe80::20c:29ff:feca:85df%en0            0:c:29:ca:85:df                 UHL             lo0
ff01::/32                               ::1                             Um              lo0
ff02::/32                               ::1                             UmC             lo0
ff02::/32                               link#4                          UmC             en0

Referências

Veja também:

Category:Roteamento Category:Rotas Category:Linux Category:Windows Category:MacOS Category:Mac Category:Cisco Category:Redes Category:Firewall Category:Roteador