• Home
  • Video Courses
  • Tools – Cloud Comparison
  • Open Book & References
    • Google Anthos
    • Ethical AI
    • Production Ready Microservices Using Google Cloud
    • AI Chatbots
    • Enterprise IoT
    • Enterprise Blockchain
    • Cognitive IoT
  • Solution Bytes
    • AWS Solutions
    • GCP Solutions
    • Enterprise Architecture
    • Artificial Intelligence
  • About
  • Subscribe
  • Trends
  • Home
  • Video Courses
  • Tools – Cloud Comparison
  • Open Book & References
    • Google Anthos
    • Ethical AI
    • Production Ready Microservices Using Google Cloud
    • AI Chatbots
    • Enterprise IoT
    • Enterprise Blockchain
    • Cognitive IoT
  • Solution Bytes
    • AWS Solutions
    • GCP Solutions
    • Enterprise Architecture
    • Artificial Intelligence
  • About
  • Subscribe
  • Trends

Google Anthos

home/Reference/Google Anthos
Expand All Collapse All
  •  ANTHOS IN A NUTSHELL
    •   Chapter 1: Introducing Anthos
      • Infra, Container and Cluster Management
      • Service Management
      • Anthos Config Management (ACM)
      • ACM Repository configuration
      • Application Development and Deployment
    • Deployment Options with Anthos
    •   Chapter 2 : ANTHOS CLUSTERS ON BARE METAL
      • Anthos clusters on Bare metal Overview
      • Anthos clusters on Bare metal INSTALLATION overview
      •   Deployment Overview
        • Deployment Topology
      •   Installing Anthos Clusters on Bare metal
        • Installation Plan
        • Create VPC
        • Create VMs
        • Install software on workstation machine
        • Setup ssh for passwordless connections between workstation and cluster machines
        • Create VLAN between all the 4 VMs for L2 subnet
        • Execute bmtcl for creating bare metal cluster configuration file
        • Verify the deployment
        • Login and authenticate the cluster using Google Anthos dashboard
      • Deploy a sample application and invoke it via Load Balancer URL
      • Summary
    •   Chapter 3 : Anthos Service Mesh
      • Anthos SERVICE MESH Overview
      •   Anthos Service Mesh Topology
        • Multi cluster service mesh (single VPC network)
        • Multi cluster service mesh (different VPC networks)
      • Implement Multi cluster service mesh in a single VPC network
      • Implement Multi cluster service mesh in a multiple VPC network
      • SUMMARY

Create VLAN between all the 4 VMs for L2 subnet

navveen

In this step, we would create the VLAN between all the nodes. If you already have a LAN with all the 4 machines connected, you can skip this step.

We would be binding the following ip address to the workstation and cluster nodes.

 

Keep a note of the internal ip address allocated to the above nodes as we would be using it during the command execution below. You can get the internal ip address for the nodes from Google Cloud VM console.

  • Next, ssh to bm-wkst node and execute the following command one by one, to create the VLAN between bm-wkst and cluster machines. 

> set -x

> sudo ip link add vxlan0 type vxlan id 42 dev ens4 dstport 0

> sudo bridge fdb append to 00:00:00:00:00:00 dst <bm-cp-ipaddress> dev vxlan0

> sudo bridge fdb append to 00:00:00:00:00:00 dst <bm-node1-ipaddress> dev vxlan0

> sudo bridge fdb append to 00:00:00:00:00:00 dst <bm-node2-ipaddress>dev vxlan0

> sudo ip addr add 10.200.0.2/24 dev vxlan0

> sudo ip link set up dev vxlan0

  • Next, ssh to bm-cp node and execute the following command one by one, to create the VLAN between bm-cp node and other machines. 

> set -x

> sudo ip link add vxlan0 type vxlan id 42 dev ens4 dstport 0

> sudo bridge fdb append to 00:00:00:00:00:00 dst <bm-wkst-ipaddress> dev vxlan0

> sudo bridge fdb append to 00:00:00:00:00:00 dst <bm-cp-ipaddress> dev vxlan0

> sudo bridge fdb append to 00:00:00:00:00:00 dst <bm-node1-ipaddress>dev vxlan0

> sudo ip addr add 10.200.0.3/24 dev vxlan0

> sudo ip link set up dev vxlan0

  • Next, ssh to bm-node1 node and execute the following command one by one, to create the VLAN between bm-node1 and other machines. 

> set -x

> sudo ip link add vxlan0 type vxlan id 42 dev ens4 dstport 0

> sudo bridge fdb append to 00:00:00:00:00:00 dst <bm-wkst-ipaddress> dev vxlan0

> sudo bridge fdb append to 00:00:00:00:00:00 dst <bm-cp-ipaddress> dev vxlan0

> sudo bridge fdb append to 00:00:00:00:00:00 dst <bm-node2-ipaddress>dev vxlan0

> sudo ip addr add 10.200.0.4/24 dev vxlan0

> sudo ip link set up dev vxlan0

  • Next, ssh to bm-node2 node and execute the following command one by one, to create the VLAN between bm-node2 and other nodes. 

> set -x

> sudo ip link add vxlan0 type vxlan id 42 dev ens4 dstport 0

> sudo bridge fdb append to 00:00:00:00:00:00 dst <bm-wkst-ipaddress> dev vxlan0

> sudo bridge fdb append to 00:00:00:00:00:00 dst <bm-cp-ipaddress> dev vxlan0

> sudo bridge fdb append to 00:00:00:00:00:00 dst <bm-node1-ipaddress>dev vxlan0

> sudo ip addr add 10.200.0.5/24 dev vxlan0

> sudo ip link set up dev vxlan0

This completes setting up the VLAN across all the nodes.

Next, we install the bmctl tool for creating bare metal cluster configuration file

Was this helpful?

1 Yes  No
Related Solutions
  • SUMMARY
  • Implement Multi cluster service mesh in a multiple VPC network
  • Implement Multi cluster service mesh in a single VPC network
  • Multi cluster service mesh (different VPC networks)
  • Multi cluster service mesh (single VPC network)
  • Anthos Service Mesh Topology
© 2021 Navveen Balani (https://navveenbalani.dev/) |. All rights reserved.