Bước I: Đặt địa chỉ cho các host h1, h2 các host đã tắt tường lửa -_ Thay đổi dia chi Ipv4 Details Identity IPv4 IPv6 Security Shared to other computers Addresses Automatic @d - Tất
Trang 1ĐẠI HỌC QUOC GIA HA NOI
TRUONG DAI HOC CONG NGHE
BAO CAO MANG DIEU KHIEN
Mã môn học: 2324II ELT3164 20
TUẦN 15: BÀI THỰC HANH SO 2
Cầu hình SDN trên Aruba
Sinh viên: Nguyễn Thành Trung— Mã sinh viên: 21021640
Giảng viên: PGS.TS Dinh Thị Thái Mai
Trang 2Bước I: Đặt địa chỉ cho các host h1, h2 ( các host đã tắt tường lửa) -_ Thay đổi dia chi Ipv4
Details Identity IPv4 IPv6 Security
Shared to other computers Addresses
Automatic @d)
- Tất tường lửa
Trang 3UnreachabLe
—_——Ÿ—.Ÿẹ ve ute capture hfe SY at
Restrict background data sage
6l -:ð# 4 — El@f@i8lsexcs
Bước 2: Cầu hình Vlan 2 gém 2 host trén, vlan 1 1a vlan controller:
Trang 4
- Man hinh putty sau khi mở
Š PuTTY SSHClien
- Chay lệnh Sh run trong Terminal Putty:
Trang 5/đev/ttyUS80 - PuTTY
Thực hiện Ping 2 host với nhau:
o Host 1
Wireless LAN adapter Wi-Fi:
5.255.255.0
Connection-specific DNS Suffix
Link-local IPv6 Address ar
TTT aad
Default Gateway ¬
Ps C:\Users\HOANG MINH> g 19.19.9.5
Pinging 19.1
Reply from 10
Reply from 10
RepLy from 19
RepLy from 16
from bytes
9.5 with 32 bytes of data:
8
8
8
8
from 9.5: bytes=32 tỉnme:
9
8
8
8
8
8
9
bytes=32 time
from
from
from
from
la)
from
from bytes=32 time:
bytes=32 time=lms TTL=128
Trang 618 te time=lms TT 28
time=lms TTL=128 time=lms TTL=128
time=1ms
time=1ms
from 16 EH bet Tan
time=1ms
from
Vào
MS
time=1ms
2 time=1ms
time=1ms time=1ms TTL=128
r8: LTNN:
Ping statistics for 16.10.0.3:
Packets: Sent = 401, Received = 307, Lost = 94 (23% loss
Approximate round trip times in milli-seconds
Minimum = lms, Maximum = lms, Average = 1ms
ControL-C
25
€:\Users\Admin>pp,
Xóa cấu hình Vlan 2 thông qua các câu lệnh như sau: + config terminal => vao cau hinh config cua switch + no op => tat giao thức openflow, press y
+ no vlan 2 => x6a vlan 2, gio chi con vlan 1
Cau hinh Vlan 2 đề chứa 2 host:
o Cau hinh vlan 2 dé chira 4 host
vlan 2
name “host”
untagged 1-3, 5-6
sh run
Trang 7ri
al
Ie) ;
`
- Cau hình Vilanl:
o Ip address 10.20.0.3 255.255.255.0
Bước 3: cấu hình Openflow
- _ Thực hiện các cấu hình như hình:
o openflow
Trang 8o enable
auxiliary-connection 1 port 6633 type tcp (kết nỗi port default:6633 với giao thức TCP)
instance aggregate (gom tat ca cac vlan lại với nhau)
listen-port
controller I (enable controller)
enable
exit
enable
exit
ø.-
a:
©
B
EE
r;
- _ sau khi cầu hỉnh thành công sẽ không thê ping được các host cho nhau:
Trang 9
Bước 4: khởi động Controller
- Cai dat va su dụng truy cập python2
Copyr tght fangtooth) +
JdevƒttyUSB0 - PUYTY x
Trang 10Kiểm tra kết nối ping các host với nhau
o Host 1
Maes
ControL~
PS C:\
Pinging 10.10.0.5 with 32 bytes of data:
Reply from 10.10.0.3: Destination host unreachable
n1 17! TÍN h
Request timed out
Request timed out
Request timed out
Request timed out
Request timed out
Reply from 10.10.0.3: Destination host unreachable
\HOANG MINH> ping 10.10.0.5
Ping statistics for 10.10.0.5:
Packets: Sent = 10, Received = 2, Lost = 8 (80% loss),
ControL~
PS C:\Users\HOANG MINH> ping 10.10.0.5
Pinging 10.10.0.5 with 32 bytes of data:
Request timed out
Reply from 10.10.0.5
Reply from 10.10.0
Reply from 10.10.0
Reply from 10.10.0.5: bytes
5: bytes=32 time
Reply from 10.10.0.5
bytes=32 time TTL=128
2 time: TTL=128
TTL=128
Command Prompt- ping 10.1
from bytes=32 t TTL=128
from 10.10.06 ì xử: M22)
Là -10.0.3 ì TTL=128
3<) -10.0.3: by TTL=128
+rom -10.0 TTL=128
from oA ì s TIL=128
from 19.9 ì =32 TIL=128
from oe ì TIL=128
from -10.0.3: TTL=128
from 19.9 ) TTL=128
from -10.0 ì TTL=128
from -18.8 2 TTL=128
from -10.0.3: by TTL=128
from SIM <5 TTL=128
from 9.0.3: by TTL=128
from -10.0.3: by = TTL=128
Ping statistics for 10.10.0.3:
Packets: Sent = 491, Received = 307, Lost = 94 (23% loss),
Approximate round trip times in milLi-seconds
NMinimum = 1ms, Maximum = 1ms, Average = 1s
Control-C
C:\Users\Admin>ping 18.16.8.3 -t
Pinging 10.10.0.3 with 32 bytes of data:
Request timed out
sudo ovs-ofcetl dump-flows tcp:10.20.0.1:6633>flow Table txt (xuất flow entries
ra file text)
Trang 112 coskte-#wð, duratton=t 1426, taine-s, nsactate-d, a fytse-t, ifs tineent-20, Late, agent, ‘pc lorttyn6S535, tore, 3,ứt_ vLan=2,đĩ_vian_pcp- 30806
018
, twdLesz, A_packets=2, m_bytes=128, Ldle_timeout=18,
1 'bzc1:3f:11:89,đ) úste90:€974c
tale tưnesxt-18;
oO
.dL_vLan_pep-0,dt_src=00:e0:4c:10:
ad; bb:cisit14:60,orp_sbaci®.10°0.3,2"m,tDarl0.10-0-5.9r9 ope? acttonseoutput:5
Capturing from enp0z3 Ble EỚR View Go Capture Analyze Satistics Telephony Wireless Tools
AI OFPT_PACKET_OUT
xu (ACK] T BARRIER Seq= FEPLY
Ta “Tiên Seq=42 + 6633 [AC o
7 6633 [AeK]
5
5 3 3
3 3
3
3 3
3
3 3
3
3 3
3
3 3
3
3
8 °
8
9 Ð
°
° °
®
® 8
Đ
» Frame 1: 148 a on as oe Ti oe ieee Tai 80 (a oral = — on interface enpds3, 1d 0
> Ethernet II, sre 106: pu 25:75:27 (08:00:27:25:F5:41)
» Internet Pratacol Version 4 sre 23.8
08 09 27 25 £5 ‘WF Sa 80 26 62 61 a0 08 E8 3e 0b 40 00 40 09 3c Ga 14 00 ot oa 8 c3 c4 19 c3 Be Sa 7G 85 1d Ge 54 Sa 8P 18
© F _enposs: «tive capture in progress