Chapter 5 IP Address Configuration Connecting People To Information
Unique addressing allows communication between end stations Path choice is based on location Location is represented by an address Introduction to TCP/IP Addresses UNIX Host Company A Company B
Connecting People To Information IP Addressing 32 Bits NetworkHost 8 Bits Bits
Connecting People To Information Class A: Class B: Class C: Class D: for multicast Class E: for research N = Network number H = Host number IP Address Classes NHHHNNHHNNNH
Connecting People To Information IP Address Bit Patterns 1724 Class A: # Bits Class B: # Bits Class C: # Bits 0network #host #1network #host #01network #host #10
Connecting People To Information Recognizing Classes in IP Addresses (First Octet Rule) High Order Bits Octet in Decimal Address Class – – – 223 ABCABC
Configuring IP Addresses
Connecting People To Information Host Addresses IP: IP: E0E NetworkHost.. NetworkInterface E0 E1 Routing Table
Connecting People To Information Network Addressing without Subnets
Connecting People To Information Network Addressing with Subnets
Connecting People To Information Subnet Addressing IP: IP: E0E NetworkHost.. NetworkInterface E0 E1 New Routing Table Subnet
Connecting People To Information Subnet Mask IP Address Default Subnet Mask 8-bit Subnet Mask NetworkHost Use host bits, starting at the high order bit position NetworkHost NetworkSubnetHost
Connecting People To Information Decimal Equivalents of Bit Patterns = = = = = = = =
Connecting People To Information Network Host Subnets not in use—the default Subnet Mask without Subnets
Connecting People To Information NetworkHost Subnet Network number extended by eight bits Subnet Mask with Subnets
Connecting People To Information IP Host Address: Subnet Mask: Subnet Address = Host Addresses = – Broadcast Address = Eight bits of subnetting Network SubnetHost : : Subnet: Class B Subnet Planning Example
Connecting People To Information IP Host Address: Subnet Mask: NetworkSubnetHost : Subnet: : Class C Subnet Planning Example Subnet Address = Host Addresses = – Broadcast Address = Five Bits of Subnetting
Connecting People To Information Broadcast Addresses (Directed broadcast) (Local network broadcast) X
Connecting People To Information Written Exercise: Broadcast Addresses AddressClassSubnetBroadcast Subnet Mask
Connecting People To Information Subnetting Example Cisco A Cisco B E0 S0 E0 S0 To0 Cisco A E0: S0: S0: E0: To0: Cisco B Mask Subnet MaskSubnet
Connecting People To Information IP Address Configuration Router(config-if)# Assigns an address and subnet mask Starts IP processing on an interface ip address ip-address subnet-mask Router(config-if)# ip netmask-format { bitcount | decimal | hexadecimal } Sets format of network mask for a specific line Router# term ip netmask-format { bitcount | decimal | hexadecimal } Sets format of network mask for current session
Connecting People To Information Router(config)# Defines static host name to IP address mapping Hosts/interfaces selectable by name or IP address IP Host Names ip host name [ tcp-port-number ] address [ address ]… ip host P1R ip host P1R ip host P1R ip host P1R
Connecting People To Information Specifies one or more hosts that supply host name to logical address resolution Router(config)# Name Server Configuration ip name-server server-address1 [[ server-address2 ]... server-address6 ]
Connecting People To Information Verifying Address Configuration Application Transport Internet Network Interface Hardware Telnet ICMPtrace ping Application Transport Internet Network Interface Hardware Telnet ICMPtrace telnet trace
Connecting People To Information Tests IP network connectivity Simple Ping Router> ping Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:.!!!! Success rate is 80 percent, round-trip min/avg/max = 6/6/6 ms Router>
Connecting People To Information Ping supported for several protocols Extended Ping Router# ping Protocol [ip]: Target IP address: Repeat count [5]: Datagram size [100]: Timeout in seconds [2]: Extended commands [n]: y Source address: Type of service [0]: Set DF bit in IP header? [no]: yes Data pattern [0xABCD]: Loose, Strict, Record, Timestamp, Verbose[none]: Sweep range of sizes [n]: Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 24/26/28 ms Router#
Connecting People To Information Shows interface addresses used to reach the destination IP Trace Router# trace aba.nyc.mil Type escape sequence to abort. Tracing the route to aba.nyc.mil ( ) 1debris.cisco.com ( ) 1000 msec 8 msec 4 msec 2barrnet-gw.cisco.com ( ) 8 msec 8 msec 8 msec 3external-a-gateway.stanford.edu ( ) 8 msec 4 msec 4 msec 4bb2.su.barrnet.net ( ) 8 msec 8 msec 8 msec 5su.arc.barrnet.net ( ) 12 msec 12 msec 8 msec 6moffett-fld-mb.in.mil ( ) 216 msec 120 msec 132 msec 7aba.nyc.mil ( ) 412 msec * 664 msec