Saturday, June 24, 2017

Networking Interview questions

BGP:

1. What are the rich attributes of BGP ?
2. BGP split Horizon rule?
3. what is IBGP & EBGP?
4. What is BGP confideratio?
4. What is BGP route reflector?

Basic Question about MPLS?


OSPF:

1. Ospf lsa types
2. Ospf stub, total stuf, Nssa, Totally Nssa.
3. Ospf seven stages.
4. Ospf virtual Links.
5. Ospf gracefull shutdown?
6. Basic Troubleshooting in ospf?

EIGRP:

1. Difference between Ospf and Eigrp.
2. Eigrp stuck in active.
3. Eigrp Packet Types.
4. Eigrp Successor & feassible successor
5. Condition to became feassible successor.
6. What is the Maxium load balance path in Eigrp.
7. What is Eigrp Variance ?
8. Basic Troubleshooting in Eigrp?

SWITCHING:

1. What is vlan?
2. What is inter vlan routing?
3. What is vtp?
4. Differentiate between Vtp V2 & V3
5. What is STP? (how it elects root bridge, root port, designated port and Blocked port)?
6. What is PVST,RSTP,MST?
7. What is Port fast, bpdu guard, bpdu filter, uplink fast, backbone fast?
8. What is Topology Change notification in STP?
9. What is Root guard and Loop guard?
10.What is Ether channel?
11.Troubleshooting Vlan Issues?
12.What is SPAN & Remote span?


HSRP:
GLBP:
VRRP:

Friday, March 3, 2017

SFTP TUNNELING SETUP IN PUTTY

Set up Putty for SFTP tunneling (One time set up)

