Skip to content

Latest commit

 

History

History
110 lines (73 loc) · 1.44 KB

File metadata and controls

110 lines (73 loc) · 1.44 KB

Pod Networking

In this section, we will take a look at Pod Networking

  • To add bridge network on each node

node01

$ ip link add v-net-0 type bridge

node02

$ ip link add v-net-0 type bridge

node03

$ ip link add v-net-0 type bridge
  • Currently it's down, turn it up.

node01

$ ip link set dev v-net-0 up

node02

$ ip link set dev v-net-0 up

node03

$ ip link set dev v-net-0 up
  • Set the IP Addr for the bridge interface

node01

$ ip addr add 10.244.1.1/24 dev v-net-0

node02

$ ip addr add 10.244.2.1/24 dev v-net-0

node03

$ ip addr add 10.244.3.1/24 dev v-net-0

net-11

  • Check the reachability
$ ping 10.244.2.2
Connect: Network is unreachable
  • Add route in the routing table
$ ip route add 10.244.2.2 via 192.168.1.12

node01

$ ip route add 10.244.2.2 via 192.168.1.12

$ ip route add 10.244.3.2 via 192.168.1.13

node02

$ ip route add 10.244.1.2 via 192.168.1.11

$ ip route add 10.244.3.2 via 192.168.1.13

node03

$ ip route add 10.244.1.2 via 192.168.1.11

$ ip route add 10.244.2.2 via 192.168.1.12
  • Add a single large network

net-12

Container Network Interface

net-13

References Docs