[python]First use of Napalm

I have a few Cisco routers which are on IOS, I have never used NAPALM before, I use netmiko most often for cisco devices, Napalm itself is based on netmiko, I napalm has a get_facts method that gather the information of cisco ios router, this is very convenient as compared with netmiko, netmiko is more … Continue reading [python]First use of Napalm

Advertisement

[python]Nornir framework usage example 1 – show ip int brief

Introduction Before using Nornir, I was using netmiko, netmiko is a steady module which makes configuring, getting information from cisco based devices easily. Of course netmiko is not limited to just Cisco, it is a multi-vendor module. Napalm is another network module which does the same thing as netmiko, however when dealing with Cisco ios … Continue reading [python]Nornir framework usage example 1 – show ip int brief

[python]Automating OSPF configuration of two routers

Network diagram There are two vIOS which are R1 and R2, they have their gi0/2 and gi0/3 connected to the R5 switch, the configuration is pushed from the cloud through their gi0/2 and gi0/3 to configure their gi0/0 to become OSPF neighbours. Objective To configure the two routers to become ospf neighbors, the OSPF configuration … Continue reading [python]Automating OSPF configuration of two routers

[python]Example script on Cisco router

This is an example script based on this https://github.com/davidbombal/pythonvideos/blob/master/paramiko-pythonssh1.py It works almost like pexpect, however need to have a privilege 15 account to make the SSHClient work, as there is no input to accept enable secret. I was trying to figure out the feasibility of using API to push the configuration, I find the send … Continue reading [python]Example script on Cisco router

Extending the python script to configure OSPF with ncclient

Previously I have successfully download the configuration from the netconf enabled router, now i have extended support to configure ospf. This is a simple lab to further extend and get myself familiarize and comfortable with netconf. During the lab I was careless, I inadvertently left a space on my netconf snippet that breaks my script … Continue reading Extending the python script to configure OSPF with ncclient

Is full meshed iBGP necessary?

Revisit the configuration of the iBGP routers R2#sh run | s r b router bgp 2 bgp log-neighbor-changes neighbor 3.3.3.3 remote-as 2 neighbor 3.3.3.3 update-source Loopback2 neighbor 3.3.3.3 next-hop-self neighbor 4.4.4.4 remote-as 2 neighbor 4.4.4.4 update-source Loopback2 neighbor 4.4.4.4 next-hop-self neighbor 192.168.12.1 remote-as 1 R2# R3#sh run | s r b router bgp 2 bgp … Continue reading Is full meshed iBGP necessary?

Solving routing loop problem due to poorly configured redistribution

The diagram Routing loop when vIOS2 (R2) is trying to reach 1.1.1.1 in vIOS1 (R1) R2#traceroute 1.1.1.1 numeric Type escape sequence to abort. Tracing the route to 1.1.1.1 VRF info: (vrf in name/id, vrf out name/id) 1 192.168.23.3 4 msec 4 msec 5 msec 2 192.168.34.4 4 msec 8 msec 5 msec 3 192.168.24.2 2 msec … Continue reading Solving routing loop problem due to poorly configured redistribution

Administrative distance

Administrative distance (AD) influences the decision on which routing protocol the router should trust: AD can be modified. AD is only locally significant to the router, other router's AD of routing protocol might be modified. Router will use the routing protocol that has the lowest AD to make routing decision. Default Administrative distance of various … Continue reading Administrative distance