Installing FortiOS on FortiGate hardware is typically done using the TFTP (Trivial File Transfer Protocol) method via a console cable for a clean installation.
Welcome to my personal blog! Generally, I'll discuss networking and system related problems and their solutions here. I also plan to include many networking and system related multiple choice questions (MCQs) and their answers. I hope this content will be helpful to everyone.
Wednesday, April 29, 2026
FortiGate | Installing FortiOS on FortiGate Appliance
Cisco | Configure Cisco (ISR C1121X-8P) Router
When I had to configure a Cisco (ISR C1121X-8P) router, I noticed it only had a Micro USB console port. I was able to connect using a standard cable, and this generated a COM8 port in Device Manager. I then successfully established a connection to that port using PuTTY at a speed of 9600.
enableshow running-configconfigure terminalhostname lifeisrouting.comenable secret PASSWORDip domain-name lifeisrouting.localcrypto key generate rsa modulus 2048username admin secret PASSWORD
ip ssh version 2line vty 0 4login localtransport input ssh
Configured the WAN port:
interface GigabitEthernet0/0/0description WANip address dhcp
ip nat outsideno shutdown
Configured DHCP and NAT:
ip dhcp excluded-address 192.168.100.1 192.168.100.10ip dhcp pool LAN-POOLnetwork 192.168.100.0 255.255.255.0default-router 192.168.100.1dns-server 1.1.1.1 8.8.4.4
access-list 1 permit 192.168.100.0 0.0.0.255ip nat inside source list 1 interface GigabitEthernet0/0/0 overload
The second interface was configured as a backup WAN. The switchport command is not applicable to this interface, meaning it cannot be logically combined with the other eight LAN ports. Therefore, it must be treated as a separate routed interface, which allows you to configure a distinct IP address (or a separate DHCP client) on it.
interface GigabitEthernet0/0/1description WAN2ip address dhcpip nat outside
no shutdown
interface vlan 1
ip address 192.168.100.1 255.255.255.0ip nat inside
Setting up eight LAN ports (default ports are in vlan 1, it is enough to specify mode access):
interface GigabitEthernet0/1/0switchport mode accessswitchport access vlan 1
no shutdown
interface range GigabitEthernet0/1/0 - 0/1/7
switchport mode accessswitchport access vlan 1no shutdownexit
Saving configuration:
write memorycopy running-config startup-config
Viewing various information:
show interfaces GigabitEthernet0/0/1 switchportshow ip interface briefshow ip routeshow versionshow ip interface briefshow running-config
ip http serverip http authentication local
Cisco | Cisco 2960 Switch Configuration (PID: WS-C2960-24TC-L)
Cisco 2960 Switch Configuration (PID: WS-C2960-24TC-L):
Changing Switch Hostname:
Switch(config)#hostname DST-SW
Configuring Passwords:
DST-SW(config)#enable secret sysadminDST-SW(config)#enable secret sysadmin
DST-SW(config)#line con 0DST-SW(config-line)#password sysadminDST-SW(config-line)#login
DST-SW(config)#line vty 0 4DST-SW(config-line)#password sysadminDST-SW(config-line)#login
DST-SW(config)#service password-encryption
DST-SW(config)#banner motd$ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- UNAUTHORIZED ACCESS IS PROHIBITED -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- $
DST-SW(config)#interface vlan 1DST-SW(config-if)#ip address 192.168.101.2 255.255.255.0DST-SW(config-if)#shutdown
DST-SW(config)#ip default-gateway 192.168.101.1
DST-SW#copy running-config startup-configDestination filename [startup-config]?Building configuration… [OK]
OrDST-SW#wrBuilding configuration… [OK]
DST-SW(config)#no ip domain-lookupDST-SW(config)#line vty 0 4DST-SW(config-line)#history size 15DST-SW(config-line)# exec-timeout 10 30DST-SW(config-line)#logging synchronous
DST-SW(config)#ip domain-name example.com
DST-SW(config)#username admin secrat cisco
DST-SW(config)#crypto key generate rsa How many bits in the modulus [512]: 1024
DST-SW(config)#ip ssh version 2
DST-SW(config)#line vty 0 4DST-SW(config-line)#login localDST-SW(config-line)#transport input telnet ssh
DST-SW(config)#interface fastEthernet 0/1DST-SW(config-if)#description ***To-Core RTR***DST-SW(config-if)#speed 100 (options: 10, 100, auto)DST-SW(config)#interface range fastEthernet 0/5 – 10DST-SW(config-if-range)#duplex full (options: half, full, auto)
DST-SW#show version
DST-SW#show running-config
DST-SW#show startup-config
DST-SW#show history
DST-SW#show ip interface brief
DST-SW#show interface vlan 1
DST-SW#show interfaces description
DST-SW#show interfaces status
DST-SW#show crypto key mypubkey rsa
DST-SW#show dhcp lease
DST-SW(config-if)#switchport mode access
DST-SW(config-if)#switchport port-security
DST-SW(config-if)#switchport port-security maximum 1
DST-SW(config-if)#switchport port-security violation shutdown (options: shutdown, protect, restrict)
DST-SW(config-if)#switchport port-security mac-address 68b5.9965.1195 (options: H.H.H, sticky)
DST-SW#show mac-address-table
DST-SW#show port-security
DST-SW#show port-security interface fa0/5
DST-SW(config)#vlan 10DST-SW(config-vlan)#name ***To-IT-Users***
DST-SW(config)#interface fastEthernet 0/5DST-SW(config-if)#switchport mode accessDST-SW(config-if)#switchport access vlan 10
DST-SW(config)#interface fastEthernet 0/5DST-SW(config-if)#switchport access vlan 10DST-SW(config-if)#switchport voice vlan 12
DST-SW(config)#interface fastEthernet 0/1DST-SW(config-if)#switchport mode trunk (options: access, trunk, dynamic auto, dynamic desirable) DST-SW(config-if)#switchport trunk allowed
DST-SW(config-if)#shutdown
DST-SW(config-if)#nonegotiate (or hardcode the port as an access port)DST-SW(config-if)#switchport mode access
DST-SW(config-if)#switchport access vlan 222
DST-SW(config)#spanning-tree vlan 1 root primaryDST-SW(config)#spanning-tree vlan 1 root secondaryDST-SW(config)#spanning-tree [vlan 1] priority 8192
DST-SW(config)#spanning-tree mode rapid-pvst (options: mst, pvst, rapid-pvst)
DST-SW(config-if)#spanning-tree portfastDST-SW(config-if)#spanning-tree bpduguard enable
DST-SW(config-if)#spanning-tree [vlan 1] cost 25
DST-SW(config-if)#channel-group 1 mode on (options: auto, desirable, on)
DST-SW#show spanning-tree
DST-SW#show spanning-tree interface fa0/2
DST-SW#show spanning-tree vlan 1
DST-SW#show spanning-tree [vlan1] root
DST-SW#show spanning-tree [vlan1] bridge
DST-SW#show etherchannel 1
DST-SW#debug spanning-tree events
DST-SW(config)#cdp run
DST-SW(config-if)#no cdp enable
DST-SWSW1#show cdp
DST-SW#show cdp interface fa0/2
DST-SW#show cdp neighbors
DST-SW#show cdp neighbors detail
DST-SW#show cdp entry *
DST-SW#show cdp entry DST-SW2