Sunteți pe pagina 1din 7

VLAN Commands

 vlan 5 (global command to create Vlan 5 and put the user into Vlan configuration mode)
 name Test_Vlan (Vlan mode command to name a Vlan)
 shutdown vlan 5 (global command that has the same effect as the “shutdown” Vlan mode command in Vlan 5)
 switchport mode access (interface mode command that hard sets the interface into access mode)
 switchport mode trunk (interface mode command that hard sets the interface into trunk mode)
 switchport mode dynamic desirable (interface mode command that causes the interface to prefer trunking)
 switchport mode dynamic auto (interface mode command that causes the interface to accept negotiation)
 switchport access vlan 5 (interface mode command that sets the interface to being in access Vlan 5)
 switchport trunk encapsulation dot1q (interface mode command that sets the trunk encapsulation to dot1q)
 switchport trunk encapsulation isl (interface mode command that sets the trunk encapsulation to ISL)
 switchport trunk encapsulation auto (interface mode command to enable trunk attempted autonegotiation)
 switchport trunk native vlan 5 (interface mode command to specify the untagged Vlan on a trunk link as 5)
 switchport nonegotiate (interface mode command that disables Vlan trunk negotiation)
 switchport voice vlan 6 (defines Vlan 6 as being Vlan tagged on an access port to enable phone traffic)
 switchport trunk allowed vlan add 5 (interface mode command that adds Vlan 5 to an existing trunk)
 switchport trunk allowed vlan all (interface mode command that allows all Vlans on a trunk)
 switchport trunk allowed vlan except 5 (interface mode command that allows all Vlans except 5 on a trunk)
 switchport trunk allowed vlan remove 5 (interface mode command that removes Vlan 5 from a trunk)
 switchport trunk allowed vlan 1-3,5 (interface mode command that allows Vlans 1-3 and 5 on a trunk)
 show interfaces Gi1/0/1 switchport (lists administrative switchport information about the Gi1/0/1 interface)
 show interfaces Gi1/0/1 trunk (lists trunk-related information about the Gi1/0/1 interface)
 show vlan brief (lists a shorter, more summarized list of Vlan-related information for the device)
 show vlan summary (lists a summarization of Vlan configuration details for the device)
 show vlan id 5 (lists more detailed information specific to Vlan 5)
 show vlan 5 “ “
 show vlan name Test_Vlan (lists more detailed information about the Vlan named “Test_Vlan”)

Spanning Tree Commands


 spanning-tree mode pvst (global command to change the STP mode to Cisco’s PVST+ implementation)
 spanning-tree mode rapid-pvst (global command to change the STP mode to Rapid STP+)
 spanning-tree mode mst (global command to change the STP mode to MST)
 spanning-tree vlan 5 root primary (global command to change the switch to root for Vlan 5, if possible)
 spanning-tree vlan 5 root secondary (similar to the above command, but used to set secondary bridge)
 spanning-tree vlan 5 priority 4096 (global command to set the Vlan priority on Vlan 5 to ‘4096’)
 spanning-tree vlan cost 20 (interface command that sets the STP cost value for the interface to 20)
 spanning-tree vlan 5 port-priority 32 (interface command that sets the STP priority of the interface to 32)
 spanning-tree portfast (interface command that enables Cisco PortFast on an interface)
 spanning-tree bpduguard enable (interface command that causes a port to err-disable upon receiving a BPDU)
 spanning-tree portfast default (global command to enable PortFast by default on all access ports)
 spanning-tree bpduguard default (global command to enable BPDU Guard by default on all access ports)
 spanning-tree bpdufilter enable (interface command to filter BPDUs if received on the interface)
 show spanning-tree (lists information about STP status on the switch)
 show spanning-tree interface Gi1/0/1 (lists STP information for the Gi1/0/1 port)
 show spanning-tree vlan 5 (lists information about STP for Vlan 5)
 show spanning-tree vlan 5 root (lists information about the STP root for Vlan 5)
 show spanning-tree summary (shows a summarized listing of STP information)
 debug spanning-tree events (debugs changes in the STP topology and calculations as they occur)
 show spanning-tree interface Gi1/0/1 portfast (lists line-item-style information about PortFast on Gi1/0/1)

