Home

HCIA Cheat Sheet CLI Commands

Leave a comment

Recently passed My HCIA Certified Instructor exam. Since I “grow up” with Cisco, I made this cheat sheet table

Cisco vs Huawei CLI comparation

CISCO

HUAWEI

comment

Show Display  
No Undo Delete command
Exit Quit Return to previous system level
Enable System-view Enter privilege mode/configuration mode
Write or copy running-config Save Save the configuration
Show running-config Display current-configuration Show running-config
Show saved-configuration Display save Show saved configuration
Show version Display version  
Erase startup-config Reset startup-configuration Delete saved configuration
Logging synchronous Undo terminal logging For uninterruptible CLI text (eNSP still cant do it correctly)
Banner motd $…$ Header login information $…$ Notification message after connect to device
Banner login $…$ Header shell information $…$ Notification message after login (cisco “banner login” for before login, cisco “banner exec” for after login)
Boot config [nvram:startup-config] Startup saved-configuration [flash:/new.zip] Select startup configuration
Boot system [flash:xxxx.bin] Startup system-software [flash:/vrpcfg.zip] Select boot image
Copy tftp flash Tftp [target ip] get [file_name] Retrieve file from tftp
Show ip route Display ip routing-table  
Interface vlan 1 Interface vlanif 1 SVI – switch virtual interface
Line vty 0 4 User interface vty 0 4 Initial telnet configuration
Ip dhcp excluded-address [start_ip] [end_ip]

Ip dhcp pool [dhcp_group_name]

Network [network_address] [subnet_mask]


 

Dhcp enable

Dhcp server excluded-ip-address [start_ip] [end_ip]

Ip pool [DHCP_POOL]

Network [network_address] [subnet_mask]

Dhcp server ip-range [start_ip] [end_ip]

Dhcp server mask [subnet mask]

Interface giX/X

Dhcp select interface

Enable dhcp (disabled by default)

Exclude ip address from DHCP allocation

Using DHCP global configuration

Specify ip address to allocate

Choose interface for sending ip address (disabled by default)

Interface giX/X

Ip helper-address

Dhcp relay server group [DHCP_GROUP]

Server [DHCP server IP]

Interface giX/X

Dhcp select relay

Dhcp relay binding server group [DHCP_GROUP]

DHCP relay configuration
Interface giX/X

No switchport

Interface giX/X

Undo portswitch

Make L2 port (switched port) into L3 port (routed port)
Vlan 10 Vlan 10 or

Vlan batch 2 10 or

Vlan batch 2 to 10

Vlan 10 creation

Vlan 2 and vlan 10 creation

Vlan 2 to vlan 10 creation

Interface giX/X

Switchport access vlan 10

Interface giX/X

Port default vlan 10

Vlan association to interface
Interface giX/X

Switchport mode trunk

Switchport trunk native vlan 1

Switchport trunk allowed vlan [vlan number]

Interface giX/X

Port-link type trunk

Port trunk pvid vlan 1

Port trunk allow-pass vlan [vlan number]

Change interface mode (trunk or access)

Native vlan configuration

Interface giX/X

Channel-group 1 mode active

Interface eth-trunk 1

Mode lacp

Interface giX/X

Eth-trunk 1

Configuring link aggregation (Etherchannel)
Interface giX/X.10

Dot1q encapsulation 10

Interface giX/X.10

Dot1q termination vid 10

Arp broadcast enable

Sub-interface configuration

By default arp broadcast is disabled

Router ospf 1

Passive-interface giX/X

Ospf 1

Silent-interface giX/X

Passive-interface (disabling routing process for that interface)
Interface sX/X/X

Encapsulation ppp

Interface sX/X/X

Link-protocol ppp

Selecting protocol to use on interface
Access-list 1 permit 192.168.1.1 0.0.0.0 Acl 2000

Rule 5 permit source 192.168.1.1 0.0.0.0

