1 of 13

Using Cisco with Linux

You don’t need to be a mechanic to drive a car

2 of 13

The power of networking layers

  • Network layering can divide systems into manageable parts.
  • Parts can be from different vendors, but the protocols used are the same regardless of what company made them.
  • Network layering can allow communication between high level layers regardless of how the underlying equipment operates.

Think of the envelope within another envelope analogy.

​

​

​

​

​

​

​

Instead of the OSI model, let’s use the simpler “networking” model.

​

3 of 13

Networking Layering

Each step, the appropriate layer is analyzed to decide which way the payload should go.

Lower level methods can vary widely.

​

Here we see a MS-Word file being transmitted by a crewman using a pocket USB stick.

4 of 13

Let’s discuss Ethernet.

Usually, a user is aware of Layer3 settings such as IP, Netmask and Gateway.

​

Not much thought goes into Layer2 settings. Factory default settings are often enough

​

Reasons you might add more switches

-Expand port count.

-Speed up local PC to PC communication.

-Separate network traffic

https://www.wireshark.org/tools/oui-lookup.html

5 of 13

IP and Ethernet

6 of 13

VLANs and ports

Suppose you want to run some small isolated networks between two locations

​

One way to do that is to just buy a bunch of little switches and run 4 wires from downstairs to upstairs.

​

The other way is to buy two large switches. Assign a VLAN number to each port. Then connect both switches with a port configured to pass ALL frames. Such a port is called a TRUNK port.

In summary...

VLAN number on a port means each FRAME has a TAG number.

-Ports with same VLAN number can talk to each other.

-Each host on a VLAN can ARP with other hosts using the same VLAN

-Ports linking switches together are usually configured as TRUNKS,

7 of 13

How are VLAN tags used with switches?

If all switches use Trunk ports, any VLAN can be made available on any switch

​

Based on the ports available on the switch, you may be able to use fiber for more speed.

​

You can combine ports using Etherchannel to give more throughput and/or resiliency

​

Spanning tree feature can prevent loops.

​

Ethernet is nice but there are limits.

A reliable distance between switches is only 100M (300ft). Longer distances require a different solution shown on the next slide.

8 of 13

Lets add a router.

A router can be configured to allow communication between VLANs.

​

A router can process with different protocols to go much longer distances. For example, An ISP router may use other non-Ethernet serial cards to allow communication over many miles.

​

A router can also provide services to each VLAN such as DHCP, DNS,Time and telecom services.

​

Earlier, we saw how HOSTS in the same VLAN use ARP. Let’s look at how a router uses it.

​

Instead of each VLAN consuming an individual router port, typically a router connects to a switch TRUNK port. The router divides it’s interface port into sub- interfaces. Frame tags decide which VLAN connects to which sub-interface.

9 of 13

A router as a gateway – using proxy arp

Your router becomes a catch-all for any host addresses that are NOT in the range of the local network.

On the Ethernet side, each frame has it’s packet data analyzed. On the other side of the router, the packet is re-encapsulated in whatever transport is used for the next hop.

Usually, a router has an Ethernet out, but it doesn’t need to. You can get cards that allow connection to Modbus Serial, T1, Cisco’s serial HDLC and a bunch of other protocols. What a router port (or it’s interface) is capable of depends on the Chassis, software version, expansion card(s) and license. The main idea is the source and destination IP remains the same. How a packet gets there can vary widely.

10 of 13

Let’s look at NAT and PAT, the protocol that saved the Internet.

As public IP addresses ran out, people moved to private addresses with NAT.

11 of 13

Communicate using a console cable and USB dongle - install Putty

Note: Putty copy operation is highlight. Paste is operated via the middle mouse button.

12 of 13

Quick intro to configuration

You can connect either by console cable or remotely through SSH or Telnet

​

Boot mode

Gives an opportunity to reset configuration or upload software via console

​

User mode

Not many privileges

​

Enable mode

Running configuration vs Stored configuration (show run vs show conf)

O.S. stored in Flash: and settings stored in NVRAM:

Copy run start (or write) copies run configuration to the stored configuration

Reload command

​

Configuration Mode

-Modify running configuration

-The ”no” and “do” prefix

-Show command completion

13 of 13

Now, a practical example. What can you do with a router?

Demonstration follows...