VTP Commands
 vtp domain tgfn (global command that specifies the VTP domain name as ‘tgfn’)
 vtp password Nebraska01 (global command the specifies the VTP password as ‘Nebraska01’)
 vtp mode server (global command that sets the VTP status as server)
 vtp mode client (global command that sets the VTP status as client)
 vtp mode transparent (global command that changes VTP mode to transparent)
 vtp version 2 (global command to change the default VTP version from 1 to 2)
 vtp pruning (global command to tell the VTP server to use VTP pruning on all switch links)
 shutdown vlan 5 (global command that administratively disables Vlan 5)
 show vtp status (displays the status of the current VTP domain)
 show vtp password (displays the VTP password that’s currently set)

Etherchannel Commands
 channel-group 1 mode on (interface command that creates EtherChannel 1 and forcibly puts the port into it)
 channel-group 1 mode auto (interface command that creates EtherChannel 1 and enables active PAgP)
 channel-group 1 mode desirable (interface command that creates EtherChannel 1 and enables passive PAgP)
 channel-group 1 mode active (interface command that creates EtherChannel 1 and enables active LAcP)
 channel-group 1 mode passive (interface command that creates EtherChannel 1 and enables passive LAcP)
 show etherchannel summary (shows information regarding EtherChannel config and channels)

OSPF for IPv4 Commands


 router ospf 1 (enters OSPF configuration mode with the process ID of ‘1’)
 network 10.100.0.0 0.0.255.255 area 0 (OSPF command that enables OSPF on all interfaces on this network)
 ip ospf 1 area 0 (interface command to enable OSPF and assign the interface to area 0)
 ip ospf cost 10 (interface command to manually set the OSPF interface cost to ‘10’)
 bandwidth 64000 (interface command that specifies the interface bandwidth)
 auto-cost reference-bandwidth 1000000 (router command that specifies the OSPF reference bandwidth)
 router-id 1.1.1.1 (OSPF command that manually configures the router ID to ‘1.1.1.1’)
 interface loopback 1 (global command to create Loopback interface 1, and enter its configuration mode)
 maximum-paths 6 (router command to set the number of equal-cost routes to add to the routing table to ‘6’)
 passive interface Gi1/0/1 (router command to make the Gi1/0/1 a passive interface in terms of routing)
 passive-interface default (OSPF command that changes the OSPF default for interfaces to be passive)
 default-information originate (OSPF command to tell OSPF to advertise the default route)
 default-information originate always (OSPF command to tell OSPF to always advertise the default route)
 show ip ospf (list information about OSPF on the router, including process ID, areas, and interfaces)
 show ip ospf interface brief (lists the interfaces on which the OSPF protocol is enabled, including passives)
 show ip ospf interface Gi1/0/1 (lists all information related to OSPF on the Gi1/0/1 interface)
 show ip protocols (shows routing protocol parameters and current timing values)
 show ip ospf neighbor 1.1.1.1 (shows OSPF information for the neighbor with router ID ‘1.1.1.1’)
 show ip ospf neighbor (shows OSPF neighbor information, including status and timeout values)
 show ip ospf database (shows OSPF database for the LSAs exchanged and statuses)
 show ip route ospf (lists all the routes in the routing table that were acquired through OSPF)
 clear ip ospf process (resets the OSPF process, resets all neighbor relationships, and recalculates RID)
 ip ospf hello-interval 10 (interface command that manually sets the OSPF hello interval to 10 seconds)
 ip ospf dead-interval 40 (interface command that manually sets the OSPF dead timeout to 40 seconds)
 debug ip ospf events (debugs all messages exchange by OSPF, this can be a lot of information)
 debug ip ospf adj (debugs all OSPF adjacency events, including neighbor exchanges)
 debug ip ospf packet (debugs all OSPF packet messages, this can be a lot of information)
 debug ip ospf hello (debugs all OSPF messages pertaining to neighbor hellos and dead receipts)

