Questions tagged [cisco-ios]

Cisco IOS (Internetwork Operating System) is the name of the operating system that is run by virtually all enterprise-class Cisco switches and routers, as well as in certain other Cisco networking products.

Cisco IOS is an embedded operating system for Cisco networking products. It is found in nearly all of Cisco's enterprise-class switches and routers.

Cisco IOS is a monolithic-kernel OS with no GUI. It is designed to perform some of its functions in software, and to delegate others to specialized hardware. For example, routing and other protocols run as IOS processes and contribute to the Routing Information Base (RIB). The RIB is processed to generate the final IP forwarding table (FIB, Forwarding Information Base), which is used by the forwarding function of the router. However, in routers with hardware-based forwarding, such as the Cisco 12000 series, IOS computes the FIB in software and loads it into the forwarding hardware (such as an ASIC or network processor), which performs the actual packet forwarding function.

Cisco releases and supports several versions of the IOS software, roughly parallel to the stable/unstable/nightly versions of open source projects. Cisco calls these versions "trains," and it releases several of them. The mainline and T trains are the most common, and the rest are specialized for specific groups of customers.

  • The mainline train is designed to be the most stable release the company can offer, and its feature set never expands during its lifetime. Updates are released only to address bugs in the product.
  • The T is the Technology train, gets new features and bug fixes throughout its life, and is therefore potentially less stable than the mainline. The T train, once mature, becomes the basis for the next version of the mainline train.
  • The S is the Service Provider train, runs only on Cisco's core router products and is heavily customized for Service Provider customers.
  • The E is the Enterprise train, customized for implementation in enterprise environments.
  • The B is the broadband train, meant to support broadband features.
  • The X* trains (e.g. XA, XB) are a series of speciality trains and are not widely available.
238 questions
1
vote
1 answer

How to ensure that the dhcp pool name exist before updating options using ansible

Here is my playbook. When I execute it, the command ip dhcp pool {{ item.name }} don't check if the name exist or not. I use the parameter "match: exact" but it doesn't work. So can I use if statement in ansible playbook or is there a way to check…
1
vote
1 answer

Unable to connect between Router and PC with crossover cable in Cisco Packet Tracer Student

I just started my CCNA course. I tried to connect the router to the PC with a crossover cable, but it always shows that the protocol is down. Any configuration I might have missed?
Janzen Eng
  • 43
  • 2
1
vote
1 answer

Ansible assert match string from output

I have a playbook to retrieve show version output from a Cisco NX-OS switch and using assert_module. I want to match a string "NXOS: version 9.3(6)" in the output. If succeeds, then print success message, or else fail message. With the below scripts…
har83
  • 33
  • 1
  • 8
1
vote
2 answers

Ansible cisco ios, change vlan on interface

Ansible cisco ios, change vlan on interface I am just a beginner (ansible 2.7.7) and I still have to study a lot of literature, but I hope in the future I will be able to learn it completely Now I'm trying to write the following in the playbook On…
Artur88
  • 43
  • 6
1
vote
1 answer

Python, find line in text file, and jump to next 'string-to-find'

string to search: filecontent = policy-map PM_QOS_C_V-50-50-0-0 class CM_QOS_C_VOICE priority level 1 police cir percent 9 class CM_QOS_C_VIDEO priority level 2 percent 15 class CM_QOS_C_ROUTING bandwidth…
Drml Brt
  • 69
  • 5
1
vote
1 answer

Python Yang on Cisco Routers

I have a Cisco CSR Router with Cisco XE installed. I want to display the YANG capabilities of my router. My code is as follows: main.py from ncclient import manager import xml.etree.ElementTree as ET router = { "host": "10.0.0.1", "port":…
Jake Doeni
  • 23
  • 3
1
vote
6 answers

How stable are Cisco IOS OIDs for querying data with SNMP across different model devices?

I'm querying a bunch of information from cisco switches using SNMP. For instance, I'm pulling information on neighbors detected using CDP by doing an snmpwalk on .1.3.6.1.4.1.9.9.23 Can I use this OID across different cisco models? What pitfalls…
Daniel Papasian
  • 16,145
  • 6
  • 29
  • 32
1
vote
1 answer

Ansible Jinja2 always showing "Changed"

I have a Jinja2 template I am using for Cisco IOS devices. Currently my playbook runs fine, but always shows "changed" despite there being no obvious changes... I ran with the verbose tag and received the output below, but didn't see anything…
Parakoopa
  • 505
  • 1
  • 9
  • 22
1
vote
1 answer

SSH Not Working with Cisco Integrated Services Router

I'm trying to ssh into my cisco ISR router. DHCP is working and I can ping the default gateway (the ISR), and can ssh with other devices on the LAN. so I know the LAN connection isn't the problem. I set up a local user that works with console logins…
1
vote
2 answers

config from router shows as one line need multiline for ciscoconfparse

Network guy that's new to Python and programming and found this ciscoconfparse library that looks to have some pretty useful features. I'm running into an issue that I'm sure is something basic, but haven't figured it out. I'm trying to pull snmp…
spurious1
  • 11
  • 1
1
vote
2 answers

python telnet not pressing enter with "\n"

I am working on a script to pull configs from Cisco devices in GNS3. Currently it is using a hard coded IP & port due to another separate issue but this is the code I am currently using. import getpass import telnetlib print "Getting…
1
vote
1 answer

Netmiko send_config_set - parsing the response - detecting errors?

I'm using the Netmiko library to connect to devices and send new config commands via the "send_config_set" method. Currently, I am doing this on Cisco IOS devices only. But I am making something that will allow a user to enter any commands (with…
KillerKode
  • 957
  • 1
  • 12
  • 31
1
vote
3 answers

Python - Read Specific Lines of Text

I'm trying to search files for specific text. Then print the line immediately prior to the line, and all subsequent lines that start with a specific character, particularly a 'space.' Here's a sample of the file I'm trying to read: interface vlan…
T.J.
  • 19
  • 5
1
vote
2 answers

Read sections from file with Python

I'm trying to convert the cisco running configuration into parameters using python, and i'm stuck at reading configuration sections with python. Say for instance you have the below stanza: ! interface Async1 no ip address encapsulation slip ! …
1
vote
1 answer

Using mako for Cisco config generation. Is it possible to use the netaddr module (or any module) in templates?

I am very new to python and mako and I may be having trouble with basic concepts. I have working templates but my CSV input could be cleaned up considerably if I could use the netaddr module to work with IP addresses in the template. What I would…
Daniel Flick
  • 93
  • 1
  • 10
1 2
3
15 16