CONFIGURING IP ADDRESSES Router#configure terminal Routerconfig#interface type slot/port Routerconfig-if#ip address Routerconfig-if# no shutdown... Configuring an Ethernet interface R
Trang 1Module 02 Cisco IOS
Chapter 09 Basic Router Configuration and Operation
Trang 2Table of Content
Trang 31 CONFIGURING IP ADDRESSES.
Trang 4CONFIGURING IP ADDRESSES
Router#configure terminal
Router(config)#interface type slot/port
Router(config-if)#ip address <ip address> <netmask>
Router(config-if)# no shutdown
Trang 5Configuring an Ethernet interface
Router# configure terminal
Router(config)# interface ethernet 0/0
Router(config-if)# ip address <ip address> <netmask>
Router(config-if)# no shutdown
Trang 6Configuring interface description
Router# configure terminal
Router(config)# interface type slot/port
Router(config-if)# description xyz
Trang 7Configure Habitually On Routers
The exec timeout minutes seconds command sets the
inactivity timeout.
The logging synchronous line subcommand tells the
router not to interrupt the output of a show command with
these unsolicited messages, letting you read the output of
the command that you typed before the router displays the
other messages.
Trang 8SHOW IP ROUTE command
Trang 9SHOW IP PROTOCOLS command
Trang 10Troubleshooting using show
controllers serial
Trang 112 IP TROUBLESHOOTING
FEATURES
Trang 13Error reporting and error correction
Workstation 6
C A
Workstation 1
Fa0/0
ICMP
Destination unreachable
Trang 15Destination unreachable
C A
• An ICMP destination unreachable message is send if:
−Host or port unreachable
−Network unreachable
Trang 16Destination unreachable message
Type(3) Code(0-12) Checksum
Unused (must be zero)
Internet Header + First 64 bits of datagram
• The value of 3 in the type field indicates it is a
destination unreachable message
• The code value indicates the reason the packet could not be delivered
Trang 174 Fragmentation needed and DF set
5 Source route failed
6 Destination network unknown
7 Destination host unknown
8 Source Host Isolated
9 Communication with destination network administratively prohibited
10 Communication with destination network administratively prohibited
11 Network unreachable for type of device
12 Host unreachable for type of device
Trang 18ICMP echo reply ICMP echo request
Trang 19ICMP echo messages
Type (0 or 8) Code (0) Checksum
Trang 20Detecting excessively long routes
• When the TTL of the datagram value reaches zero, the packet is discarded
• ICMP uses a time exceeded message to notify the source device that the TTL of the datagram has been exceeded
Trang 2117 Address Mask Request
18 Address Mask Reply
• Unlike error messages, control messages are used to inform hosts of conditions such as network congestion or the existence of a better gateway to a remote network
• Like all ICMP messages, ICMP control messages are
encapsulated within an IP datagram
• ICMP uses IP datagrams in order
to traverse multiple networks
Trang 22Ctrl-Shift-6 x
Enter
1 Exit Disconnect
Show sessions
Trang 23Introduction to CDP
Trang 24 VTP Management Domain Name (CDPv2 only)
Native VLAN (CDPv2 only)
Full/Half-Duplex (CDPv2 only)
Trang 27Show cdp neighbor
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Holdtme apability latform PortID
SCA0425051J Fas 0/24 158 T S WS-C6509 3/20
Switch Fas 0/23 147 T S WS-C2924-XFas 0/24
Trang 28Platform: WS-C6509, Capabilities: Trans-Bridge Switch
Interface: FastEthernet0/24, Port ID (outgoing port): 3/20
Platform: cisco WS-C2924-XL, Capabilities: Trans-Bridge Switch
Interface: FastEthernet0/23, Port ID (outgoing port): FastEthernet0/24
Holdtime : 127 sec