EIGRP for IPv4 Commands


 router eigrp 1 (global command to start EIGRP configuration using ASN ‘1’)
 network 10.100.0.0 0.0.255.255 (EIGRP command to enable EIGRP all interfaces within the subnet specified)
 maximum-paths 6 (router command to change the number of equal-cost routes to use to ‘6’)
 variance 3 (router command that changes the EIGRP route variance multiplier to ‘3’)
 bandwidth 64000 (interface command to manually set the bandwidth to 64000 Kbps)
 delay 20000 (interface command to manually set the delay variable to 20,000 microseconds)
 ip hello-interval eigrp 1 10 (interface command to set the EIGRP hello interval for ASN ‘1’ to 10 seconds)
 ip hold-time eigrp 1 40 (interface command to set the EIGRP hold time for neighbors on ASN ‘1’ to 40 seconds)
 no auto-summary (router command that disables automatic summarization of routes)
 passive-interface Gi1/0/1 (router command to make the Gi1/0/1 passive from a routing perspective)
 passive-interface default (router command that changes the default behavior for routing interfaces to passive)
 show ip eigrp interfaces (shows a line-item-style list of all non-passive EIGRP interfaces)
 show ip eigrp interfaces Gi1/0/1 (shows a brief listing of EIGRP-related interface information for Gi1/0/1)
 show ip eigrp interfaces detail Gi1/0/1 (shows a more complex listing of EIGRP information for Gi1/0/1)
 show ip protocols (shows routing protocol parameters and current timing values)
 show ip eigrp neighbors (lists EIGRP neighbors and current status)
 show ip eigrp neighbors Gi1/0/1 (lists EIGRP neighbors and status for all neighbors off of Gi1/0/1)
 show ip eigrp topology (lists the EIGRP topology table, including all neighbors and all successors)
 show ip eigrp topology 10.0.0.0/24 (lists all EIGRP topology information for everything in the specified subnet)
 show ip route eigrp (shows all routes in the routing table that were learned through EIGRP)
 debug eigrp fsm (debugs all information related to feasible successors and route election)
 debug eigrp packets (debugs all information on EIGRP packet exchanges, this can be a lot of information)

eBGP for IPv4 Commands


 router bgp 1 (opens the configuration for BGP ASN ‘1’)
 neighbor 192.168.100.1 remote-as 65003 (attempts to start a peering with 192.168.100.1 in ASN ‘65003’)
 neighbor 192.168.100.1 shutdown (turns off peering with the BGP peer ‘1921.68.100.1’)
 network 192.168.100.0 mask 255.255.255.0 (BGP command to add the 192.168.100.0/24 network to routing)
 ip route 192.168.0.0 255.255.255.0 null0 (defines the discard, or blackhole route)
 show ip bgp (displays the current BGP peering and topology table)
 show ip bgp summary (displays basic BGP configuration for the local router)
 show tcp summary (lists line-item-style information for all TCP sessions the router has)

