# Accessing Network Devices via Jump Hosts

**URL:** <https://forum.ansible.com/t/accessing-network-devices-via-jump-hosts/33156>\
**Category:** Ansible Project\
**Created:** [June 11, 2020, 5:17pm UTC](https://forum.ansible.com/t/accessing-network-devices-via-jump-hosts/33156 "2020-06-11T17:17:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashwajit\_Bhoutkar](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Ashwajit\_Bhoutkar](https://forum.ansible.com/u/Ashwajit_Bhoutkar)\
**Post date:** [June 11, 2020, 5:17pm UTC](https://forum.ansible.com/t/accessing-network-devices-via-jump-hosts/33156/1 "2020-06-11T17:17:42Z")

</div>

Hi,

I’ve a general question related to Ansible for accessing the network devices. While going through the ansible documentations, I understood that the control host is directly connected to the network elements and send the commands for configurations. However, in real world scenarios, these network devices via a jump host, i.e the case in which the control machine has to login to a linux machine first and from this linux machine, they ssh is to be done to network devices. Is there a way to achieve this using ansible?

Thank You,

Kind Regards,

Ashwajit

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [June 11, 2020, 6:09pm UTC](https://forum.ansible.com/t/accessing-network-devices-via-jump-hosts/33156/2 "2020-06-11T18:09:50Z")

</div>

[https://docs.ansible.com/ansible/latest/reference\_appendices/faq.html#how-do-i-configure-a-jump-host-to-access-servers-that-i-have-no-direct-access-to](https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-configure-a-jump-host-to-access-servers-that-i-have-no-direct-access-to)

---

<div class="post-metadata">

**Author:** ![Srinivas\_Naram](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@Srinivas\_Naram](https://forum.ansible.com/u/Srinivas_Naram)\
**Post date:** [June 12, 2020, 7:58am UTC](https://forum.ansible.com/t/accessing-network-devices-via-jump-hosts/33156/3 "2020-06-12T07:58:19Z")

</div>

I have a similar question. In one of the environment, Application server (in which ansible is installed) is located in Green network and actual network devices are located in Red Network. Connection from Green network to Red Network is only by a VPN connection. Is there a possibility in Ansible to connect from Green net to red net via VPN ?
