10. Network setup
Reproduce all steps from lecture
H/W
Create 10_Network directory on sugon server
- Finish all tasks.
- 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
- 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)
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