Serial & Encapsulation Commands


 encapsulation ppp (interface command that changes the default encapsulation from HDLC to PPP)
 encapsulation hdlc (interface command that changes back to the default encapsulation of HDLC)
 clock rate 64000 (serial interface command that sets the clocking rate on a DCE interface)
 bandwidth 256000 (interface command that sets the router’s perception of link’s speed in Kpbs)
 ppp authentication pap (interface command that specifies to use PAP authentication only)
 ppp authentication chap (interface command that specifies to use CHAP authentication only)
 username Caleb password IsAwesome! (global command that creates the ‘Caleb’ user and sets his password)
 ppp pap sent-username Caleb password IsAwesome! (interface command that specifies the PAP credentials)
 interface multilink 1 (creates the PPP multilink numbered ‘1’, and moves to its configuration mode)
 ppp multilink (interface command that enables MLPPP features)
 ppp multilink group 1 (interface command that associates the interface with MLPPP group ‘1’)
 show controllers Serial 0/1/0 (shows the serial hardware layer information for the Serial 0/1/0 interface)
 show ppp multilink (lists detailed status information about each PPP Multilink virtual interface)
 show ppp all (lists line-item-style status information about each active PPP link on the router)
 debug ppp authentication (debugs PPP authentication successes, failures, and packet transmissions)
 debug ppp negotiation (debugs PPP LCP and NCP negotiation for Layer 2/3 communications)

GRE Tunneling Commands


 interface tunnel 1 (global command to create Tunnel interface 1, and enters the configuration for it)
 tunnel source Gi1/0/1 (tunnel interface command that names the source interface for the tunnel)
 tunnel source 192.168.100.1 (tunnel interface command that names the source IP address for the tunnel)
 tunnel destination 198.254.0.1 (tunnel interface command for the destination IP address for the tunnel)
 tunnel mode gre ip (tunnel interface command that specifies the mode, which must match on both ends)
 permit gre 192.168.100.0 0.0.0.255 192.168.200.0 0.0.0.255
o (extended ACL command that allows GRE from 192.168.100.0/24 to 192.168.200.0/24)

PPP/PPPoE Commands
 interface dialer 1 (global command that creates PPP or PPPoE Dialer interface 1)
 ip address negotiated (interface command that allows the user of PPP IPCP to discover an IP address)
 mtu 1420 (interface command to define the MTU size for outbound packets)
 encapsulation ppp (interface command that sets the encapsulation to PPP)
 ppp chap hostname router.local (interface command that tells an interface to use a different hostname)
 ppp chap password IsAwesome! (interface command that specifies the CHAP handshake password)
 dialer pool 4 (interface command that references the dialer pool to use)
 pppoe-client dial-pool-number (interface command to add the interface to a dialer interface pool)
 pppoe enable (interface command to enable the PPPoE feature)
 mac-address 0008.4526.9127 (interface command to specify a different MAC address for Layer 2 use)
 show interfaces tunnel 1 (displays the status of tunnel interface ‘1’)
 show interfaces dialer 1 (displays the status of dialer interface ‘1’)
 show interfaces virtual-access 1 (displays the status of virtual access interface ‘1’)
 show interfaces virtual-access 1 configuration (displays the IOS configuration or virtual access interface ‘1’)
 show pppoe session interface Serial 0/1/0 (displays a brief status of PPPoE on the Serial 0/1/0 interface)
 show pppoe session (displays the status of any active PPPoE sessions)

Standard IPv4 ACL Commands


 access-list 10 deny 192.168.0.0 0.0.255.255 log (denies all traffic from 192.168.0.0/16 and logs it)
 access-list 10 permit 192.168.1.0 0.0.0.255 (allows all traffic from 192.168.1.0/24)
 access-list 10 remark This is a test access list. (adds a text comment to access list ‘10’)
 ip access-group 10 in (interface command to bind access list ‘10’ to the interface inbound)
 ip access-group 10 out (interface command to bind access list ‘10’ to the interface outbound)
 show ip interface Gi1/0/1 (this command actually lists all the ACLs that are bound to the Gi1/0/1 interface)
 show access-lists 10 (shows details of access list ‘10’)
 show access-lists SNMP_FILTER (shows details of the access list named ‘SNMP_FILTER’)
 show ip access-lists 10 (shows Layer 3 information for access list ‘10’)
Extended IPv4 ACL Commands
 access-list 100 permit tcp 192.168.1.0 0.0.0.255 10.0.0.0 0.0.0.255 log
