Difference between revisions of "B&O"

From Teknologisk videncenter
Jump to: navigation, search
(EIGRP)
 
(103 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''Dette vil blive brugt af studie grupper på B&O'''  
+
'''Dette vil blive brugt af studie grupper på B&O'''  
  
__TOC__ __NOEDITSECTION__
+
__TOC__
  
 
== CCNP  ==
 
== CCNP  ==
Line 286: Line 286:
  
 
Her vil der være forskellige ccna relaterede emner  
 
Her vil der være forskellige ccna relaterede emner  
 +
 +
=== Tools ===
 +
 +
* '''Ping''' – test the connection between two hosts
 +
* '''Ipconfig''' – get the settings for your local device
 +
* '''Nslookup''' – lookup ip address for an webpage or server
 +
* '''Tracert''' – test where an connection
 +
* '''Arp''' – address resolution protocol
 +
* '''Netstats''' – local TCP/UDP connection
 +
* '''Netstats -r''' – Routing information on local pc
 +
* '''Route print''' – Routing information on local pc
 +
<br>
 +
 +
=== Other Tools ===
 +
* '''Packet tracer''' - Cisco network simulation program
 +
 +
 +
=== Transfer Protocol ===
 +
<b>To be done</b>
 +
 +
=== OSI Model ===
 +
{| class="wikitable" style="float:left; margin:0 0 1em 1em;"
 +
|-
 +
! colspan="4" | OSI Model
 +
! colspan="2" | TCP/IP Model
 +
|-
 +
!
 +
!Data unit
 +
!Layer
 +
!style="width:30em;"|Function
 +
!Layer
 +
|-
 +
!rowspan="4"|Host<br />layers
 +
| style="background:#d8ec9b;" rowspan="3"|[[Data_(computing)|Data]]
 +
| style="background:#d8ec9b;"| 7. [[Application layer|Application]]
 +
| style="background:#d8ec9c;"|<small>Network process to application</small>
 +
| style="background:#d8ec9b;" rowspan="3"| 4. [[Application_layer_TCP/IP|Application]]
 +
|-
 +
| style="background:#d8ec9b;"|6. [[Presentation layer|Presentation]]
 +
| style="background:#d8ec9b;"|<small>Data representation, encryption and decryption, convert machine dependent data to machine independent data </small>
 +
|-
 +
| style="background:#d8ec9b;"|5. [[Session layer | Session]]
 +
| style="background:#d8ec9b;"|<small>Interhost communication, managing sessions between applications, local socket/session port</small>
 +
|-
 +
| style="background:#e7ed9c;"|[[Data_segment|Segments]]
 +
| style="background:#e7ed9c;"|4. [[Transport layer | Transport]]
 +
| style="background:#e7ed9c;"|<small>End-to-end connections, reliability and [[flow control]], [[http://mars.tekkom.dk/mediawiki/index.php/B%26O#Transfer_Protocol Transfer protocol]](TCP/UDP) and application ports</small>
 +
| style="background:#e7ed9c;"|3. [[Transport_layer_TCP/IP | Transport]]
 +
|-
 +
!rowspan="3"|Media<br />layers
 +
| style="background:#eddc9c;"|[[Network packet | Packet]]/[[Datagram]]
 +
| style="background:#eddc9c;"|3. [[Network layer | Network]]
 +
| style="background:#eddc9c;"|<small>Path determination and [[logical address]]ing</small>
 +
| style="background:#eddc9c;"|2. [[Internet_layer_TCP/IP | Internet]]
 +
|-
 +
| style="background:#e9c189;"|[[Frame (networking) | Frame]]
 +
| style="background:#e9c189;"|2. [[Data link layer|Data link]]
 +
| style="background:#e9c189;"|<small>[[Physical address|Physical addressing]]</small>
 +
| style="background:#e9c189;" rowspan="2"|1. [[Network_Access_layer_TCP/IP | Network<br/>Access]]
 +
|-
 +
| style="background:#e9988a;"|[[Bit]]
 +
| style="background:#e9988a;"|1. [[Physical layer|Physical]]
 +
| style="background:#e9988a;"|<small>Media, signal and binary transmission</small>
 +
|}
 +
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
 +
=== Application Protocols  ===
 +
 +
{| class="wikitable" style="float:left; margin:0 0 1em 1em;"
 +
|-
 +
!style="width:30em;"|Name
 +
! Short Name
 +
! Port
 +
! Transfer Protocol
 +
|-
 +
| style="background:#d8ec9b;"|File Transfer Protocol
 +
| style="background:#d8ec9b;"|FTP
 +
| style="background:#d8ec9b;"|20/21
 +
| style="background:#d8ec9b;"|TCP/UDP
 +
|-
 +
| style="background:#d8ec9b;"| Secure Shell
 +
| style="background:#d8ec9b;"|SSH
 +
| style="background:#d8ec9b;"|22
 +
| style="background:#d8ec9b;"|TCP
 +
|-
 +
| style="background:#d8ec9b;"| Telnet
 +
| style="background:#d8ec9b;"|Telnet
 +
| style="background:#d8ec9b;"|23
 +
| style="background:#d8ec9b;"|TCP
 +
|-
 +
| style="background:#d8ec9b;"| Simple Mail Transfer Protocol
 +
| style="background:#d8ec9b;"|SMTP
 +
| style="background:#d8ec9b;"|25
 +
| style="background:#d8ec9b;"|TCP
 +
|-
 +
| style="background:#d8ec9b;"| Domain Name System
 +
| style="background:#d8ec9b;"|DNS
 +
| style="background:#d8ec9b;"|53
 +
| style="background:#d8ec9b;"|TCP/UDP
 +
|-
 +
| style="background:#d8ec9b;"| Dynamic Host Configuration Protocol
 +
| style="background:#d8ec9b;"|DHCP
 +
| style="background:#d8ec9b;"|67/68
 +
| style="background:#d8ec9b;"|UDP
 +
|-
 +
| style="background:#d8ec9b;"| Trivial File Transfer Protocol
 +
| style="background:#d8ec9b;"|TFTP
 +
| style="background:#d8ec9b;"|69
 +
| style="background:#d8ec9b;"|UDP
 +
|-
 +
| style="background:#d8ec9b;"| HyperText Transfer Protocol
 +
| style="background:#d8ec9b;"|HTTP
 +
| style="background:#d8ec9b;"|80
 +
| style="background:#d8ec9b;"|TCP
 +
|-
 +
| style="background:#d8ec9b;"|Post Office Protocol
 +
| style="background:#d8ec9b;"|POP3
 +
| style="background:#d8ec9b;"|110
 +
| style="background:#d8ec9b;"|UDP
 +
|-
 +
| style="background:#d8ec9b;"|Simple Network Management Protocol
 +
| style="background:#d8ec9b;"|SNMP
 +
| style="background:#d8ec9b;"|161
 +
| style="background:#d8ec9b;"|TCP/UDP
 +
|-
 +
| style="background:#d8ec9b;"|Secure HyperText Transfer Protocol
 +
| style="background:#d8ec9b;"|HTTPS
 +
| style="background:#d8ec9b;"|443
 +
| style="background:#d8ec9b;"|TCP
 +
|}
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
=== Administrative distance (AD)  ===
 +
<br/>
 +
Administrative distance (AD) is the trustworthiness (or preference) of the route source.
 +
<br/>
 +
{| class="wikitable" style="float:left; margin:0 0 1em 1em;"
 +
|-
 +
!style="width:30em;"|Route Source
 +
! Administrative Distance
 +
|-
 +
| style="background:#d8ec9b;"|Connected
 +
| style="background:#d8ec9b;"|0
 +
|-
 +
| style="background:#d8ec9b;"|Static
 +
| style="background:#d8ec9b;"|1
 +
|-
 +
| style="background:#d8ec9b;"|EIGRP summery route
 +
| style="background:#d8ec9b;"|5
 +
|-
 +
| style="background:#d8ec9b;"|External BGP
 +
| style="background:#d8ec9b;"|20
 +
|-
 +
| style="background:#d8ec9b;"|Internal EIGRP
 +
| style="background:#d8ec9b;"|90
 +
|-
 +
| style="background:#d8ec9b;"|IRGP
 +
| style="background:#d8ec9b;"|100
 +
|-
 +
| style="background:#d8ec9b;"|OSPF
 +
| style="background:#d8ec9b;"|110
 +
|-
 +
| style="background:#d8ec9b;"|ISIS
 +
| style="background:#d8ec9b;"|115
 +
|-
 +
| style="background:#d8ec9b;"|RIP
 +
| style="background:#d8ec9b;"|120
 +
|-
 +
| style="background:#d8ec9b;"|External EIGRP
 +
| style="background:#d8ec9b;"|170
 +
|-
 +
| style="background:#d8ec9b;"|Internal BGP
 +
| style="background:#d8ec9b;"|200
 +
|}
 +
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
<br/>
 +
=== Routing Protocols ===
 +
{| class="wikitable" style="float:left; margin:0 0 1em 1em;"
 +
|-
 +
!
 +
! colspan="2" | Interior Gateway Protocol
 +
! colspan="1" | Exterior Gateway Protocol
 +
|-
 +
!
 +
!Distance Vector Routing Protocol
 +
!Link State Routing Protocol
 +
!Path Vector
 +
|-
 +
!Classful
 +
| style="background:PowderBlue;"|RIPv1  IGRP
 +
| style="background:PowderBlue;"|
 +
| style="background:DodgerBlue;"|EGP
 +
|-
 +
!Classless
 +
| style="background:PowderBlue;"|RIPv2  EIGRP
 +
| style="background:PowderBlue;"|OSPF    IS-IS
 +
| style="background:DodgerBlue;"|BGPv4
 +
|-
 +
!IPv6
 +
| style="background:SkyBlue;"|RIPng  EIGRP for IPv6
 +
| style="background:SkyBlue;"|OSPFv3  IS-IS for IPv6
 +
| style="background:DodgerBlue;"|BGPv4 for IPv6
 +
|}
 +
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
 +
<br>
  
 
=== Spanning Tree  ===
 
=== Spanning Tree  ===
Line 297: Line 557:
 
<br>  
 
<br>  
  
<br>  
+
<br>
 +
 
 +
=== IOS Commands in different user modes  ===
 +
'''User EXEC Mode'''
 +
*enable - Enter Privileged EXEC mode
 +
 
 +
'''Privileged EXEC Mode'''
 +
*copy running-config startup-config - Copy the active configuration to NVRAM.
 +
*copy startup-config running-config - Copy the configuration in NVRAM to RAM.
 +
*erase startup-configuration - Erase the configuration located in NVRAM.
 +
*ping ip_address - Ping to that address.
 +
*traceroute ip_address - Trace each hop to that address.
 +
*show interfaces - Display statistics for all interfaces on a device.
 +
*show clock - Show the time set in the router.
 +
*show version - Display currently loaded IOS version, hardware, and device information.
 +
*show arp - Display the ARP table of the device.
 +
*show startup-config - Display the saved configuration located in NVRAM.
 +
*show running-config - Display the contents of the currently running configuration file.
 +
*show ip interface - Display IP statistics for interface(s) on a router.
 +
*configure terminal - Enter terminal configuration mode.
 +
 
 +
'''Terminal Configuration Mode'''
 +
*hostname hostname - Assign a host name to device.
 +
*enable password password - Set an unencrypted enable password.
 +
*enable secret password - Set a strongly encrypted enable password.
 +
*service password-encryption - Encrypt display of all passwords except secret.
 +
*banner motd# message # - Sets a message-of-the-day banner.
 +
*line console 0 - Enter console line configuration mode.
 +
*line vty 0 4 - Enter virtual terminal (Telnet) line configuration mode.
 +
*interface Interface_name - Enter interface configuration mode.
 +
 
 +
'''Line Configuration Mode'''
 +
*login - Enable password checking at login.
 +
*password password - Set line password.
 +
 
 +
'''Interface Configuration Mode'''
 +
*ip address ip_address netmask - Set interface IP address and subnet mask.
 +
*description description - Set interface description.
 +
*clock rate value - Set clock rate for DCE device.
 +
*no shutdown - Set interface to up.
 +
*shutdown - Administratively set interface to down.
  
== Øvelser  ==
+
==== Basic Configuration Exsamples in Cisco IOS ====
  
== Andet  ==
+
Configure Hostname:
 +
<source lang="cli">
 +
Router#<input>conf t</input>
 +
Router(config)#<input>Hostname BandOHQR</input>
 +
BandOHQR(config)#<input>end</input>
 +
BandOHQR#<input>wr</input>
 +
</source>
  
 
Configure Password:
 
Configure Password:
 
<source lang="cli">
 
<source lang="cli">
Router#conf t
+
Router#<input>conf t</input>
Router(config)#enable secret MyNewPassword
+
Router(config)#<input>enable password MyNewPassword</input>
Router(config)#line vty 0 4
+
Router(config)#<input>end</input>
Router(config-line)#password MyNewPassword
+
Router#<input>wr</input>
Router(config-line)#login
+
</source>
Router(config-line)#line console 0
+
 
Router(config-line)#password MyNewPassword
+
Configure service password-encryption:
Router(config-line)#login
+
<source lang="cli">
Router(config-line)#end
+
Router#<input>conf t</input>
Router#wr
+
Router(config)#<input>service password-encryption</input>
 +
Router(config)#<input>end</input>
 +
Router#<input>wr</input>
 +
</source>
 +
 
 +
Configure Secret:
 +
<source lang="cli">
 +
Router#<input>conf t</input>
 +
Router(config)#<input>enable secret MyNewPassword</input>
 +
Router(config)#<input>end</input>
 +
Router#<input>wr</input>
 +
</source>
 +
 
 +
Configure (VTY) Virtual Terminal Password:
 +
<source lang="cli">
 +
Router#<input>conf t</input>
 +
Router(config)#<input>line vty 0 4</input>
 +
Router(config-line)#<input>password MyNewPassword</input>
 +
Router(config-line)#<input>login</input>
 +
Router(config-line)#<input>end</input>
 +
Router#<input>wr</input>
 +
</source>
 +
 
 +
Configure Consol Terminal Password:
 +
<source lang="cli">
 +
Router#<input>conf t</input>
 +
Router(config-line)#<input>line console 0</input>
 +
Router(config-line)#<input>password MyNewPassword</input>
 +
Router(config-line)#<input>login</input>
 +
Router(config-line)#<input>end</input>
 +
Router#<input>wr</input>
 
</source>
 
</source>
  
Line 320: Line 656:
  
 
<source lang="cli">
 
<source lang="cli">
Router#conf t
+
Router#<input>conf t</input>
Router(config)#banner motd Q
+
Router(config)#<input>banner motd Q</input>
 
Enter TEXT message.  End with the character 'Q'.
 
Enter TEXT message.  End with the character 'Q'.
***************************************
+
<input>
* Access for Authorized personal only *
+
####                        ####      ####
***************************************
+
#  #  #  #    #  ####  #    #    #    # #    #    # ####  ###  #### #    #
Q
+
#  #  # #  ##  # #    #  #    #    #    # #    #    # #    #    #    ##  #
Router(config)#end
+
####  #  # # #  # #        ####  #  #    # #    #    # ###  ###  ###  # #  #
Router#wr
+
#  # ##### #  # # #  ###  #    ##    #    # #    #    # #        # #    #  # #
 +
#  # #  # #  ## #    #  #    ##    #    # #    #    # #    #  # #    #  ##
 +
####  #  # #    #  ####    ####  #  ####  ###  ####  #    ###  #### #    #
 +
 +
 +
                      ***************************************
 +
                      * Access for Authorized personal only *
 +
                      ***************************************
 +
Q</input>
 +
Router(config)#<input>end</input>
 +
Router#<input>wr</input>
 +
</source>
 +
 
 +
Disable Domain lookup:
 +
<source lang="cli">
 +
Router#<input>conf t</input>
 +
Router(config)#<input>no ip domain-lookup</input>
 +
Router(config)#<input>end</input>
 +
Router#<input>wr</input>
 +
</source>
 +
 
 +
 
 +
Enter static Route:
 +
<source lang="cli">
 +
Router#<input>conf t</input>
 +
Router(config)#<input>ip route network_ip network_subnet nexthop_ip</input>
 +
Router(config)#<input>end</input>
 +
Router#<input>wr</input>
 +
</source>
 +
 
 +
Configure Fastethernet Interface:
 +
<source lang="cli">
 +
Router#<input>conf t</input>
 +
Router(config)#<input>interface FastEthernet 0/0</input>
 +
Router(config-if)#<input>ip address ip_address netmask</input>
 +
Router(config-if)#<input>description Connects to main switch in Building A</input>
 +
Router(config-if)#<input>no shutdown</input>
 +
Router(config-if)#<input>end</input>
 +
Router#<input>wr</input>
 +
</source>
 +
 
 +
Configure DCE Serial Interface:
 +
<source lang="cli">
 +
Router#<input>conf t</input>
 +
Router(config)#<input>interface Serial 0/0/O</input>
 +
Router(config-if)#<input>ip address ip_address netmask</input>
 +
Router(config-if)#<input>clock rate 56000</input>
 +
Router(config-if)#<input>description Connects to other router in Building B</input>
 +
Router(config-if)#<input>no shutdown</input>
 +
Router(config-if)#<input>end</input>
 +
Router#<input>wr</input>
 +
</source>
 +
 
 +
Configure DTE Serial Interface:
 +
<source lang="cli">
 +
Router#<input>conf t</input>
 +
Router(config)#<input>interface Serial 0/0/O</input>
 +
Router(config-if)#<input>ip address ip_address netmask</input>
 +
Router(config-if)#<input>description Connects to other router in Building C</input>
 +
Router(config-if)#<input>no shutdown</input>
 +
Router(config-if)#<input>end</input>
 +
Router#<input>wr</input>
 +
</source>
 +
 
 +
Copy configuration from RAM to NVRAM:
 +
<source lang="cli">
 +
Router#<input>copy running-config startup-config </input>
 +
</source>
 +
 
 +
Show activ configuration:
 +
<source lang="cli">
 +
Router#<input>show running-config</input>
 +
</source>
 +
 
 +
Backup Configuration on TFTP Server:
 +
<source lang="cli">
 +
Router#<input>copy running-config tftp</input>
 +
Remote host []?<input>192.168.1.100</input>
 +
Name of configuration file to write [BandOHQ-config]?<input>BandO-config.backup</input>
 +
Write file BandO-config.backup to 192.168.1.100? [confirm]
 +
Writing BandO-config.backup !!!!!! [OK]
 +
</source>
 +
 
 +
Removing All Configurations:
 +
<source lang="cli">
 +
Router#<input>erase startup-config</input>
 +
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
 +
</source>
 +
 
 +
Reload the device:
 +
<source lang="cli">
 +
Router#<input>Reload</input>
 +
</source>
 +
 
 +
 
 +
Configure Switch Virtual LAN Interface for telnet sessions:
 +
<source lang="cli">
 +
Switch#<input>conf t</input>
 +
Switch(config)#<input>interface vlan 1</input>
 +
Switch(config-if)#<input>ip address ip_address netmask</input>
 +
Switch(config-if)#<input>description Connects to main Router in Building A</input>
 +
Switch(config-if)#<input>no shutdown</input>
 +
Switch(config-if)#<input>exit</input>
 +
Switch(config)#<input>ip default-gateway router_ip_address</input>
 +
Switch(config)#<input>end</input>
 +
Switch#<input>wr</input>
 +
</source>
 +
 
 +
==== Basic Show Commands ====
 +
Show clock - Show the time set in the router.:
 +
<source lang="cli">
 +
Router#<input>show clock</input>
 +
</source>
 +
 
 +
Show version - Display currently loaded IOS version, hardware, and device information.:
 +
<source lang="cli">
 +
Router#<input>show version</input>
 +
</source>
 +
 
 +
Show arp - Display the ARP table of the device.:
 +
<source lang="cli">
 +
Router#<input>show arp</input>
 +
</source>
 +
 
 +
Show activ configuration:
 +
<source lang="cli">
 +
Router#<input>show running-config</input>
 +
</source>
 +
 
 +
show interfaces - Display statistics for all interfaces on a device.:
 +
<source lang="cli">
 +
Router#<input>show interfaces</input>
 +
</source>
 +
 
 +
Show specific interfaces:
 +
<source lang="cli">
 +
Router#<input>show interfaces fa0/0</input>
 +
</source>
 +
 
 +
Show all interfaces ip:
 +
<source lang="cli">
 +
Router#<input>show ip interfaces brief</input>
 +
</source>
 +
 
 +
Show routing table:
 +
<source lang="cli">
 +
Router#<input>show ip route</input>
 +
</source>
 +
 
 +
Show Switch MAC address  table:
 +
<source lang="cli">
 +
Switch#<input>show mac-address-table</input>
 +
</source>
 +
 
 +
==== IOS troubleshooting tools ====
 +
 
 +
Ping:
 +
<source lang="cli">
 +
Router#<input>Ping ip_address</input>
 +
</source>
 +
 
 +
Traceroute:
 +
<source lang="cli">
 +
Router#<input>traceroute ip_address</input>
 +
</source>
 +
 
 +
=== Semester 2 Commands ===
 +
Unsolicited Messages:
 +
<source lang="cli">
 +
Router#<input>conf t</input>
 +
Router(config)#<input>line console 0</input>
 +
Router(config-line)#<input>logging synchronous</input>
 +
</source>
 +
 
 +
Controlers:
 +
<source lang="cli">
 +
Router#<input>Show controllers Your_Interface</input>
 +
</source>
 +
 
 +
Cisco Discovery Protocol:
 +
<source lang="cli">
 +
Router#<input>show cdp neighbors</input>
 +
</source>
 +
 
 +
Cisco Discovery Protocol:
 +
<source lang="cli">
 +
Router#<input>show cdp neighbors details</input>
 +
</source>
 +
 
 +
disable CDP globally:
 +
<source lang="cli">
 +
Router(config)#<input>no cdp run</input>
 +
</source>
 +
 
 +
disable CDP on a particular interface:
 +
<source lang="cli">
 +
Router(config-if)#<input>no cdp enable</input>
 +
</source>
 +
 
 +
configuring a static route:
 +
<source lang="cli">
 +
Router(config)#<input>ip route network-address subnet-mask {ip-address | exit-interface }</input>
 +
</source>
 +
 
 +
==== RIP ====
 +
Configure RIP:
 +
<source lang="cli">
 +
Router(config)#<input>router rip</input>
 +
Router(config-router)#<input>network x.x.x.x</input>
 +
</source>
 +
 
 +
Advertised default route all other routers:
 +
<source lang="cli">
 +
Router(config)#<input>router rip</input>
 +
Router(config-router)#<input>default-information originate</input>
 +
</source>
 +
 
 +
Disable advertisement out an interface:
 +
<source lang="cli">
 +
Router(config)#<input>router rip</input>
 +
Router(config-router)#<input>passive-interface interface_name_and_number</input>
 +
</source>
 +
 
 +
Debug RIP:
 +
<source lang="cli">
 +
Router#<input>debug ip rip</input>
 +
</source>
 +
 
 +
==== EIGRP ====
 +
{| class="wikitable" style="float:left; margin:0 0 1em 1em;"
 +
|-
 +
| style="background:#ffffff;"|Type
 +
| style="background:#ffffff;"|Distance Vector
 +
|-
 +
| style="background:#ffffff;"|Algorithm
 +
| style="background:#ffffff;"|DUAL
 +
|-
 +
| style="background:#ffffff;"|Internal AD
 +
| style="background:#ffffff;"|90
 +
|-
 +
| style="background:#ffffff;"|External AD
 +
| style="background:#ffffff;"|170
 +
|-
 +
| style="background:#ffffff;"|Summary AD
 +
| style="background:#ffffff;"|5
 +
|-
 +
| style="background:#ffffff;"|Standard
 +
| style="background:#ffffff;"|Cisco proprietary
 +
|-
 +
| style="background:#ffffff;"|Protocols supported via PDM's
 +
| style="background:#ffffff;"|IP, IPX, Appletalk and IPv6
 +
|-
 +
| style="background:#ffffff;"|Transport
 +
| style="background:#ffffff;"|IP/88
 +
|-
 +
| style="background:#ffffff;"|Authentication
 +
| style="background:#ffffff;"|MD5
 +
|-
 +
| style="background:#ffffff;"|Multicast IP
 +
| style="background:#ffffff;"|224.0.0.10
 +
|-
 +
| style="background:#ffffff;"|MAC
 +
| style="background:#ffffff;"|01:00:5E:00:00:0A
 +
|-
 +
| style="background:#ffffff;"|Hallo Timers
 +
| style="background:#ffffff;"|5/60
 +
|-
 +
| style="background:#ffffff;"|Hold Timers
 +
| style="background:#ffffff;"|15/180
 +
|}
 +
<br><br><br><br><br><br><br><br><br>
 +
<br><br><br><br><br><br><br><br><br>
 +
Configure EIGRP:
 +
<source lang="cli">
 +
Router(config)#<input>router eigrp {as_number}</input>
 +
Router(config-router)#<input>network x.x.x.x</input>
 +
</source>
 +
 
 +
Disable EIGRP auto summery:
 +
<source lang="cli">
 +
Router(config)#<input>router eigrp 1</input>
 +
Router(config-router)#<input>no auto-summery</input>
 +
</source>
 +
 
 +
Disable advertisement out an interface:
 +
<source lang="cli">
 +
Router(config)#<input>router eigrp 1</input>
 +
Router(config-router)#<input>passive-interface interface_name_and_number</input>
 +
</source>
 +
 
 +
===== Eigrp Troubleshooting =====
 +
'''User EXEC Mode'''
 +
*show ip eigrp interfaces
 +
*show ip eigrp neighbors
 +
*show ip eigrp topology
 +
*show ip eigrp traffic
 +
*clear ip eigrp neighbors
 +
*debug ip eigrp [packet | neighbors]
 +
 
 +
<br>
 +
EIGRP show interfaces commands:
 +
<source lang="cli">
 +
Router#<input>show ip eigrp interfaces</input>
 +
</source>
 +
 
 +
EIGRP show neighbors commands:
 +
<source lang="cli">
 +
Router#<input>show ip eigrp neighbors</input>
 +
</source>
 +
 
 +
EIGRP show topology commands:
 +
<source lang="cli">
 +
Router#<input>show ip eigrp topology</input>
 +
</source>
 +
 
 +
EIGRP show traffic commands:
 +
<source lang="cli">
 +
Router#<input>show ip eigrp traffic</input>
 +
</source>
 +
 
 +
EIGRP clear neighbors commands:
 +
<source lang="cli">
 +
Router#<input>clear ip eigrp neighbors</input>
 +
</source>
 +
 
 +
Debug eigrp:
 +
<source lang="cli">
 +
Router#<input>debug ip eigrp [packet | neighbors]</input>
 +
</source>
 +
 
 +
==== OSPF ====
 +
 
 +
TO BE DONE!!
 +
 
 +
=== Debug Commands ===
 +
Enable ip routing debugging:
 +
<source lang="cli">
 +
Router#<input>debug ip routing</input>
 +
</source>
 +
 
 +
Disable ip routing debugging:
 +
<source lang="cli">
 +
Router#<input>undebug ip routing</input>
 +
</source>
 +
 
 +
Disable all debugging:
 +
<source lang="cli">
 +
Router#<input>undebug all</input>
 
</source>
 
</source>
  
 +
==== Links ====
 +
[http://www.ifm.net.nz/cookbooks/passwordcracker.html Cisco password Cracker] <br>
 +
[http://media.packetlife.net/media/library/15/IPv4_Subnetting.pdf Subnetting cheat sheet] <br>
 +
[http://media.packetlife.net/media/library/23/common_ports.pdf Common ports]<br>
 +
[http://packetlife.net/library/cheat-sheets/ Cisco Cheat Sheets]<br>
 +
[http://media.packetlife.net/media/library/21/Cisco_IOS_Versions.pdf Cisco IOS Versions]<br>
 +
[http://media.packetlife.net/media/library/22/physical_terminations.pdf Physical Terminations]<br>
 +
[http://media.packetlife.net/media/library/8/IPv6.pdf IPv6]<br>
 +
[http://media.packetlife.net/media/library/13/Wireshark_Display_Filters.pdf Wireshark Display Filters]<br>
  
[mailto:knt@bang-olufsen.dk Kenni] &amp; [mailto:pds@bang-olufsen.dk Peder] &amp; [mailto:jae@bang-olufsen.dk Jonas]
 
  
 +
[mailto:knt@bang-olufsen.dk Kenni]
  
 
[[Category:Network]] [[Category:Students]]
 
[[Category:Network]] [[Category:Students]]
 
{{source cli}}
 
{{source cli}}

Latest revision as of 11:33, 7 June 2012

Dette vil blive brugt af studie grupper på B&O

CCNP

Her vil der være forskellige ccnp relaterede emner

BGP

see also BGP

ISIS

see also IS-IS

EIGRP

see also EIGRP

OSPF

see also OSPF

QoS

DSCP Binary Decimal TOS HEX
Default 000000 0 0 0x0
CS1 001000 8 32 0x20
AF11 001010 10 40 0x28
AF12 001100 2 48 0x30
AF13 001110 14 56 0x38
CS2 010000 16 64 0x40
AF21 010010 18 72 0x48
AF22 010100 20 80 0x50
AF23 010110 22 88 0x58
CS3 011000 24 96 0x60
AF31 011010 26 104 0x68
AF32 011100 28 112 0x70
AF33 011110 30 120 0x78
CS4 100000 32 128 0x80
AF41 100010 34 136 0x88
AF42 100100 36 144 0x90
AF43 100110 38 152 0x98
CS5 101000 40 160 0xA0
EF 101110 46 184 0xB8
CS6 110000 48 192 0xC0
CS7 111000 56 224 0xE0


EF (101 110)
PHB High Drop Medium drop Low Drop
AF4 11 10 01
AF3 11 10 01
AF2 11 10 01
AF1 11 10 01
Best Effort (000 000)



LFI

1 Bytes 64 Bytes 128 Bytes 256 Bytes 512 Bytes 1024 Bytes 1500 Bytes
56 kbps 143 us 9 ms 18 ms 36 ms 72 ms 144 ms 214 ms
64 kbps 125 us 8 ms 16 ms 32 ms 64 ms 128 ms 187 ms
128 kbps 62,5 us 4 ms 8 ms 16 ms 32 ms 64 ms 93 ms
256 kbps 31 us 2 ms 4 ms 8 ms 16 ms 32 ms 46 ms
512 kbps 15,5 us 1 ms 2 ms 4 ms 8 ms 16 ms 23 ms
768 kbps 10 us 640 us 1.28 ms 2.56 ms 5.1 ms 10.2 ms 15 ms
1536 kbps 5 us 320 us 640 us 1.28 ms 2.56 ms 5.12 ms 7.5 ms



CCNA

Her vil der være forskellige ccna relaterede emner

Tools

  • Ping – test the connection between two hosts
  • Ipconfig – get the settings for your local device
  • Nslookup – lookup ip address for an webpage or server
  • Tracert – test where an connection
  • Arp – address resolution protocol
  • Netstats – local TCP/UDP connection
  • Netstats -r – Routing information on local pc
  • Route print – Routing information on local pc


Other Tools

  • Packet tracer - Cisco network simulation program


Transfer Protocol

To be done

OSI Model

OSI Model TCP/IP Model
Data unit Layer Function Layer
Host
layers
Data 7. Application Network process to application 4. Application
6. Presentation Data representation, encryption and decryption, convert machine dependent data to machine independent data
5. Session Interhost communication, managing sessions between applications, local socket/session port
Segments 4. Transport End-to-end connections, reliability and flow control, [Transfer protocol](TCP/UDP) and application ports 3. Transport
Media
layers
Packet/Datagram 3. Network Path determination and logical addressing 2. Internet
Frame 2. Data link Physical addressing 1. Network
Access
Bit 1. Physical Media, signal and binary transmission


















Application Protocols

Name Short Name Port Transfer Protocol
File Transfer Protocol FTP 20/21 TCP/UDP
Secure Shell SSH 22 TCP
Telnet Telnet 23 TCP
Simple Mail Transfer Protocol SMTP 25 TCP
Domain Name System DNS 53 TCP/UDP
Dynamic Host Configuration Protocol DHCP 67/68 UDP
Trivial File Transfer Protocol TFTP 69 UDP
HyperText Transfer Protocol HTTP 80 TCP
Post Office Protocol POP3 110 UDP
Simple Network Management Protocol SNMP 161 TCP/UDP
Secure HyperText Transfer Protocol HTTPS 443 TCP


















Administrative distance (AD)


Administrative distance (AD) is the trustworthiness (or preference) of the route source.

Route Source Administrative Distance
Connected 0
Static 1
EIGRP summery route 5
External BGP 20
Internal EIGRP 90
IRGP 100
OSPF 110
ISIS 115
RIP 120
External EIGRP 170
Internal BGP 200

















Routing Protocols

Interior Gateway Protocol Exterior Gateway Protocol
Distance Vector Routing Protocol Link State Routing Protocol Path Vector
Classful RIPv1 IGRP EGP
Classless RIPv2 EIGRP OSPF IS-IS BGPv4
IPv6 RIPng EIGRP for IPv6 OSPFv3 IS-IS for IPv6 BGPv4 for IPv6










Spanning Tree

see also Spanning Tree

DHCP

see also DHCP



IOS Commands in different user modes

User EXEC Mode

  • enable - Enter Privileged EXEC mode

Privileged EXEC Mode

  • copy running-config startup-config - Copy the active configuration to NVRAM.
  • copy startup-config running-config - Copy the configuration in NVRAM to RAM.
  • erase startup-configuration - Erase the configuration located in NVRAM.
  • ping ip_address - Ping to that address.
  • traceroute ip_address - Trace each hop to that address.
  • show interfaces - Display statistics for all interfaces on a device.
  • show clock - Show the time set in the router.
  • show version - Display currently loaded IOS version, hardware, and device information.
  • show arp - Display the ARP table of the device.
  • show startup-config - Display the saved configuration located in NVRAM.
  • show running-config - Display the contents of the currently running configuration file.
  • show ip interface - Display IP statistics for interface(s) on a router.
  • configure terminal - Enter terminal configuration mode.

Terminal Configuration Mode

  • hostname hostname - Assign a host name to device.
  • enable password password - Set an unencrypted enable password.
  • enable secret password - Set a strongly encrypted enable password.
  • service password-encryption - Encrypt display of all passwords except secret.
  • banner motd# message # - Sets a message-of-the-day banner.
  • line console 0 - Enter console line configuration mode.
  • line vty 0 4 - Enter virtual terminal (Telnet) line configuration mode.
  • interface Interface_name - Enter interface configuration mode.

Line Configuration Mode

  • login - Enable password checking at login.
  • password password - Set line password.

Interface Configuration Mode

  • ip address ip_address netmask - Set interface IP address and subnet mask.
  • description description - Set interface description.
  • clock rate value - Set clock rate for DCE device.
  • no shutdown - Set interface to up.
  • shutdown - Administratively set interface to down.

Basic Configuration Exsamples in Cisco IOS

Configure Hostname:

Router#<input>conf t</input>
Router(config)#<input>Hostname BandOHQR</input>
BandOHQR(config)#<input>end</input>
BandOHQR#<input>wr</input>

Configure Password:

Router#<input>conf t</input>
Router(config)#<input>enable password MyNewPassword</input>
Router(config)#<input>end</input>
Router#<input>wr</input>

Configure service password-encryption:

Router#<input>conf t</input>
Router(config)#<input>service password-encryption</input>
Router(config)#<input>end</input>
Router#<input>wr</input>

Configure Secret:

Router#<input>conf t</input>
Router(config)#<input>enable secret MyNewPassword</input>
Router(config)#<input>end</input>
Router#<input>wr</input>

Configure (VTY) Virtual Terminal Password:

Router#<input>conf t</input>
Router(config)#<input>line vty 0 4</input>
Router(config-line)#<input>password MyNewPassword</input>
Router(config-line)#<input>login</input>
Router(config-line)#<input>end</input>
Router#<input>wr</input>

Configure Consol Terminal Password:

Router#<input>conf t</input>
Router(config-line)#<input>line console 0</input>
Router(config-line)#<input>password MyNewPassword</input>
Router(config-line)#<input>login</input>
Router(config-line)#<input>end</input>
Router#<input>wr</input>

Change Banner:

Router#<input>conf t</input>
Router(config)#<input>banner motd Q</input>
Enter TEXT message.  End with the character 'Q'.
<input>
####                        ####       ####
#   #   #   #    #  ####   #    #     #    # #    #    # ####  ###  #### #    #
#   #  # #  ##   # #    #  #    #     #    # #    #    # #    #     #    ##   #
####  #   # # #  # #        ####  #   #    # #    #    # ###   ###  ###  # #  #
#   # ##### #  # # #  ###  #    ##    #    # #    #    # #        # #    #  # #
#   # #   # #   ## #    #  #    ##    #    # #    #    # #    #   # #    #   ##
####  #   # #    #  ####    ####   #   ####   ###  ####  #     ###  #### #    #
 
 
                      ***************************************
                      * Access for Authorized personal only *
                      ***************************************
Q</input>
Router(config)#<input>end</input>
Router#<input>wr</input>

Disable Domain lookup:

Router#<input>conf t</input>
Router(config)#<input>no ip domain-lookup</input>
Router(config)#<input>end</input>
Router#<input>wr</input>


Enter static Route:

Router#<input>conf t</input>
Router(config)#<input>ip route network_ip network_subnet nexthop_ip</input>
Router(config)#<input>end</input>
Router#<input>wr</input>

Configure Fastethernet Interface:

Router#<input>conf t</input>
Router(config)#<input>interface FastEthernet 0/0</input>
Router(config-if)#<input>ip address ip_address netmask</input>
Router(config-if)#<input>description Connects to main switch in Building A</input>
Router(config-if)#<input>no shutdown</input>
Router(config-if)#<input>end</input>
Router#<input>wr</input>

Configure DCE Serial Interface:

Router#<input>conf t</input>
Router(config)#<input>interface Serial 0/0/O</input>
Router(config-if)#<input>ip address ip_address netmask</input>
Router(config-if)#<input>clock rate 56000</input>
Router(config-if)#<input>description Connects to other router in Building B</input>
Router(config-if)#<input>no shutdown</input>
Router(config-if)#<input>end</input>
Router#<input>wr</input>

Configure DTE Serial Interface:

Router#<input>conf t</input>
Router(config)#<input>interface Serial 0/0/O</input>
Router(config-if)#<input>ip address ip_address netmask</input>
Router(config-if)#<input>description Connects to other router in Building C</input>
Router(config-if)#<input>no shutdown</input>
Router(config-if)#<input>end</input>
Router#<input>wr</input>

Copy configuration from RAM to NVRAM:

Router#<input>copy running-config startup-config </input>

Show activ configuration:

Router#<input>show running-config</input>

Backup Configuration on TFTP Server:

Router#<input>copy running-config tftp</input>
Remote host []?<input>192.168.1.100</input>
Name of configuration file to write [BandOHQ-config]?<input>BandO-config.backup</input>
Write file BandO-config.backup to 192.168.1.100? [confirm]
Writing BandO-config.backup !!!!!! [OK]

Removing All Configurations:

Router#<input>erase startup-config</input>
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]

Reload the device:

Router#<input>Reload</input>


Configure Switch Virtual LAN Interface for telnet sessions:

Switch#<input>conf t</input>
Switch(config)#<input>interface vlan 1</input>
Switch(config-if)#<input>ip address ip_address netmask</input>
Switch(config-if)#<input>description Connects to main Router in Building A</input>
Switch(config-if)#<input>no shutdown</input>
Switch(config-if)#<input>exit</input>
Switch(config)#<input>ip default-gateway router_ip_address</input>
Switch(config)#<input>end</input>
Switch#<input>wr</input>

Basic Show Commands

Show clock - Show the time set in the router.:

Router#<input>show clock</input>

Show version - Display currently loaded IOS version, hardware, and device information.:

Router#<input>show version</input>

Show arp - Display the ARP table of the device.:

Router#<input>show arp</input>

Show activ configuration:

Router#<input>show running-config</input>

show interfaces - Display statistics for all interfaces on a device.:

Router#<input>show interfaces</input>

Show specific interfaces:

Router#<input>show interfaces fa0/0</input>

Show all interfaces ip:

Router#<input>show ip interfaces brief</input>

Show routing table:

Router#<input>show ip route</input>

Show Switch MAC address table:

Switch#<input>show mac-address-table</input>

IOS troubleshooting tools

Ping:

Router#<input>Ping ip_address</input>

Traceroute:

Router#<input>traceroute ip_address</input>

Semester 2 Commands

Unsolicited Messages:

Router#<input>conf t</input>
Router(config)#<input>line console 0</input>
Router(config-line)#<input>logging synchronous</input>

Controlers:

Router#<input>Show controllers Your_Interface</input>

Cisco Discovery Protocol:

Router#<input>show cdp neighbors</input>

Cisco Discovery Protocol:

Router#<input>show cdp neighbors details</input>

disable CDP globally:

Router(config)#<input>no cdp run</input>

disable CDP on a particular interface:

Router(config-if)#<input>no cdp enable</input>

configuring a static route:

Router(config)#<input>ip route network-address subnet-mask {ip-address | exit-interface }</input>

RIP

Configure RIP:

Router(config)#<input>router rip</input>
Router(config-router)#<input>network x.x.x.x</input>

Advertised default route all other routers:

Router(config)#<input>router rip</input>
Router(config-router)#<input>default-information originate</input>

Disable advertisement out an interface:

Router(config)#<input>router rip</input>
Router(config-router)#<input>passive-interface interface_name_and_number</input>

Debug RIP:

Router#<input>debug ip rip</input>

EIGRP

Type Distance Vector
Algorithm DUAL
Internal AD 90
External AD 170
Summary AD 5
Standard Cisco proprietary
Protocols supported via PDM's IP, IPX, Appletalk and IPv6
Transport IP/88
Authentication MD5
Multicast IP 224.0.0.10
MAC 01:00:5E:00:00:0A
Hallo Timers 5/60
Hold Timers 15/180



















Configure EIGRP:

Router(config)#<input>router eigrp {as_number}</input>
Router(config-router)#<input>network x.x.x.x</input>

Disable EIGRP auto summery:

Router(config)#<input>router eigrp 1</input>
Router(config-router)#<input>no auto-summery</input>

Disable advertisement out an interface:

Router(config)#<input>router eigrp 1</input>
Router(config-router)#<input>passive-interface interface_name_and_number</input>
Eigrp Troubleshooting

User EXEC Mode

  • show ip eigrp interfaces
  • show ip eigrp neighbors
  • show ip eigrp topology
  • show ip eigrp traffic
  • clear ip eigrp neighbors
  • debug ip eigrp [packet | neighbors]


EIGRP show interfaces commands:

Router#<input>show ip eigrp interfaces</input>

EIGRP show neighbors commands:

Router#<input>show ip eigrp neighbors</input>

EIGRP show topology commands:

Router#<input>show ip eigrp topology</input>

EIGRP show traffic commands:

Router#<input>show ip eigrp traffic</input>

EIGRP clear neighbors commands:

Router#<input>clear ip eigrp neighbors</input>

Debug eigrp:

Router#<input>debug ip eigrp [packet | neighbors]</input>

OSPF

TO BE DONE!!

Debug Commands

Enable ip routing debugging:

Router#<input>debug ip routing</input>

Disable ip routing debugging:

Router#<input>undebug ip routing</input>

Disable all debugging:

Router#<input>undebug all</input>

Links

Cisco password Cracker
Subnetting cheat sheet
Common ports
Cisco Cheat Sheets
Cisco IOS Versions
Physical Terminations
IPv6
Wireshark Display Filters


Kenni