DHCP (Dynamic Host Configuration Protocol) is a protocol used to provide
quick, automatic, and central management for the distribution of IP addresses
within a network.
DHCP is also used to configure the proper subnet mask, default gateway, and DNS
server information on the device.
Recall that DHCP clients broadcast their
DHCPDiscover packets, when searching for a DHCP server. What would happen if
the DHCP server is on a different network, separated from the clients by a
router? Routers, by default, will never forward a broadcast. Thus, in the above
example, the client would never be able to reach the DHCP server to acquire its
IP address. That is, unless the ip helper-address command is used.
What
is Telnet?
Telnet is a terminal emulation program for TCP/IP networks such as the Internet.
The Telnet program runs on your computer and connects your PC to a server on
the network. You can then enter commands through the Telnet program and they
will be executed as if you were entering them directly on the server console.
This enables you to control the server and communicate with other servers on
the network. To start a Telnet session, you must log in to a server by entering
a valid username and password. Telnet is a common way to remotely control Web
servers. Telnet use port 23.
The
Telnet Protocol
The Telnet protocol is designed to
provide a bi-directional, eight-bit byte oriented communications facility to
allow for a standard method of interfacing terminal devices and processes. Additional
information on the Telnet protocol specification can be found RFC854.
Recall that a trunk’s frame
tagging protocol can be auto negotiated, through the use of the Dynamic
Trunking Protocol (DTP). DTP can also negotiate whether a port becomes a trunk
at all.
Examples demonstrated how to
manually configure a port to trunk:
Switch(config)# interface gi2/24
Switch(config-if)# switchport
mode trunk
DTP has two modes to dynamically decide
whether a port becomes a trunk:
Desirable
– the
port will actively attempt to form a trunk with the remote switch. This is the
default setting.
Auto
–
the port will passively wait for the remote switch to initiate the trunk.
What is VTP (VLAN Trunking Protocol)?
VTP (VLAN Trunking Protocol) is a Cisco proprietary
protocol used by Cisco switches to exchange VLAN information. With VTP, you can
synchronize VLAN information (like VLAN ID or VLAN name) with switches inside
the same VTP domain.
VTP Versions
There are three versions of VTP. VTP version 1 supports
the standard 1 – 1005 VLAN range. VTP version 1 is also default on Catalyst
switches.
VTP version 2 introduces
some additional features:
Token Ring support
VLAN
consistency checks
Domain-independent
transparent pass through VTPv1 and v2 are not compatible. The VTP version is
dictated by the VTP server, discussed in detail shortly. If the VTP server is
configured for VTPv2, all other switches in the VTP domain will change to v2 as
well. Until recently, VTP Version 3 was supported on only limited Cisco switch platforms.
VTPv3 was built to be flexible, and can forward both VLAN and other database
information, such as Multiple Spanning Tree (MST) protocol.
Other enhancements
provided by VTPv3 include:
Support for the extended 1006-4094 VLAN range.
Support for private VLANs.
Improved VTP authentication.
Protection from accidental database overwrites, by
using VTP primary and secondary servers.
Ability to enable VTP on a per-port basis.
Each switch can use one of
three different VTP modes:
1. VTP client mode –
a switch using this mode can’t change its VLAN configuration. That means that a
VTP client switch can’t create or delete VLANs. Received VTP updates are
processed and forwarded.
2. VTP server mode –
a switch using this mode can create and delete VLANs. A VTP server switch will
propagate VLAN changes. This is the default mode for Cisco switches.
3. VTP transparent mode –
a switch using this mode doesn’t share its VLAN database, but it forwards
received VTP advertisements. You can create and delete VLANs on a VTP
transparent switch, but the changes are not sent to other switches.
Local Area Network
(LAN) Switches support different Switching Methods. Important Switching Methods
are store and forward, cut-through and fragment-free. Switching Methods
determine how a switch receives, processes, and forwards a Layer 2
Ethernet frame.
Store and Forward Switching
In Store and forward switching, Switch copies
each complete Ethernet frame into the
switch memory and computes a Cyclic Redundancy Check (CRC) for errors. If a
Cyclic Redundancy Check (CRC) error is found, the Ethernet frame is dropped and if there is no Cyclic Redundancy
Check (CRC) error, the switch forwards the Ethernet frame to the destination device. Store and forward
switching can cause delay in switching since Cyclic Redundancy Check (CRC) is
calculated for each Ethernet frame.
Cut-through Switching
In cut-through switching, the switch copies into
its memory only the destination MAC address
(first 6 bytes of the frame) of the frame
before making a switching decision. A switch operating in cut-through switching
mode reduces delay because the switch starts to forward the Ethernet
frame as soon as it reads the destination MAC
address and determines the outgoing switch
port. Problem related with cut-through switching is that the switch may forward
bad frames.
Fragment-Free Switching
Fragment-free (runt less switching) switching is
an advanced form of cut-through switching. The switches operating in
cut-through switching read only up to the destination MAC address field in the Ethernet frame before making a switching decision. The switches
operating in fragment-free switching read at least 64 bytes of the Ethernet
frame before switching it to avoid forwarding Ethernet
runt frames (Ethernet frames smaller than 64
bytes).