o (allows TCP traffic from 192.168.1.0/24 to 10.0.0.0/24 and logs it)
 access-list 150 deny tcp 192.168.1.0 0.0.0.255 http 10.0.0.0 0.0.0.255 http
o (denies TCP traffic on port 80 from 192.168.1.0/24 to 10.0.0.0/24 on port 80)
 access-list 150 remark This is a test advanced access list. (adds a text remark to access list ‘150’)
 ip access-group 150 in (interface command to bind access list ‘150’ to the interface inbound)
 ip access-group 150 out (interface command to bind access list ‘150’ to the interface outbound)
 access-class 150 in (vty line command to bind access list ‘150’ to the incoming traffic)
 access-class 150 out (vty line command to bind access list ‘150’ to the outgoing traffic)
 ip access-list extended SNMP_BLOCK (global command to create an extended ACL called ‘SNMP_BLOCK’)
 deny 192.168.1.0 0.0.0.255 log (ACL command to block traffic from 192.168.1.0/24 and log it)
 permit tcp 192.168.1.0 0.0.0.255 10.0.0.0 0.0.0.255 http
o (ACL command to allow HTTP traffic from 192.168.1.0/24 to 10.0.0.0/24)
 remark This is a sample comment. (ACL command to create a text remark)
 show access-lists 10 (shows details of access list ‘10’)
 show access-lists SNMP_FILTER (shows details of the access list named ‘SNMP_FILTER’)
 show ip access-lists 10 (shows Layer 3 information for access list ‘10’)

Router on a Stick (RoaS) & Layer 3 Switch Commands


 interface Gi1/0/1.10 (creates a ‘.10’ subinterface on the Gi1/0/1 interface)
 encapsulation dot1q 10 (subinterface command to specify VLAN tagging on VLAN 10)
 encapsulation dot1q 10 native (subinterface command to specify the native VLAN as VLAN 10)
 ip routing (on newer Cisco Layer 3 switches, enables IP routing capability)
 sdm prefer lanbase-routing (on older Cisco Layer 3 switches, enables IP routing capability)
 switchport (Layer 3 switch interface command to take a port out of Layer 3 mode into Layer 2 mode)

HSRP Commands
 standby 5 ip 10.0.1.1 (interface command that enables HSRP on group number ‘5’ with shared IP ’10.0.1.1’)
 standby 5 priority 110 (interface command that specifies the HSRP group ‘5’ priority as ‘110’)
 standby 5 preempt (interface command that sets preemption for HSRP group ‘5’)
 standby 5 name Vlan_5_Failover (interface command that sets HSRP group ‘5’ with a descriptive name)
 standby version 2 (interface command that sets the HSRP version used for all groups to 2)
 show standby (lists all details about HSRP status on interfaces, including counters)
 show standby brief (lists line-item-style details about HSRP status on interfaces)

IPv6 Routing & Troubleshooting Commands


 ipv6 unicast routing (global command that enables IPv6 unicast routing)
 ipv6 address 2001:8db0:1::1/64 (interface command to configure an IPv6 address of 2001:8db0:1::1)
 ipv6 address 2001:8db0::/64 eui-64 (interface command to configure a IPv6 EUI-64 address on 2001:8db0::)
 ipv6 dhcp relay destination 2001:8db0:1::1 (interface command to specify a DHCP relay agent)
 show ipv6 interface (lists IPv6 settings for all interfaces)
 show ipv6 protocols (lists IPv6 routing and protocol information)
 ping 2001:8db0:1::1 (IPv6 PING command)
 traceroute 2001:8db0:1::1 (IPv6 traceroute command)
 show ipv6 route (shows the IPv6 routing table)
 show ipv6 neighbors (lists the IPv6 router neighbor table)
 show ipv6 routers (lists the IPv6 adjacent routers that were discovered via NDP)