1.        Under “Session”
 

 1.1.        Host Name: ftp.finest.com

  1.2.        Port: 22 (Because we're connecting over SSL)

  1.3.        Connection Type: SSH

  1.4.        Saved Sessions: SFTP Tunnel

2.        Under Connection >> SSH >> Tunnels

  2.1.        Source Port: 3121(Choose any port here, so long as it's not already in use.)

  2.2.        Destination: example.ftp.finest.com:22 (Because SFTP operates over SSL.)

  2.3.        Click “Add”

3.        Under Session”

 3.1.        Click “Save”

Tuesday, September 20, 2016

SECURITY INTERVIEW QUESTIONS


SECURITY INTERVIEW QUESTIONS








1. What is Firewall?

Firewall is a software or hardware device. It's security boundary.It prevent unwanted traffic into and out of your computer or network.its perform the following operation:

Packet filtering (ACL).
Routing
and Network Address Translation (NAT).



2. What are the types of Firewall?

Packet filtering (Work in Network Layer).

Application level or Proxy (Works in Application Layer)

Circuit level firewall (works in Session Layer)

Stateful Firewall (Perform all the layers).



3. Stateful Firewall?

Stateful firewall is know as dynamic packet filtering. It's monitor the state of the active connection and use this information to determine which network packets to allow through the firewall.

Static packet filtering only the headers of the packets are checked. Attacker can change the headers and enter in to the network. but dynamic packet filter can analyze packets down to application layer.


4. Difference between PIX and ASA?

PIX: 

Dedicated Hardware Firewall.
PIX OS similar to IOS.
GUI Tool PDM that allow secure configuration, Mgmt & Monitoring.
Stateful packet filtering.
Not support web vpn (SSLVPN).
16 MB RAM

ASA: 

ASA New Firewall, Anti-malware Security Appliance.
Its include Firewall, IPS (Intrusion Prevention system), Anti-X & VPN
GUI Tool ASDM that allow secure configuration,Mgmt & Monitoring.
Stateful packet filtering.
support web vpn (SSLVPN).
64 MB RAM



5. What is packet filtering?

Packet filtering is a process for protecting a local network form untrusted network.

Network Layer process (Set of rules) the packets are allowed or denied based on the source and destination address, port, or protocol.



6. Explain Trusted Network and Untrusted network?

Trusted Network:


Trusted network computers on trusted network transparently access the files, printer and other resources.. Access of this network define by the local network administrator.

Example : LAN


Untrusted Network:

Opposite of the trusted network. computers on untrusted network control by their owners.

Example :Internet.



7. PIX or ASA Security Levels?

security Level to find the traffic whether its trusted or untrusted.
Security level - 100 (highest possible) used by inside interface... this level is consider most trusted.

Security level -0 (lowest possible) used by outside interface...this level is consider untrusted.

Security level 1 - 99 you can you any of the interface...

DMZ security level - 50 normally administrator will configure.

typically Security Level inside-100, outside-0 & DMZ-50.




8. What is DMZ?

DMZ - Demilitarized Zone is a physical or logical subnet that contain a organization external-facing service to untrusted network (Internet).

Additional Layer of Security. External users can have only access to the equipment in the DMZ.

Services such as mail server, web server, FTP server and VOIP server (DMZ subnet).



9. What is ip spoofing or spoofed packets? how to prevented?

IP spoofing is a ip address forgery. Hackers entering from untrusted site to trusted site.

hackers find the trusted network ip address and change the packet header and entering in to the trusted sites, IP address indicating that msg is come from trusted network.

Prevent by : Crypto, IP-Sec, VPN & RSA




10.Denial-of-Service? or Distributed Denial-of-Service?

Typical connection, the user sends a msg asking the server to authenticated it. the server returns the authentication approval to the user. The user acknowledges this approval and then is allowed into the server.

In a Denial of service attack, the attacker sends batch of forged authentication request to the server. server can not find the user authentication approval. the server waits some time, server try to close the forged connections, the attacker sends a new batch of forged authentication request. At that time the machine or network resources not available for intended users.
Target - websites , service hosts.

symptoms:
unusual slow network performance
unavailability of particular websites.



11. what is syn flood?

      A syn flood is a form of denial-of-service attack in which an attacker sends syn requests to a target's system in an attempt to consume enough server resources to make the system not available for intended users.



12.What are the commands are using to Troubleshooting IPSEC VPN on ASA?

To see ISAKMP configuration: show run crypto isakmp
To see IP-Sec configuration:  show run crypto ipsec
To see crypto map configuration: show run crypto map

To see IPsec operational data:  show crypto ipsec sa

To see ISAKMP operational data: show crypto isakmp sa


Debug commands for VPN tunnels:
To debug isakmp:  debug crypto isakmp

To debug ipsec:  debug crypto ipsec

To manually clear an ISAKMP or IPSEC SA:

Clear crypto ipsec

Clear crypto isakmp


To clear isakmp or ipsec sa based on ip address or crypto map:
 To clear IPsec SA counters:  Clear crypto ipsec sa counters

 To clear IPsec SAs by entry: Clear IPsec SAs entry ip address

 To clear IPsec SAs by map:  Clear IPsec SAs map cryptomap _name

 To clear IPsec SA by peer: Clear IPsec SA peer ip address

 To clear ISAKMP SA by ipaddress : clear crypto Isakmp SA ipaddress


13. How to reset all the tunnels?

Clear crypto Isakmp sa

14. How to reset only one tunnel reset?

clear ipsec sa peer <Address of the other end of the tunnel>

clear ipsec sa peer 202.192.168.12



General Networking Interview Questions

   
1. What is the use of tracert or trace route command?
       Tracert (to trace the routes) command used to find the routes. The packets travelling from source to destination.(How many routers is crossing from source to destinations we can find. Maximum of 30 hops. [Include your networks also])

C:\>tracert google.co.in
Tracing route to google.co.in [74.125.236.55]

over a maximum of 30 hops:

1 1 ms 1 ms <1 ms 150.191.112.161 [your network]
2 21 ms 21 ms 21 ms 121.240.2.54
………


7 22 ms 21 ms 24 ms 209.85.241.33
8 21 ms 20 ms 20 ms maa03s04-in-f23.1e100.net
…..

[74.125.236.55]

Trace complete.


2. What is three-way-handshake in TCP?
     Three-way-handshake is process in TCP over IP. shortly we tell- syn, syn-ack 
& ack. Source and destination device (during the tcp initialization process)exchanging few control packets, before data communication process. This synchronization is called three-way-handshake.
    Start the exchange of data both TCP devices (Sending device and receiving device) before need to be synchronized. During the tcp initialization process. The sending and receiving device exchange a few control packets for synchronization purposes. This exchange known as a three-way handshake.
3. Explain routing protocols and routed protocols?
    Routing protocols:
    Routing protocol helps the router to find the best path based on the routing table. (Routing protocol helps the router to bind routing table automatically). Routing protocols used in router to exchanging routing information between routers.
    RIP, IGRP, EIGRP, OSPF, BGP, IS-IS…
     Routed Protocols:
     Routed protocols help the router to forward data packets from one router to another router. Routed protocol used to send Data packets to outside network.
     IP and IPX - Internet Packet Exchange, SPX -Sequence Packet Exchange (Novell Platform), Apple Talk


4. How to configure ip address in command prompt?
    Netsh command:
    netsh interface ip set address name="local area network" static x.x.x.x x.x.x.x x.x.x.x 1
     netsh interface ip set address "local area network" dhcp
     netsh interface ip set dns "local area connection" static x.x.x.x
     netsh interface ip set dns "local area connection" dhcp



5. What is routing? explain classless routing and classful routing?
     Routing is a process to moving data between source to destionation (from one network to another network) based on its ip address is called routing.
Classful and Classless routing:
Classful:
                Routing protocol do not send subnet mask information when a route update is sent out. All devices in the network must use the same subnet mask.
Classless Routing:
                Routing protocol sends subnet mask information in the routing updates. classless routing allows VLSM (Variable Length subnet mask),

6.What is use of ARP?

    Address resolution protocol used to find the physical address of another host [from the well-known ip address of the host]. (Same Network)



7. What is use of Reverse ARP?
    Reverse ARP used to find the ip address of the host [from the well-known Mac address of the host]. (Same network).



8. What is Proxy ARP?
    Node configure with default gateway. the router goes down. Node will not confiure automatically to another default gateway until system admin configure manually. we can not configure more then one default gateway. if you enable proxy arp this protocol helps the node to automatically connect from this subnet to remote subnet.. with out configuration (if default gateway rotuer goes down).



9. What is Matric?
    Matric is distance between source and destination... This Matric will differe from one protocol to another protocol. example RIP matric value 16 hops.












10.What is the administrative distance of the routing protocol?

     Administrative Distance:
     Dynamic-0            Static-1          EIGRP- 90        IGRP-100    OSPF-110

     RIP -120               EBGP-20        IBGP-200




11. What is collusion Domain and broadcast domain?
     
      Collusion domain:

      Collision domain is a logical network segement in which the packets collided with one another due to being send on the same shared media.
Switches break up collision domain. collusion domain cannot be a broadcast domain.


       Broadcast domain:

       A broadcast domain is a logical network segment in which the traffice is transmitted out to all the connected network devices, provided that the devices share the same subnet and are in the same vlan.
Routers break up broadcast domain.

        Broadcast cost domain is a link it will send broadcast to all other port with in the LAN. With in the same network broadcast allowed to all other port.. broadcast domain can be a collusion domain. 



12. How the DHCP uptain IP address?

      4 steps:
      1. Discovery 2.Offer 3. Request 4. Acknowledge



13. .What is use of PING Command?

PING command used to check whether a computer or device communicating with other computer or device over the network.

To Test purpose -   whether source computer to reach the specified destination computer.

Loop back purpose also Ping 127.0.0.1 (Network Stack working or not)

Ping command used by ICMP protocol.  Echo request send from Source and waiting echo reply from Destination.
14. What is the use of ipconfig command?






Ip This utility allows you to get the IP address information of a Windows computer. It also allows some control over active TCP/IP connections.
ipconfig Usage: default command contains the IP address, network mask and gateway for all physical and virtual network adapter.
Ipconfig /all
This option displays the same IP addressing information for each adapter as the default option. Additionally, it displays DNS and WINS settings for each adapter.
ipconfig /release
ipconfig /release "Local Area Connection 1"
ipconfig /release *Local*
ipconfig /renew


15. How many host can configure in 192.168.1.24 /28?

Address:   192.168.1.24         
Netmask: 255.255.255.240 = 28 11111111.11111111.11111111.1111 0000
Network: 192.168.1.16/28        (Class C)
Broadcast: 192.168.1.31         

HostMin: 192.168.1.17         
HostMax: 192.168.1.30         

Hosts/Net: 14 (Private Internet)






16.Why should we use ip classless command ?

when implementing default-route,

The behavior and the way router in order finding the destination subnet is different when we implement using ip classless vs ip classful

Example routing table :
10.0.0.0/24 is subnetted, 3 subnets

C       10.1.1.0 is directly connected, FastEthernet0/0

D       10.1.2.0 [90/2172416] via 10.1.1.254, 00:00:33, Serial1/2

C       10.1.3.0 is directly connected, Serial1/1

S*  0.0.0.0/0 [1/0] via 10.1.3.254

Case when router received packet destined to 10.1.4.4,

ip classful behavior : the router will try to find the answer on the 10.0.0.0/24 subnet class and will not try to look even further outside that range, it could not find any line match, packet will be dropped

ip classless behavior : the router will try to find the answer on the 10.0.0.0/24 subnet class, since it can't find the match destination subnet, it tries outside the subnet class, hit the default-route line, packet forwarded to next-hop 10.1.3.254

What is Object Groups in ASA and Use?

Object Grouping allows objects such sa ip hosts, networks, protocols, ports, and ICMP types to be collected into object groups. Once configured object group  you can used with ACCESS List or Conduit.

In order to reference all objects within that group. This is reduce the configuration size.

You cannot rename the object group. You need to delete them and apply them again with the changes.

Once the access list is created with object group, it must be applied to the interface with the access-roup command


How will you Trouble shooting of object group?
Show running-config object-group –show currently defined ACL

Show access-list no. – it will show each object access list defined.

Clear object-group Grp-type – When you enter without parameter (grp-type). Command clear all defined object group (entire object group). So while entering clear object group command must watch grp-type is must.





What is stack in Switch?
stackable switch is a network switch that is fully functional operating standalone but which can also be set up to operate together with one or more other network switches, with this group of switches showing the characteristics of a single switch.

The common characteristic of a stack acting as a single switch is that there is a single IP address for remote administration of the stack as a whole, not an IP address for the administration of each unit in the stack

SWITCH - THEORY



Cisco Hierarchical Design Model
3Model:
Access
Distribution
Core
Access: Provides end user access to the network LAN. Local devices such as phone, computer and local network.

Distribution:Combination of L2 and L3 switching. Redundant distribution layer switches provides dual path to the access switches and core switches.Providing Routing policy /route selection/ filtering /summarization /security policy.

Core:Backbone provide high speed l3 path between distribution layer and other network segment. Gigabyte /fast Ethernet connectivity. Data / voice / Convergence LAN, WAN, MAN. Reliability and Scalability. Fast switching for traffic into and out of data center.
Depends upon traffic flow.
Note:
Access Model:
User access port typically fast Ethernet or fast. Access switches must have the necessary port density and can be either L2 or L3 Switch.
Distribution Model:
Port from user Access to Distribution layer should be gigabit Ethernet or better.
Distribution switch should be multilayer or L3 switch.
Core Model:
Link from Distribution to Core Gigabit Ethernet channel or 10 Gigabit Ethernet.




VLAN- Virtual LAN

Breaking large network into smaller pieces.
Benefit:
Minimize the amount of broadcast traffic on logical segment. Logical LAN. Logical Subnet. It defines Broadcast Domain. Logical subnet is a group of switch port assigned to the same VLAN.VLAN Members can assign either statically by port or dynamically by Mac Address or username.
Two type of VLAN
End to End –Vlan Members reside on different switches throughout the network.
Troubleshoot more complex because so may switches can carry traffic for specific VLAN and Broadcast can travels many switches.


Local VLAN Based on their location. More scalable and easy troubleshoot. Traffic flow more deterministic. It enables more redundancy and minimize failure domain.
It requires routing function to share resource between VLAN.
Vlan planning
Vlan numbering, name and ip address Vlan placement local or multiple switches
Are any trunk necessary and where? VTP parameters. Test and verification




VLAN Trunk

Trunk is a link that carries traffic for more then one VLAN.
Trunks multiplex traffic from multiple VLAN.
Typically connected switches and enable ports on multiple switches to be assigned to the same VLAN.
Trunk link need a cross cable
Allow same vlan to access from different switch
Switch from reach trunk, trunk will add tag and pass to other switch
Trunk protocol ISL and IEEE 802.1Q (dot 1 q)
ISL
Cisco proprietary
Frame reach the trunk frame will be encapsulation
Tail and header will add here
Don’t recognize the native VLAN.
Native Vlan also adding tail and header
IEEE 802.1Q (dot 1 q)
Industry standards
Header only added
Recognize the Native VLAN not adding any tag.
Native Vlan default VLAN and VLAN1 all are same
When a frame comes into a switch port, the frame is tagged internally within the switch with the vlan number of port. When it reaches the outgoing port the internal tag is removed. If the exit port is a trunk port its vlan is identified in either the ISL or 802.1q tag. The Switch on the other end of the trunk removes the ISL or 802.1q information check the Vlan of the frame and adds the internal tag. If the exit port is a user port, the original frame is send out unchanged, making the use of Vlan transparent to the user.






VTP: VLAN Trunk Protocol
VTP Cisco Property protocol runs over trunk links and synchronizes the VLAN databases of all switches in the VTP Domain.
VTP Domain is an administrative group. All the switches with the group must have the same VTP domain name configured or they do not synchronize databases.
VTP works
Using the configuration Revision numbers and VTP advertisements
All switches send out VTP advertisements every five minutesor when there is a change to the vlan database (When a VLAN is created deleted or renamed)
VTP advertisements contain a configuration Revision Number. This number is increased by one for every Vlan chage.
When switch receives a VTP advertisement, it compares the configuration Revision number against the one in its VLAN database
If the new number is higher, the switch overwrites its database with the new VLAN information and forwards the information to its neighbor switches.
If same number switch ignores the advertisement.New number is lower the switch replies with the more up to date information contained in its own database.







VTP Switch Role
VTP Server: default VTP role. Server can create delete and rename. VTP advertisements and synchronize their databases with other switches in the domain
Client: Clients cannot make VLAN changes. VTP Advertisements and Sychronize their database with other switches in the domain.
Transparent: it can create delete and rename VLANs. But its Vlan’s are only local.
Adding New Switch to a VTP domain
Disconnect from network Change to VTP transparent and delete the VLAN.dat file from its flash memory. Set to fake vtp domain name and into client mode. Reboot. Configure corrects vtp setting such as domain password mode and version. Connect the switch to the network & verify that its receives the correct information.
Issue
VLAN
Physical connectivity
Correct VLAN Configuration
Allowed VLAN.
Trunk Problem:
Both side link trunk modes, check both side configure with same encapsulation,
Vtp:
Domain name matches of both switches (Case Sensitive)
Check revision number. Password, switches in transparent mode.



HSRP
Hot Standby router protocol (HSRP) is a Cisco property.


Two or more device support a virtual router with a made up Mac Address and unique ip address


Host use this ip address as their default gateway and the Mac address for the layer 2 header.


Virtual Mac address is 0000.0c07.ACxx. In which XX is HSRRP group.


Multi group (Virtual router) are allowed.


Active routers forwards traffic.


Standby is backup.


Standby routers send hellos (Multicast 224.0.0.2 Udp port 1985 to detect a failure of the active router. On failure the sandby device starts answering messages send to the ip and Mac addresses of virtual router.


Active router is chosen because it has the highest HSRP priority (Default Priority 100). In case of a tie. The router with the highest configured ip address wins the election.



If you decide particular switch to become active you must change the priority to high.. highest priority router become active




HSRP States:


Initial :HSRP is not running


Learn: the router does not know the virtual ip address and is waiting to hear from the active router.


Listen: the router knows the ip and Mac of the virtual router but it is not the active or standby router.


Speak: Router Sends periodic: Hellos and participates in the election of the active router.


Standby: router monitors hellos from active router and assumes respobsibility if active router fails.


Active: router forwards packets on behalf of the virtual router.


Along with configuring Priority, configure preempt to enable a router to take over if the active router has lower priority.


Hello and hold times caller timer

Hello time can change from sec to msec. Default 3 seconds

Hold time also can change form sec to msec default 10 seconds.


Router in the same HSRP group must belong to the same subnet /VLAN.


Standby  group-no Ip virtual-IP-address


HSRP 1 IP 10.0.0.1


Authentication helps prevent unauthorized routers from seeing user traffic. MD5


Trouble shooting commands

Show standby interface interface

Show standby brief

To monitor

Debug standby


SPANNING TREE PROTOCOL

1. What is the port cost of STP?

Link Speed Cost

10 Mbps 100

100 Mbps 19

1 Gbps 4

10 Gbps 2
What is root Port?
      Switch port is closer to root bridge. (In terms low Cost).  Which port is reaching to the root bridge of the network segment is called root port. Every non root bridge has a single root port.
What Designated Port?
    Every network have single designated port. Closest to the root bridge. All the ports on the root bridge is designated port.
What is Non-designated port?
Non designated ports are block traffic for loop free.(redundant link).