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
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
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
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
Facts about BGP weight attribute Cisco proprietary. Only available for Cisco routers, this attribute is not included in BGP update message. Because it is not included in update message, this attribute is only locally significant to one router. Because it is locally significant and only the configured router knows the weight, it is only viable … Continue reading BGP attributes: Weight
Revisit the configuration of the iBGP routers R2#sh run | s r b router bgp 2 bgp log-neighbor-changes neighbor 184.108.40.206 remote-as 2 neighbor 220.127.116.11 update-source Loopback2 neighbor 18.104.22.168 next-hop-self neighbor 22.214.171.124 remote-as 2 neighbor 126.96.36.199 update-source Loopback2 neighbor 188.8.131.52 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?
Problem 1: Did not receive prefix advertised by BGP peer. R2#sh ip bgp summary BGP router identifier 184.108.40.206, local AS number 2 BGP table version is 1, main routing table version 1 Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 192.168.12.1 4 1 44 43 1 0 0 00:36:08 0 R2 did not … Continue reading IP routing with BGP