Basic Access-list (ACL) (Cisco standard ACL)
Ip route 0.0.0.0 0.0.0.0 [next-hop ip] Ip route-static 0.0.0.0 0.0.0.0 [next-hop ip] Ip static default route configuration
Ipv6 unicast-routing

Ipv6 router ospf

Interface giX/X

Ipv6 ospf 1 area 0

Ipv6

Ospfv3

Ipv6 enable

Interface giX/X

Ipv6 enable

Ospfv3 1 area 0

Enable ipv6 features

Enable ipv6 routing OSPFv3

ITIL 4 Overview

Leave a comment

In a nutshell… ITIL 4 is an overhaul to ITILv3, a lot of modification here and there, more holistic method…all-rounder framework

A lot of good additional material for IT Service Management (ITSM) in this ITIL4, Let’s overview it one by one (im writing it in English, but some in Bahasa…why? Ya suka suka gue lah…wkkwkw)

First…
ITIL4 (or ITIL 4, with space)

Notice it’s not ITILv4…but ITIL 4, its for ITIL for Industry 4.0

And it seems to left behind its abbreviation (IT Infra. Library), now just ITIL4 with no abbr.

Secondthe 4 Dimensions of Service Management, the four different views about ITSM

The new ITIL of the four P’s (people, partner, product, process)

  1. Organization and People

    Talk about how we can form some sort of function/team with required skillsets to achieve its (organization) objectives

  2. Information and Technology

    The Information is the today world currency, and how to properly utilize it with the right tools (Technology) and Skills (People)

  3. Partners and Suppliers

    Differencing Partner (take-and-give method, MoU, kerjasama seperti Microsoft dan Cisco) and Supplier (One-way method, seperti Enterprises/Perusahaan dengan Vendor)

  4. Value Streams and Processes

    The organization must improvise and adapt to ever changing business challenges and circumstances, they must define the steps that the organization takes to create and deliver product (the Value Stream), and to make that we must take input and transform that into output via process (banyak company yang “telat” menyadari perubahan2 bisnis sehingga harus gulung tikar… perusahaan Taksi yang punya ribuan armada bisa kalah sama perusahaan aplikasi yang ga punya armada sama sekali, di perusahaan online bahkan armada2 tersebut bukan lagi sebagai bawahan/karyawan, but treated as a PARTNER)

  5. annndd THE EXTERNAL FACTORS (PESTEL – political, economic, social, technology, environment, and legal)

    Remember…these external factors can CHANGE the GAME

Third…
Service Value System (SVS), the core material in ITIL4 after the 4 Dimensions of Service Management, how we create value

Guiding Principles, Governance, Service Value Chain, Practices, even Continual Improvement has their own sub-chapter in ITIL 4 Foundation material

Note: many of Service Lifecycle processes in ITILv3 now put into ITIL4 Practices

What missing in ITILv3 is customer involvement

In ITIL4…BOTH Service Provider and Service Consumer must co-create the value, not just the Service Provider

For example, when Application Developer develop an Application that very intuitive design, highly secure, stable process, and (add anything else here…) but…

…If user can’t or won’t use the apps, then it useless…READ: no value

So ITIL 4 stress about how we as service provider and user as service consumer can collaborate, what’s good and what’s not, and then consumer use the product to service its own user/consumer (service relationship)

Example: TELKOM punya consumen Bank Mandiri yang punya konsumen PT. ABC yang punya konsumen PT. XYZ…and so on (each service indirectly affects other, so value is the real concern)

So, ITIL4 focus on OUTCOME, not just the OUTPUT

OUTCOME = result for stakeholder, enabled by one or more outputs, focused on customers DESIRED OUTCOME (not our Desired Outcome as SP)

The difference?

OUTPUT can be report, bill, email , etc…that CAN BE MEASURED

But OUTCOME (often) can’t be measured…it’s the experience itself

Example? OUTPUT = this article, I write this ITIL4 overview to myself and hopefully others to learn and remember

OUTCOME = apply, me and other can implement this ITIL4 concept (not just see, hear, and nods…masuk kuping kiri keluar kuping kanan)

