Skip to content

Commit

Permalink
made a little easier to use
Browse files Browse the repository at this point in the history
  • Loading branch information
everythingeverywhere committed May 28, 2020
1 parent 357efa8 commit 11deabc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# networking-basics
Understanding Linux networking helps to understand how containers talk to each other, this repo is a summary of the steps to create 2 namespaces and connect them with a bridge

# First clone this repo if you want to run the script to create vm's on your machine

git clone https://github.com/everythingeverywhere/networking-basics.git

# Create a Linux VM if you don't have one
sh create-vm.sh

Expand All @@ -15,4 +11,10 @@ sh create-vm.sh
git clone https://github.com/everythingeverywhere/networking-basics.git && cd networking-basics

# Create the all from blog
sh create-net.sh
sh create-net.sh
---
## Ready for the results
# Try pinging pb’s ip 192.168.0.56 from the jelly namespace
sudo ip netns exec jelly ping 192.168.0.56
# If you check the routes on your machine the bridge is now visible to the host
ip route
8 changes: 8 additions & 0 deletions clean-up.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# list vms
multipass list
# delete linux-vm
multipass delete linux-vm
# clear linux-vm from
multipass purge
# verify list is clear
multipass list
5 changes: 1 addition & 4 deletions create-net.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,4 @@ sudo ip link set bread-pb-veth master brd1
sudo ip link set bread-j-veth master brd1
# To verify
bridge link show brd1
# Try pinging pb’s ip 192.168.0.56 from the jelly namespace
sudo ip netns exec jelly ping 192.168.0.56
# If you check the routes on your machine the bridge is now visible to the host
ip route

0 comments on commit 11deabc

Please sign in to comment.