Code generator for Cisco

First of all, choose the device you are working on.

Choose type of hardware

> Cisco Switch 2960

> Cisco Router 1941

Then choose the modules you want. After that, copy-paste the code from the "Code" column.

Choose module

Hostname

Hostname

Banner (MOTD)

Enable password

Enable secret

Encrypt all passwords

Console password

VTY password

Disable DNS lookup

Enable IPv6

IPv6 link-local address

Save Configurations

Reload


VLAN

Shutdown interfaces

Interfaces

Default gateway

Loopback Interface

Static routing

Default static routing

EIGRP

OSPF

Switchport: Mode Access

Switchport: Mode Trunk

Switchport: Mode Dynamic Auto/Diserable

Spanning-Tree Protocol (STP)

Interfaces (STP)

Configure SSH

ACL

GLBP

Port security

Change settings

Hostname is:

Hostname is:

Password is:

Encrypted password is:

Console password is:

VTY password is:

Starting from: to:

Configure VLANs
VLAN number VLAN name ip address subnetmask
Shutdown interfaces

Starting from FastEthernet0/ to FastEthernet0/

and from GigabitEthernet0/ to GigabitEthernet0/

Interfaces
Interface name ip address subnetmask IPv6 Description

IPv6 link-local address: on interface:

Default gateway

Default gateway is:

Loopback Interface

Number:

IP address:

Subnet:

Static routing

IP address:

Subnet:

Exit interface (ip or name):

Default static routing

Exit interface (ip or name):

EIGRP

Number:

IP address:

Wildcard:

OSPF

Be sure you first configured an interface!

OSPF ID IP address Wildcard Area Router ID
Switchport Mode Access

Starting from FastEthernet0/ to FastEthernet0/

Access VLAN: (if multiple: manually copy line and change number)

Switchport Mode Trunk

Starting from FastEthernet0/ to FastEthernet0/

Native VLAN:

Allowed VLAN: (if multiple: manually copy line and change number)

Switchport Mode Dynamic

Starting from FastEthernet0/ to FastEthernet0/

Mode:

Spanning-Tree Protocol (STP)

Interface vlan:

Mode:

(optional) Root

(optional) Priority:

Interfaces (STP)
Interface Portfast Link-type BPDU Guard
Configure SSH

Be sure you first configured a name, passwords (with encryption), a management interface (e.g. interface vlan 99 with IP) and a default-gateway!

Domain name:

Number of bits:

Username:

Password:

VTY: Starting from: to:

ACL

In column 'Address/host/any' you can write an address (e.g. 10.230.1.1) or the words 'host' or 'any'.

Standard:


Extended:

ACL Name Permit/Deny Port Address/host/any (Source) Address/wildcard (Source) Match port number + Port number (Source) Address/host/any (Destination) Address/wildcard (Destination) Match port number + Port number (Destination)

Code

enable

configure terminal

 

 

Not enough options or modules? Copy-paste the code in a texteditor (e.g. Notepad) and add your own code.