Skip to content

Commit

Permalink
Merge pull request kodekloudhub#45 from stepway/master
Browse files Browse the repository at this point in the history
fix error ip of veth-red
  • Loading branch information
M-Ayman authored May 18, 2021
2 parents 1d29e41 + 6077249 commit ae2793a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/09-Networking/05-Pre-requisite-Network-Namespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ $ ping 192.168.15.1

> On the ns
```
$ ip netns exec blue ping 192.168.1.3
$ ip netns exec blue ping 192.168.1.1
Connect: Network is unreachable
$ ip netns exec blue route
Expand All @@ -241,12 +241,12 @@ $ ip netns exec blue ip route add 192.168.1.0/24 via 192.168.15.5
# Check the IP Address of the host
$ ip a
$ ip netns exec blue ping 192.168.1.3
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
$ ip netns exec blue ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
$ iptables -t nat -A POSTROUTING -s 192.168.15.0/24 -j MASQUERADE
$ ip netns exec blue ping 192.168.1.3
$ ip netns exec blue ping 192.168.1.1
$ ip netns exec blue ping 8.8.8.8
Expand Down

0 comments on commit ae2793a

Please sign in to comment.