19.07.2013 Views

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix 4<br />

Dissecting the Windows Routing Table<br />

C:\>ipconfig<br />

Windows IP Configuration<br />

Ethernet adapter Local Area Connection:<br />

Connection-specific DNS Suffix . :<br />

IP Address. . . . . . . . . . . . : 172.16.0.2<br />

Subnet Mask . . . . . . . . . . . : 255.255.255.0<br />

Default Gateway . . . . . . . . . : 172.16.0.1<br />

C:\>route print or netstat –r<br />

===========================================================================<br />

Network Destination Netmask Gateway Interface Metric<br />

1 0.0.0.0 0.0.0.0 172.16.0.1 172.16.0.2 1<br />

2 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1<br />

3 172.16.0.0 255.255.255.0 172.16.0.2 172.16.0.2 20<br />

4 172.16.0.2 255.255.255.255 127.0.0.1 127.0.0.1 20<br />

5 172.16.255.255 255.255.255.255 172.16.0.2 172.16.0.2 20<br />

6 224.0.0.0 240.0.0.0 172.16.0.2 172.16.0.2 20<br />

7 255.255.255.255 255.255.255.255 172.16.0.2 172.16.0.2 1<br />

Default Gateway: 172.16.0.1<br />

===========================================================================<br />

- Gateway is the IP address of the next-hop router inbound interface.<br />

Interface is the IP address of the local router outbound interface.<br />

Metric is the distance to a remote (or destination) network. If there are multiple routes to a same<br />

network, the route with the lowest metric will be used to forward packets to the network.<br />

- Generally, gateway and interface reside in the same subnet.<br />

- Below describes all the routes displayed in the routing table above:<br />

1) Default route or default gateway.<br />

2) Loopback network – destine all packets to the 127.0.0.0/8 network to itself (127.0.0.1).<br />

3) Route to local network – the directly attached network.<br />

4) Route to local host (127.0.0.1), which is identified as a host route.<br />

5) Route to directed broadcast, the broadcast which is sent to all hosts of a particular subnet or<br />

a group of subnets. It is identified as a host route. May be forwarded by a router (normally<br />

the default gateway) configured with the ip directed-broadcast interface subcommand.<br />

6) Route to multicast networks.<br />

7) Route to flooded / limited broadcast, the local broadcast within a subnet. It is identified as a<br />

host route. Normally sent by hosts that do not know their network numbers and addresses and<br />

are querying some servers for those information (eg: DHCP). May be forwarded by routers<br />

with the ip helper-address {ip-addr} interface subcommand.<br />

Note: Host routes are destinations with the subnet mask of 255.255.255.255.<br />

- Below shows the command syntax for adding a [persistent] route:<br />

route [-p] add {dest-net-addr} mask {netmask} {gw-ip-addr} [metric {metric}]<br />

- Below shows the command syntax for deleting or removing an existing [persistent] route:<br />

route delete {dest-net-addr} [mask {netmask} [gw-ip-addr]]<br />

229<br />

Copyright © 2008 Yap Chin Hoong<br />

yapchinhoong@hotmail.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!