mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-31 15:26:49 +00:00

* 🔥 Removes octopress.js * 🔥 Removes use of root_url var * 🔥 Removes Octopress generator reference from feed * 🔥 Removes delicious support * 🔥 Removes support for Pinboard * 🔥 Removes support for Disqus * 🔥 Removes support for Google Plus * ↩️ Migrate custom after_footer to default template * ↩️ Migrate custom footer to default template * ↩️ Migrate custom header to default template * 🔥 Removes unused template files * 🚀 Places time to read directly in post template * 🚀 Removes unneeded capture from archive_post.html template * 🔥 🚀 Removes unused, but heaving sorting call in component page * 🚀 Merged javascripts into a single file * 🔥 Removes more uses of root_url * 🚀 Removal of unneeded captures from head * 🔥 🚀 Removal of expensive liquid HTML compressor * 🔥 Removes unneeded templates * 🚀 Replaces kramdown with GitHub's CommonMark 🚀 * 💄 Adds Prism code syntax highlighting * ✨ Adds support for redirect in Netlify * ↩️ 🔥 Let Netlify handle all developer doc redirects * ✏️ Fixes typo in redirects file: Netify -> Netlify * 🔥 Removes unused .themes folder * 🔥 Removes unused aside.html template * 🔥 Removes Disqus config leftover * 🔥 Removes rouge highlighter config * 🔥 Removes Octopress 🎉 * 💄 Adjust code block font size and adds soft wraps * 💄 Adds styling for inline code blocks * 💄 Improve styling of note/warning/info boxes + div support * 🔨 Rewrites all note/warning/info boxes
75 lines
2.1 KiB
Markdown
75 lines
2.1 KiB
Markdown
---
|
|
title: "Cisco IOS"
|
|
description: "Instructions on how to integrate Cisco IOS routers into Home Assistant."
|
|
logo: cisco.png
|
|
ha_category:
|
|
- Presence Detection
|
|
ha_release: 0.33
|
|
redirect_from:
|
|
- /components/device_tracker.cisco_ios/
|
|
---
|
|
|
|
This is a presence detection scanner for [Cisco](http://www.cisco.com) IOS devices.
|
|
|
|
<div class='note warning'>
|
|
This device tracker needs SSH to be enabled on the router.
|
|
</div>
|
|
|
|
Before using this scanner it is recommended that you lower the ARP cache timeout on your router, as Cisco IOS normally comes with a 4 hour default ARP cache timeout.
|
|
|
|
For example, the following commands will lower the timeout to 2 minutes on Vlan1:
|
|
|
|
```bash
|
|
# 1. use this command to see what Vlan your devices are on
|
|
show ip arp
|
|
|
|
# 2. Go into configure mode
|
|
conf t
|
|
|
|
# 3. Use the Vlan name as you see it from step 1 above
|
|
interface Vlan1
|
|
|
|
# 4. Set a new arp cache timeout
|
|
arp timeout 120
|
|
|
|
# 5. Exit
|
|
# Press <ctrl+c> to exit configure mode
|
|
|
|
# 6. Don't forget to save the new config, so that it will survive a reboot
|
|
copy running-config startup-config
|
|
```
|
|
|
|
<div class='note warning'>
|
|
|
|
If you have a very large number of devices on your VLan (+1000), then you may want to adjust the ARP cache timeout to suit your needs. See [this discussion](https://supportforums.cisco.com/discussion/10169296/arp-timeout) to learn more.
|
|
|
|
</div>
|
|
|
|
To use this device tracker in your installation, add the following to your `configuration.yaml` file:
|
|
|
|
```yaml
|
|
# Example configuration.yaml entry
|
|
device_tracker:
|
|
- platform: cisco_ios
|
|
host: ROUTER_IP_ADDRESS
|
|
username: YOUR_ADMIN_USERNAME
|
|
password: YOUR_ADMIN_PASSWORD
|
|
```
|
|
|
|
{% configuration %}
|
|
host:
|
|
description: The IP address of your router, e.g., 192.168.1.1.
|
|
required: true
|
|
type: string
|
|
username:
|
|
description: The username of an user with administrative privileges.
|
|
required: true
|
|
type: string
|
|
password:
|
|
description: The password for your given admin account.
|
|
required: true
|
|
type: string
|
|
{% endconfiguration %}
|
|
|
|
See the [device tracker integration page](/components/device_tracker/) for instructions how to configure the people to be tracked.
|