OSPF for IPv6 Commands
 ipv6 router ospf 1 (starts the OSPF configuration for OSPFv6 process ID ‘1’)
 ipv6 ospf 1 area 0 (interface command that bonds the interface to OSPF ID ‘1’ in area 0)
 ipv6 ospf cost 100 (interface command that manually sets the OSPFv6 interface cost to ‘100’)
 bandwidth 100000 (interface command that sets the OSPF interface bandwidth to 100,000 Kbps)
 auto-cost reference-bandwidth 10000000 (route command that sets the OSPF reference bandwidth)
 router-id 1.1.1.1 (OSPF command that manually sets the router ID)
 maximum-paths 6 (router command that sets the number of equal cost routes to include)
 show ipv6 ospf (lists information about the router’s OSPF process)
 show ipv6 ospf interface brief (lists the interfaces OSPFv6 is running on, including passive interfaces)
 show ipv6 ospf interface Gi1/0/1 (lists the OSPFv6 information for the Gi1/0/1 interface)
 show ipv6 protocols (shows the IPv6-based routing information for the router)
 show ipv6 ospf neighbor 1.1.1.1 (shows the OSPF neighbor information for router ID ‘1.1.1.1’)
 show ipv6 ospf neighbor (lists the entire OSPF neighbor router table)
 show ipv6 ospf database (prints out the entire contents of the OSPF database)
 show ipv6 route (displays the IPv6 routing table)
 show ipv6 route ospf (shows all the routes in the IPv6 routing table that were learned via OSPF)

EIGRP for IPv6 Commands


 ipv6 router eigrp 5 (starts the EIGRP configuration for EIGRPv6 ASN ‘5’)
 ipv6 eigrp 5 (interface command that bonds the interface to EIGRP ASN ‘5’)
 maximum-paths 6 (router command to change the number of equal cost paths to include to ‘6’)
 variance 3 (router command to change the EIGRP route metric multiplier to ‘3’)
 bandwidth 100000 (interface command to set the bandwidth manually to 100,000 Kbps)
 delay 20000 (interface command to manually set the reference delay to 20,000 microseconds)
 ipv6 hello-interval eigrp 5 10 (interface subcommand that sets the EIGRP hello time for ASN ‘5’ to 10 seconds)
 ipv6 hold-time eigrp 5 40 (interface subcommand that sets the EIGRP hold time for ASN ‘5’ to 40 seconds)
 eigrp router-id 1.1.1.1 (router command that sets the EIGRPv6 router ID to ‘1.1.1.1’)
 shutdown (EIGRP router command that shuts down the EIGRPv6 process)
 passive-interface Serial0/1/0 (router command that defines a passive interface for EIGRPv6)
 passive-interface default (router command that changes the EIGRPv6 default for interfaces to passive)
 show ipv6 eigrp interfaces (lists a line-item-style set of information about EIGRPv6 interface status)
 show ipv6 eigrp interfaces Gi1/0/1 (lists EIGRPv6 status on the Gi1/0/1 interface)
 show ipv6 eigrp interfaces detail (lists detailed EIGRPv6 interface config information)
 show ipv6 protocols (shows brief information about IPv6 routing protocol and service status)
 show ipv6 eigrp neighbors (lists the EIGRPv6 neighbor table)
 show ipv6 eigrp neighbors Gi1/0/1 (lists all EIGRPv6 neighbors off the Gi1/0/1 interface)
 show ipv6 eigrp topology (lists the entire EIGRPv6 topology table)
 show ipv6 route eigrp (lists the IPv6 routing table for the routes that EIGRPv6 has added)

IPv6 ACL Commands


 ipv6 access-list SNMP_BLOCK (creates an ACL called ‘SNMP_BLOCK’, and moves to its configuration)
 permit ipv6 host 2001:8bd0:1::1 host 2001:8bd0:2::1 3389 log
