10. Network setup

Reproduce all steps from lecture

H/W

Create 10_Network directory on sugon server

  1. Finish all tasks.
  2. Write two shell scripts:
    • base.sh — sets up internal network on base (just 3-4 commands above)

      • ip link set… — maybe

      • ip address add …

      • sysctl …

      • iptables …

    • clone.sh — sets up internal network on clone (just 3-4 commands)

      • ip link set… — maybe

      • ip address add …

      • ip route add …

      • /etc/resolv.conf will be overwritten, so you need to add something like echo nameserver 1.1.1.1 > /etc/resolv.conf to your script

  3. reboot both VMs
    • run base.sh on base

    • run clone.sh on clone

    • check if host ya.ru is working on clone (that means network is working)

  4. Scp 4 files on sugon server in 10_Network directory:

    • base.sh

    • base.log — the output of ip a command on base

    • clone.sh

    • clone.log — the output of ip a command on clone

HSE/ArchitectureOS/Lab_10_Network (последним исправлял пользователь FrBrGeorge 2020-05-21 00:19:23)