# Netlab Examples in GitHub Codespaces

DevFeed: [Netlab Examples in GitHub Codespaces](<https://devfeed.tech/articles/netlab-examples-in-github-codespaces-11037.md>)

Original publisher: [Read original article](<https://blog.ipspace.net/2024/07/netlab-examples-codespaces/>)

Published: 2024-07-01T05:59:00Z

Content type: tutorial

Language: en

Sources: [ipSpace.net blog](<https://devfeed.tech/sources/ipspace-net-blog.md>)

Topics: [GitHub](<https://devfeed.tech/topics/github.md>), [BGP](<https://devfeed.tech/topics/bgp.md>), [Network](<https://devfeed.tech/topics/network.md>), [browser](<https://devfeed.tech/topics/browser.md>), [container images](<https://devfeed.tech/topics/container-images.md>)

Tags: [bgp](<https://devfeed.tech/tags/bgp.md>), [browser](<https://devfeed.tech/tags/browser.md>), [container](<https://devfeed.tech/tags/container.md>), [container-images](<https://devfeed.tech/tags/container-images.md>), [docker](<https://devfeed.tech/tags/docker.md>), [github](<https://devfeed.tech/tags/github.md>), [netlab](<https://devfeed.tech/tags/netlab.md>)

## AI overview

A tutorial on running netlab examples in GitHub Codespaces. It explains the directory setup, how to start a lab with netlab up, and how to stop both the lab and the codespace afterward. The examples use container-based network devices, with some images downloaded from an online Docker registry.

## Source excerpt

A few days ago, someone asked me about the IPv4 next-hop details of running interface EBGP sessions. I pointed him to a blog post explaining them, adding, "And of course, you can test that in netlab." A few minutes later, it hit me: instead of asking him to set up netlab locally, I could enable him to do that in a minute with GitHub Codespaces. Setting that up was easy: copy the .devcontainer directory from the BGP labs repository into the netlab examples repository and commit the change. After a brief yak-shaving exercise (writing README files and rearranging a few folders), I successfully started the codespace and was ready for this blog post. There was just one gotcha... Read more ...