You are on page 1of 13

BÁO CÁO THỰC HÀNH LAB 2

HỆ TÍNH TOÁN PHÂN BỐ

GVHD: Nguyễn Văn Bảo


Nhóm sinh viên thực hiện
Tên MSSV
Đặng Minh Hiếu 18520733
Nguyễn Ngọc Minh Khuê 18520950
Trần Minh Chiến 18520530
B1: Chứng thực

B2: Tạo network nhom2_net1, nhom2_net2


Kết quả trên web

B3: Tạo các subnet nhom2_subnet1, nhom2_subnet2


Kết quả sau khi tạo

B4: Tạo các port


Port1 192.168.14.12
Port 2 192.168.14.11

Port 3 192.168.13.11
Port 4 192.168.13.12

Port Local 1 192.168.4.10


Tạo port Local 2 192.168.4.20

Tạo port local 3 192.168.4.30


B5: List Images

B6: Flavors
B8: Tạo instance
Server 2
Server 0

Server 1
Kết quả

Lệnh cấu hình (Nội dung Init-Script từng máy)


Máy 1
#!/bin/bash
printf "DEVICE=\"eth1\" \nONBOOT=\"yes\" \nTYPE=\"Ethernet\"
\nIPADDR=192.168.13.12 \nNETMASK=255.255.255.0" >
/etc/sysconfig/network-scripts/ifcfg-eth1
printf "DEVICE=\"eth2\" \nONBOOT=\"yes\" \nTYPE=\"Ethernet\"
\nIPADDR=192.168.4.20 \nNETMASK=255.255.0.0" > /etc/sysconfig/network-
scripts/ifcfg-eth2
printf "net.ipv4.ip_forward=1" >/etc/sysctl.conf
service network restart
yum install -y quagga
chmod 777 /etc/quagga
cd /etc/quagga
printf "hostname nhanlt\n password centos \ninterface eth0 \nipv6 nd suppress-
ra \ninterface eth1 \nipv6 nd suppress-ra \ninterface lo \nip forwarding "
> zebra.conf
service zebra start
chkconfig zebra on
printf "hostname ripd \npassword centos \nlog stdout \nrouter rip \nversion 2
\nnetwork eth1 \nline vty" >/etc/quagga/ripd.conf
service ripd start
chkconfig ripd on
Máy 0
#!/bin/bash
printf "DEVICE=\"eth1\" \nONBOOT=\"yes\" \nTYPE=\"Ethernet\"
\nIPADDR=192.168.14.11 \nNETMASK=255.255.255.0" >
/etc/sysconfig/network-scripts/ifcfg-eth1
printf "DEVICE=\"eth2\" \nONBOOT=\"yes\" \nTYPE=\"Ethernet\"
\nIPADDR=192.168.13.11 \nNETMASK=255.255.255.0" >
/etc/sysconfig/network-scripts/ifcfg-eth2
printf "DEVICE=\"eth3\" \nONBOOT=\"yes\" \nTYPE=\"Ethernet\"
\nIPADDR=192.168.4.30 \nNETMASK=255.255.0.0" > /etc/sysconfig/network-
scripts/ifcfg-eth3
printf "net.ipv4.ip_forward=1" >/etc/sysctl.conf
service network restart
yum install -y quagga
chmod 777 /etc/quagga
cd /etc/quagga
printf "hostname nhanlt\n password centos \ninterface eth0 \nipv6 nd suppress-
ra \ninterface eth1 \nipv6 nd suppress-ra \ninterface lo \nip forwarding "
> zebra.conf
service zebra start
chkconfig zebra on
printf "hostname ripd \npassword centos \nlog stdout \nrouter rip \nversion 2
\nnetwork eth1 \nline vty" >/etc/quagga/ripd.conf
service ripd start
chkconfig ripd on
Máy 2
#!/bin/bash
printf "DEVICE=\"eth1\" \nONBOOT=\"yes\" \nTYPE=\"Ethernet\"
\nIPADDR=192.168.14.12 \nNETMASK=255.255.255.0" >
/etc/sysconfig/network-scripts/ifcfg-eth1
printf "DEVICE=\"eth2\" \nONBOOT=\"yes\" \nTYPE=\"Ethernet\"
\nIPADDR=192.168.4.30 \nNETMASK=255.255.0.0" > /etc/sysconfig/network-
scripts/ifcfg-eth2
printf "net.ipv4.ip_forward=1" >/etc/sysctl.conf
service network restart
yum install -y quagga
chmod 777 /etc/quagga
cd /etc/quagga
printf "hostname nhanlt\n password centos \ninterface eth0 \nipv6 nd suppress-
ra \ninterface eth1 \nipv6 nd suppress-ra \ninterface lo \nip forwarding "
> zebra.conf
service zebra start
chkconfig zebra on
printf "hostname ripd \npassword centos \nlog stdout \nrouter rip \nversion 2
\nnetwork eth1 \nline vty" >/etc/quagga/ripd.conf
service ripd start
chkconfig ripd on

You might also like