o (allows IPv6 traffic from 2001:8bd0:1::1 to 2001:8bd0:2::1 on port 3389)
 deny icmp any host 2001:8bd0:3:1:1 echo-request
o (denies ICMPv6 echo requests to host 2001:8db0:3::1)
 ipv6 traffic-filter SNMP_BLOCK on (interface command to bind the ‘SNMP_BLOCK’ ACL to an interface)
 show ipv6 interface Gi1/0/1 (has an added bonus of showing what ACLs are bound to the Gi1/0/1 interface)
 show ipv6 access-list SNMP_BLOCK (displays the criteria for the ‘SNMP_BLOCK’ ACL)
 show access-lists (displays all of the ACLs on the device, both IPv4 and IPv6)

SNMP Commands
 snmp-server community SMNP_Read RO ipv6 SNMP_BLOCK
o (specifies the SNMP read-only community string as ‘SNMP_Read’, and binds the SNMP_BLOCK IPv6 ACL)
 snmp-server community SNMP_Write RW (specifies the SNMP write community string as ‘SNMP_Write’)
 snmp-server location 123 S. 11th St. (sets the text to describe the physical location as the street address)
 snmp-server contact Caleb Huggenberger (sets the text for the PoC for the equipment)
 snmp-server host 192.168.1.1 version 2c SNMP_READ (sets the SNMP trap server IP, version, and string)
 snmp-server host 192.168.1.1 informs version 2c SNMP_READ (same as above, except for inform packets)
 snmp-server enable traps (enables the SNMP server to send traps and informs to all previously declared hosts)
 show snmp community (shows a brief output of each configured community string)
 show snmp contact (shows the contents of the ‘snmp-server contact’ string)
 show snmp location (shows the contents of the ‘snmp-server location’ string)
 show snmp host (shows the ‘snmp-server host’ parameters currently configured)
 show snmp (shows a summary of the SNMP configuration present)
 show snmp user (shows a short list of all the SNMP v3 users and their parameters)
 show snmp group (shows a brief summary of the SNMP user group settings)

IP SLA Commands
 ip sla 1 (global command to define IP SLA action number ‘1’)
 icmp-echo 192.168.1.1 (IP SLA command to define an ICMP PING to 192.168.1.1)
 icmp-echo 192.168.1.1 source-ip 192.168.0.1 (same as the above, but use a source IP address of 192.168.0.1)
 frequency 60 (IP SLA command to set the execution interval to 60 seconds)
 history filter all (IP SLA command to keep all historical data for the probe)
 history buckets-kept 10 (IP SLA command to set the number of historical buckets of data to keep)
 history enhanced interval 60 buckets 5 (IP SLA command for enhanced retention, 60 seconds and 5 buckets)
 history lives-kept 1 (IP SLA command to enable keeping of historical data for the operation)
 ip sla restart 1 (global command to restart IP SLA operation number ‘1’)
 show ip sla summary (lists a line-item-style readout of the IP SLA operations configured)
 show ip sla statistics 1 (lists statistics and historical data for IP SLA operation ‘1’)
 show ip sla history 2 (lists the history buffer for IP SLA operation ‘2’)
 show ip sla enhanced-history distribution-statistics 3 (displays any enhanced history for IP SLA operation 3)

SPAN Commands
 monitor session 1 source interface Gi1/0/1 both (enables SPAN ‘1’ on Gi1/0/1 for inbound and outbound)
 monitor session 2 source vlan 3 tx (enables SPAN ‘2’ on Vlan3 for outbound)
 monitor session 3 destination interface Gi1/0/2 (enables SPAN ‘3’ to go to Gi1/0/2 for monitored traffic)
 show monitor session 1 (shows information for the config on SPAN session ‘1’)
 show monitor session all (shows information for the config on all SPAN sessions)
 show monitor detail (lists more detailed output for SPAN port configuration)

S-ar putea să vă placă și