Posts

Showing posts from April, 2025

All-In-One Interview

  Easy Questions: Python: What is a list comprehension in Python? Python: How do you create a virtual environment in Python? Network Automation Testing: What is network automation? Network Automation Testing: Explain the purpose of network automation testing. Protocols Testing: What is BGP and why is it used? Protocols Testing: Describe the TCP three-way handshake. Good Coding Skills: What is the difference between a for loop and a while loop? Python: How do you handle exceptions in Python? Network Automation Testing: What is Ansible and how is it used in network automation? Protocols Testing: What is OSPF and how does it work? Medium Questions: Python: Explain the difference between  deepcopy  and  shallow copy . Python: How do you use decorators in Python? Network Automation Testing: Describe the process of automating network configuration using Python. Network Automation Testing: What are the benefits of using network automation tools? Protocols Testing: How does ...

Quick Revision

## ✅ **Networking + Protocols Quick Recap** | Topic        | Key Concept / Tool | Details / Examples | |--------------|--------------------|---------------------| | **VLAN**     | Native VLAN        | Untagged traffic on trunk (default VLAN 1) | |              | Inter-VLAN Routing | Requires router-on-a-stick or Layer 3 switch | |              | Troubleshooting    | `show vlan brief`, `show interfaces trunk` | | **OSPF**     | LSA Types          | Type 1–7 (internal, summary, external, NSSA) | |              | States             | Down, Init, 2-Way, ExStart, Exchange, Loading, Full | |              | DR/BDR             | Only in broadcast/NBMA, not in P2P | |           ...

All Python

 #1. Write a Python script to extract all IP addresses from a given text using regular expressions. input='''Router# show versionCisco Internetwork Operating System Software IOS (tm) GS Software (RSP-JV-M), Experimental Version 11.1(12816) [getchell 108] Copyright (c) 1986-1996 by cisco Systems, Inc. Compiled Mon 03-Jun-96 11:39 by getchell Image text-base: 0x600108A0, data-base: 0x60910000 ROM: System Bootstrap, Version 5.3(16645) [szhang 571], INTERIM SOFTWARE Router uptime is 4 minutes System restarted by reload System image file is "slot0:dirt/vip2/master/rsp-jv-mz.960603", booted via tftp from 172.18.2.3 cisco RSP2 (R4600) processor with 24576K bytes of memory. R4600 processor, Implementation 32, Revision 2.0 Last reset from power-on G.703/E1 software, Version 1.0. SuperLAT software copyright 1990 by Meridian Technology Corp). Bridging software. X.25 software, Version 2.0, NET2, BFE and GOSIP compliant. TN3270 Emulation software (copyright 1994 by TGV Inc). P...