Chapter 4.1 Networking
Chapter 4.1 Networking
Source IP Address
Destination IP Address
Options (optional)
Padding
IPv4 Packet
IPv4 Header Fields
Internet Header Length (IHL), Total Length, Header Checksum,
Identification, Flags, Fragment Offset
Source IP Address
Destination IP Address
Options (optional)
Padding
Network Layer in Communication
Limitations of IPv4
IP Address depletion
Internet routing table expansion
Lack of end-to-end connectivity
Network Layer in Communication
Introducing IPv6
Increased address space
Improved packet handling
Eliminates the need for NAT
Integrated security
4 billion IPv4 addresses
4,000,000,000
340 undecillion IPv6 addresses
340,000,000,000,000,000,000,000,000,000,000,000,000
IPv6 Packet
Encapsulating IPv6
IPv6 Packet
IPv6 Packet Header
Byte 1 Byte 2 Byte 3 Byte 4
Next
Payload Length Hop Limit
Header
Source IP Address
Destination IP Address
Routing
Host Routing Tables
Host Routing Tables
Host Packet Forwarding Decision
Host Routing Tables
Default Gateway
Hosts must maintain their own, local, routing table to ensure
that network layer packets are directed to the correct
destination network. The local table of the host typically
contains:
Direct connection R
192.168.11.0/24 10.1.2.0/24
R1#show ip route
Codes: L - local, C - connected, S - static, 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
192.168.11.0/24 10.1.2.0/24
A B C
C 192.168.10.0/24 is directly connected, GigabitEthernet0/0
L 192.168.10.1/32 is directly connected, GigabitEthernet0/0
192.168.11.0/24 10.1.2.0/24
192.168.11.0/24 10.1.2.0/24
R1#show ip route
Codes: L - local, C - connected, S - static, 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
Volatile /
Memory Stores
Non-Volatile
• Running IOS
• Running configuration file
RAM Volatile
• IP routing and ARP tables
• Packet buffer
• Bootup instructions
ROM Non-Volatile • Basic diagnostic software
• Limited IOS
NVRAM Non-Volatile • Startup configuration file
• IOS
Flash Non-Volatile
• Other system files
Configure Initial Settings
Router Configuration Steps
192.168.10.0/24 10.1.1.0/24
.10 G0/0 .10
PC1 .1
209.165.200.224 /30
.1
.225 .226
R1 S0/0/0 R2
.10 .1 .1 .10
PC2 G0/1
192.168.11.0/24 10.1.2.0/24
192.168.11.0/24 10.1.2.0/24
R1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#
R1(config)# interface gigabitethernet 0/0
R1(config-if)# ip address 192.168.10.1 255.255.255.0
R1(config-if)# description Link to LAN-10
R1(config-if)# no shutdown
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0,
changed state to up
R1(config-if)# exit
R1(config)#
R1(config)# int g0/1
R1(config-if)# ip add 192.168.11.1 255.255.255.0
R1(config-if)# des Link to LAN-11
R1(config-if)# no shut
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1,
changed state to up
R1(config-if)# exit
R1(config)#
Configure Interfaces
Verify Interface Configuration
192.168.10.0/24 10.1.1.0/24
.10 G0/0 .10
PC1 .1 209.165.200.224 /30
.1
.225 .226
R1 S0/0/0 R2
.10 .1 .1 .10
PC2 G0/1
192.168.11.0/24 10.1.2.0/24
R1#
Configuring a Cisco Router
Configuring the Default Gateway
Configuring the Default Gateway
Default Gateway on a Host
.10
PC1 192.168.10.0/24
.1
.10 G0/0
PC2
R1
G0/1
.1
.10
.10 PC1 192.168.10.0/24
PC3
.1
.11 G0/0
.10 192.168.11.0/24 PC2
PC4
R1
G0/1
.1
.10
PC3
.11 192.168.11.0/24
PC4
Configuring the Default Gateway
Default Gateway on a Switch
S1#show running-config
Building configuration...
!
<output omitted>
service password-encryption
!
hostname S1
!
Interface Vlan1
ip address 192.168.10.50
!
ip default-gateway 192.168.10.1
<output omitted>
.10
PC1 192.168.10.0/24 192.168.11.0/24
.1 .1
G0/0 G0/1 S2
.11
S1 R1
PC2 .50