Contoh “kita ngasi deliverables, seperti training, buku, customer support sebagai output…tapi dipake ga? berguna ga? apa training ini cuma dibuat untuk ngabisin duit aja? Ga ada outcome”

Fourththe 7 Guiding Principles

The guiding principles embody the core messages of ITIL and ITSM in general…which is universally applicable to all IT Disciplines

This one though…created to address Agile and DevOps problem that ITILv3 lack of, which is the programmer world that lacks and need the ITSM disciplines the most

Nine? You said Seven?? (for ITIL Foundation, you just have to remember the first 7, ITIL practitioner add two more to the table)

  1. Focus on Value (self-explanatory)
  2. Start Where You Are (jangan bikin baru klo yang lama masi bisa kita improve)
  3. Progress iteratively with feedback (simple…don’t try to be superman, selesain satu2, utilize the feedback)
  4. Collaborate and promote visibility (kolaborasi dan kedua belah pihak sama2 tahu apa yang dikerjakan… service provider yang berkolaborasi dengan service consumer will create powerful value)
  5. Think and Work holistically (biasakan berfikir menyeluruh, jgn berfikir untuk tim kita…but for the organization, mungkin solusi itu bagus buat kita, tapi jelek buat perusahaan secara menyeluruh)
  6. Keep it simple and practical (klo bisa di permudah ya jangan di persulit…iya toh?!?)
  7. Optimize and Automate (apapun yang bisa kita bikin simple klo lo bisa di otomatisasikan dan optimasi, segala sesuatu yang repetitive klo bisa di otomatisasikan)
  8. Observe Directly (klo denger dari orang lain…katanya katanya, biasanya ga akurat, lo harus liat secara langsung)
  9. Be Transparent (self-explanatory)

8 and 9 not necessary for ITIL4 Foundation (but worth mentioning for)

Fifth…
The Practices

The ITILv3 Service Lifecycle Processes now taken into concept called Practices

Practice can be viewed as CAPABILITY…Your…Organization…Capability

So, in order to create some value to your services there is 3 main practices

General Management Practices (4 out of 14 practices that important for ITIL 4 Foundation Exam)

  • These practices have been adopted and adapted for service management from GENERAL BUSINESS MANAGEMENT DOMAIN

Service Management Practices (6 out of 17 practices that important for ITIL 4 Foundation Exam)

  • Lots of these practices can be found in ITILv3 Service Lifecycle (so if you have experience in ITILv3, you’ll do good in here)

Technical Management Practices (3 practices)

  • These practices is the domain of your best friend colleagues at work…the engineers who deal with technology all the time

We will cover all the practices later (if I have time)

Sixth…
Service Value Chain

So, you want to create value for your services? You have the ability and capability? Then consider these 6 activities, because all your practices above will be directly and indirectly affected one or more Service Value Chain activities below

  1. Plan: activity that create plans, portfolios, policies…to ensure a shared understanding of what we or the organization trying to achieve and how this will be done
  2. Improve: activity that ensure continual improvement of all products, services, and practices across all 4 Dimensions of Service Management
  3. Engage: activity that engage with stakeholders and understanding their needs
  4. Design and Transition: activity that create new and changed services (lu butuh fase transisi ketika mau implement major change of services, biar ga fail pas GO-LIVE) and ensure it will meet stakeholder expectations for quality, cost, and time to market (in ITILv3 this topic reside in Change Management process)
  5. Obtain/Build: activity that create service components (beli sesuatu apa yang bisa bikin service jalan…atau bikin), ensure they are available when and where they are needed (and meet the agreed specification…SLA)…intinya, lu butuhnya apa biar service kita jalan…entah beli, bikin, atau ngambil punya orang *maling!!*(yg ini abaikan)
  6. Deliver and Support: activity that…ensure delivery and “after sales” activity…layanan purna jual

Seventh…
Continual Improvement

This is…the CSI (continual service improvement of ITILv3) for ITIL 4

References

ITIL 4 Foundation ebook

Older Entries Newer Entries