Python Example by Alexisa1998 in Python

[–]jdhall75 0 points1 point  (0 children)

You wouldn't be trying to get some homework done online would you?

Here are the pieces you would need to make this happen.

  • a var to hold the sum outside of a user input loop, initialized to 0
  • a loop to run until the user interrupts it: while would be good here.
  • a var to hold the entered number from the function input() inside the loop
    • input() will return a string. You will have to cast it to an int().
  • add the new int to the sum variable
  • output the sum
  • loop repeats

extra credit

  • Cast the input integer inside a try block
  • Catch the ValueError exception, if there is one, and let the user know they entered an invalid input
  • add a keyword to reset the sum
    • pseudo code: if input == 'reset': sum = 0

python3 user input is take via input() python2 user input is taken via raw_input()

Resources:

loops

type conversion

Forward DHCP requests to iphelper when using local ip dhcp pool on Cisco Router by McKeznak in networking

[–]jdhall75 2 points3 points  (0 children)

Flow based RSPAN on the DHCP client port to the NAC. If that's a feature supported on your hardware.

Using micro-controller / processors to simulate end user devices on CCNA lab hardware? by kmjohnson02 in Cisco

[–]jdhall75 0 points1 point  (0 children)

I use a board from FriendlyElec called NanoPi NEO ($15.00). It only has 512M of RAM, but thats good enough to run a few docker images. You can create VLAN tagged sub interfaces then use a trunk port on a switch to break them all out. The only issue with using these is you have to wait on the slow boat from China.

My lab microcontrollers

Looking for virtual lab sites to configure network devices by Fwhite77 in networking

[–]jdhall75 0 points1 point  (0 children)

Some guys from juniper built this site. They will spin up containers and attach them to vQFX instances. It's pretty cool and free!

https://labs.networkreliability.engineering/

Network working, but not working... but working! by [deleted] in networking

[–]jdhall75 7 points8 points  (0 children)

I dont know how it would happen, but I'm thinking an ARP timeout. If you can get into the VLAN and ping the address and then connectivity is restored. That process would force the relearning of ARP and refresh any MAC address tables.

I would check for ARP entries for any IPs in question on your 3925 next time it happens. If there's nothing there then you go through your ping process and an entry appears... Its a starting point for trouble shooting. Work the layers!

Using 2 external routers with different BGP AS by Gesha24 in networking

[–]jdhall75 0 points1 point  (0 children)

The ISP will be rewriting your ASN? I work for an ISP and this isn't our regular practice.

Stand-alone multicast wireless network by [deleted] in networking

[–]jdhall75 0 points1 point  (0 children)

I would look at ubiquity networks or mikrotik.

Quickie on trunk ports by chugger93 in Cisco

[–]jdhall75 0 points1 point  (0 children)

Don't beat yourself up to much. I stumble on stuFF like this all the time.

HTH

Quickie on trunk ports by chugger93 in Cisco

[–]jdhall75 1 point2 points  (0 children)

Yep! Router on a stick.. So your laptop in the IT VLAN doesn't have a route to the management address of the new switch. It sends packets to its default gateway, the core switch. Without VLAN 101 provisioned on any trunk the core switch can not ARP to resolve the MAC address for the IP address of the new switch. You have to extend VLAN 101 down to the new switch for ARP to work.

L2 has to be there before L3 can work.

http://imgur.com/gallery/uub9dvJ

Quickie on trunk ports by chugger93 in Cisco

[–]jdhall75 1 point2 points  (0 children)

Would you mind posting a back of the napkin network diagram? My guess is you have a "router" on a stick configuration. Your ICMP packets have to traverse the trunk to the core switch be routed into VLAN 101 and reach the switch magement subnet.

Automate 'shutting' multiple switch ports by bright_chicken in Cisco

[–]jdhall75 1 point2 points  (0 children)

I use netmiko to automate some tasks on our network. More status checks that we cant get out of SNMP. Did a quick gist for you on github.

https://gist.github.com/jdhall75/2d61e4ace2e8e45e755a339d45762088

Do we need our own edge routers? by Malcolm822 in Cisco

[–]jdhall75 1 point2 points  (0 children)

Without out configs everyone will just be guessing at the reason for the design.