Archive for May, 2009

Ethernet is a contention media access method that allows all hosts on a network to share the same bandwidth of a link. Ethernet is popular because it’s readily scalable, meaning that it’s comparatively easy to integrate new technologies, such as Fast Ethernet and Gigabit Ethernet, into an existing network infrastructure. It’s also relatively simple to implement in the first place, and with it, troubleshooting is reasonably straightforward. Ethernet uses both Data Link and Physical layer specifications, and this section of the chapter will give you both the Data Link and Physical layer information you need to effectively implement, troubleshoot, and maintain an Ethernet network.

Ethernet networking uses Carrier Sense Multiple Access with Collision Detection (CSMA/ CD), a protocol that helps devices share the bandwidth evenly without having two devices transmit at the same time on the network medium. CSMA/CD was created to overcome the problem of those collisions that occur when packets are transmitted simultaneously from different nodes. And trust me good collision management is crucial, because when a node transmits in a CSMA/CD network, all the other nodes on the network receive and examine that transmission. Only bridges and routers can effectively prevent a transmission from propagating throughout the entire network!

Ethernet Cabling

In: Networking

6 May 2009

The types of Ethernet cables available are:
- Straight-through cable
- Crossover cable
- Rolled cable

Straight-Through Cable

The straight-through cable is used to connect
- Host to switch or hub
- Router to switch or hub

Four wires are used in straight-through cable to connect Ethernet devices. It is relatively simple to create this type; Figure as below shows the four wires used in a straight-through Ethernet cable.

straight-through-ethernet-cable

Notice that only pins 1, 2, 3, and 6 are used. Just connect 1 to 1, 2 to 2, 3 to 3, and 6 to 6, and you’ll be up and networking in no time. However, remember that this would be an Ethernet-only cable and wouldn’t work with Voice, Token Ring, ISDN, etc.

Crossover Cable
The crossover cable can be used to connect :

- Switch to switch
- Hub to hub
- Host to host
- Hub to switch
- Router direct to host

The same four wires are used in this cable as in the straight-through cable; we just connect different pins together. Figure as below shows how the four wires are used in a crossover Ethernet cable.
Notice that instead of connecting 1 to 1, etc., here we connect pins 1 to 3 and 2 to 6 on each side of the cable.

Ethernet at the Physical Layer
Ethernet was first implemented by a group called DIX (Digital, Intel, and Xerox). They created and implemented the first Ethernet LAN specification, which the IEEE used to create the IEEE 802.3 Committee. This was a 10Mbps network that ran on coax, and then eventually twistedpair and fiber physical media.

The IEEE extended the 802.3 Committee to two new committees known as 802.3u (Fast Ethernet) and 802.3ab (Gigabit Ethernet on category 5) and then finally 802.3ae (10Gbps over fiber and coax).

Figure as below shows the IEEE 802.3 and original Ethernet Physical layer specifications. When designing your LAN, it’s really important to understand the different types of Ethernet media available to you. Sure, it would be great to run Gigabit Ethernet to each desktop and 10Gbps between switches, and although this might happen one day, justifying the cost of that network today would be pretty difficult. But if you mix and match the different types of Ethernet media methods currently available, you can come up with a cost-effective network solution that works great.

ethernet-physical-layer

Ethernet at the Data Link Layer
Ethernet at the Data Link layer is responsible for Ethernet addressing, commonly referred to as hardware addressing or MAC addressing. Ethernet is also responsible for framing packets received from the Network layer and preparing them for transmission on the local network through the Ethernet contention media access method. There are four different types of Ethernet frames available:

- Ethernet_II
- IEEE 802.3
- IEEE 802.2
- SNAP

Ethernet Addressing

Here’s where we get into how Ethernet addressing works. It uses the Media Access Control (MAC) address burned into each and every Ethernet Network Interface Card (NIC). The MAC, or hardware address, is a 48-bit (6-byte) address written in a hexadecimal format. Figure as below shows the 48-bit MAC addresses and how the bits are divided.

mac-address

Cisco Router Subinterfaces

Subinterfaces allow you to create logical interfaces within the router. The prompt then changes to Router(config-subif)#

Router(config)#int fastethernet0/0.?
<0-4294967295> FastEthernet interface number

Router(config)#int fastethernet0/0.1
Router(config-subif)#

Line Commands
To configure user-mode passwords, use the line command. The prompt then becomes Router(config-line)#:

Router#config t
Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#line ?
<0-70> First Line number
aux Auxiliary line
console Primary terminal line
tty Terminal controller
vty Virtual terminal
x/y Slot/Port for Modems

2600A(config)#line
Router(config)#line console 0
Router(config-line)#

The line console 0 command is known as a major command (also called a global command), and any command typed from the (config-line) prompt is known as a subcommand.

Routing Protocol Configurations

To configure routing protocols such as RIP and IGRP, use the prompt (config-router)#:

Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#

Learn more next on how to setting up hostname on the cisco router here!

In order to configure and troubleshoot a Cisco internetwork, you need to know the major components of Cisco routers and understand what each one does. Table as below describes the major Cisco router components.

Component
Description
Bootstrap Stored in the microcode of the ROM, the bootstrap is used to bring
a router up during initialization. It will boot the router and then
load the IOS.
POST (power-onself-test) Stored in the microcode of the ROM, the POST is used to check the
basic functionality of the router hardware and determine which interfaces
are present.
ROM monitor Stored in the microcode of the ROM, the ROM monitor is used for
manufacturing, testing, and troubleshooting.
Mini-IOS Called the RXBOOT or bootloader by Cisco, the mini-IOS is a small
IOS in ROM that can be used to bring up an interface and load a Cisco
IOS into flash memory. The mini-IOS can also perform a few other maintenance
operations.
RAM (randomaccessmemory) Used to hold packet buffers, ARP cache, routing tables, and also
the software and data structures that allow the router to function.
Running-config is stored in RAM, and the IOS can also be run from
RAM in some routers.

To make changes to an interface, you use the interface command from global configuration mode:

Router(config)#interface ?
Async Async interface
BVI Bridge-Group Virtual Interface
CTunnel CTunnel interface
Dialer Dialer interface
FastEthernet FastEthernet IEEE 802.3
Group-Async Async Group interface
Lex Lex interface
Loopback Loopback interface
MFR Multilink Frame Relay bundle interface
Multilink Multilink-group interface
Null Null interface
Serial Serial Interface
Tunnel Tunnel interface
Vif PGM Multicast Host interface
Virtual-Template Virtual Template interface
Virtual-TokenRing Virtual TokenRing Interface
range interface range command

Router(config)#interface fastethernet 0/0
Router(config-if)#

Did you notice that the prompt changed to Router(config-if)#? This tells you that you’re in interface configuration mode. And wouldn’t it be nice if the prompt also gave you an indication of what interface you were configuring? Well, at least for now we’ll have to live without the prompt information, because it doesn’t.

You can also learn more about Cisco Router Subinterfaces here!