(+84) 236.3827111 ex. 402

MÔ PHỎNG MẠNG BẰNG PHẦN MỀM CISCO IOU - PHẦN 2


Phần 2. Tạo các topology theo yêu cầu của người dùng

Tác giả: Đặng Ngọc Cường

1. Chúng ta sẽ đi phân tích topology mặc định

root@flyxj:~/LAB# show

Chúng ta hãy quan sát topology trên thật kỹ và so sánh các kết nối trong topology này với các dòng trong file /root/LAB/NETMAP

root@flyxj:~/LAB# cat NETMAP

1:0/0 2:0/0

1:1/0 7:1/0

1:0/2 6:0/2

1:1/2 2:1/2

2:1/1 6:1/1

2:0/1 3:0/1

2:1/0 8:1/0

2:2/1 7:2/1

2:2/0 7:2/0

2:2/3 3:2/3

3:1/1 7:1/1

3:0/2 8:0/2

4:0/1 5:0/1

4:0/2 9:0/2

4:1/0 10:1/0

5:1/1 9:1/1

5:0/2 10:0/2

6:0/0 7:0/0

6:3/0 7:3/0

7:0/1 8:0/1

7:3/2 8:3/2

9:0/1 10:0/1

3:0/0 4:0/0

8:0/0 9:0/0

1:1/3 2:1/3 3:1/3 1023:1

6:1/3 7:1/3 8:1/3 1023:2

root@flyxj:~/LAB#

Quan sát các Interfaces trên Router R1 & R2

R1#show ip interface brief

Interface IP-Address OK? Method Status Protocol

Ethernet0/0 unassigned YES NVRAM administratively down down

Ethernet0/1 unassigned YES NVRAM administratively down down

Ethernet0/2 unassigned YES NVRAM administratively down down

Ethernet0/3 unassigned YES NVRAM administratively down down

Ethernet1/0 unassigned YES NVRAM administratively down down

Ethernet1/1 unassigned YES NVRAM administratively down down

Ethernet1/2 unassigned YES NVRAM administratively down down

Ethernet1/3 unassigned YES NVRAM administratively down down

Serial2/0 unassigned YES NVRAM administratively down down

Serial2/1 unassigned YES NVRAM administratively down down

Serial2/2 unassigned YES NVRAM administratively down down

Serial2/3 unassigned YES NVRAM administratively down down

Serial3/0 unassigned YES NVRAM administratively down down

Serial3/1 unassigned YES NVRAM administratively down down

Serial3/2 unassigned YES NVRAM administratively down down

Serial3/3 unassigned YES NVRAM administratively down down

R1#

R2#show ip interface brief

Interface IP-Address OK? Method Status Protocol

Ethernet0/0 unassigned YES NVRAM administratively down down

Ethernet0/1 unassigned YES NVRAM administratively down down

Ethernet0/2 unassigned YES NVRAM administratively down down

Ethernet0/3 unassigned YES NVRAM administratively down down

Ethernet1/0 unassigned YES NVRAM administratively down down

Ethernet1/1 unassigned YES NVRAM administratively down down

Ethernet1/2 unassigned YES NVRAM administratively down down

Ethernet1/3 unassigned YES NVRAM administratively down down

Serial2/0 unassigned YES NVRAM administratively down down

Serial2/1 unassigned YES NVRAM administratively down down

Serial2/2 unassigned YES NVRAM administratively down down

Serial2/3 unassigned YES NVRAM administratively down down

Serial3/0 unassigned YES NVRAM administratively down down

Serial3/1 unassigned YES NVRAM administratively down down

Serial3/2 unassigned YES NVRAM administratively down down

Serial3/3 unassigned YES NVRAM administratively down down

R2#

Ví dụ: Trong file NETMAP có dòng

2. Lab 1: R01(e0/0)<-------->(e0/0)R02

Hình này mượn bên GNS3 để mô tả sơ đồ dạng đồ họa cho sinh động.

Cấu hình Router R1:

R1>enable

R1#conf t

R1(config)#interface e0/0

R1(config-if)#no shutdown

R1(config-if)#ip address 10.1.1.1 255.0.0.0

R1(config-if)#end

R1#write

R1#

Cấu hình Router R2:

R2>enable

R2#conf t

R2(config)#interface e0/0

R2(config-if)#no shutdown

R2(config-if)#ip address 10.2.2.2 255.0.0.0

R2(config-if)#end

R2#write

R2#ping 10.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds: .!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 1/2/4 ms

R2#

3. Lưu Lab

˗ Nhớ lưu cấu hình vào NVRAM của tất cả các thiết bị

Ten_thiet_bi# copy running-config startup-config

Hoặc

Ten_thiet_bi# write

˗ Shutdown máy ảo Cisco IOU để tiết kiệm không gian lưu trữ (Có thể không cần Shutdown nếu không gian lưu trữ lớn).

root@flyxj:~/LAB# init 0

Sử dụng chức năng Snapshot trên VMWare để backup máy ảo Cisco IOU. Lần sau, nếu muốn lấy lại Lab vừa làm thì chúng ta cũng sử dụng chức năng này.


Nếu muốn Restore Snapshot thì:

4. Test “công suất” (10 thiết bị)

Cấu hình máy tính thật:

Đầu tiên chúng ta bật tất cả các thiết bị lên.

root@flyxj:~/LAB# ROUTER

root@flyxj:~/LAB# SWITCH

root@flyxj:~/LAB# BR

Chờ khoảng 30 giây để cho các thiết bị khởi động xong. Chúng ta sẽ đi kiểm tra trạng thái của CPU & RAM trên máy tính thật. Các bạn hãy lưu ý tổng số lượng Router & Switch của chúng ta là 10. Nếu với số lượng này, mà chúng ta dùng GNS3 thì một máy tính có cấu hình RAM=2GB sẽ không kham nổi.


5. Test “công suất” sử dụng 5 thiết bị trên GNS3

Hãy quan sát tốc độ xử lý của CPU.

Mô PHỎNG MẠNG BẰNG PHẦN MỀM CISCO IOU - PHẦN 1