BÀi thực hành số 1


XII.Cấu hình liên mạng cục bộ dùng VLAN



tải về 346.95 Kb.
trang6/8
Chuyển đổi dữ liệu14.08.2016
Kích346.95 Kb.
#19321
1   2   3   4   5   6   7   8

XII.Cấu hình liên mạng cục bộ dùng VLAN


Mô hình Lab

Có ba 2950 switch được dùng trong bài lab. Chúng ta sẽ cấu hình VLAN trên các switch 2950 và dùng 2600A router để diển tả việc định tuyến.Chúng ta sẽ tạo ba VLAN trên các switch 2950A, 2950B, and 2950C. Chúng ta sẽ dùng subnet 192.168.100.0/24.

1. Cấu hình Router 2600
Router>enable
Router#config t
Router(config)#hostname 2600A

2600A(config)#enable secret todd


2600A(config)#line console 0
2600A(config-line)# password todd
2600A(config-line)#login
2600A(config-line)#line aux 0
2600A(config-line)#password todd
2600A(config-line)#login
2600A(config-line)#line vty 0 4
2600A(config-line)#password todd
2600A(config-line)#login
2600A(config-line)#interface fastethernet 0/0
2600A(config-if)#ip address 192.168.100.1 255.255.255.0
2600A(config-if)#description connection to LAN 100
2600A(config-if)#no shutdown
2600A(config-if)#exit
2600A(config)#banner motd #
This is the 2600A router
#
2600A(config)#exit
2600A#write
2600A#


2. Cấu hình Switch 2950A
Switch>enable
Switch#config t
Switch(config)#hostname 2950A
2950A(config)#enable password todd
2950A(config)#enable secret routersim
2905A(config)#line console 0
2950A(config-line)#password console
2950A(config-line)#login
2950A(config-line)#line vty 0 15
2950A(config-line)#password todd
2950A(config-line)#login
2950A(config-line)#exit
2950A(config)#ip default-gateway 192.168.100.1
2950A(config)#interface VLAN 1
2950A(config-if)#ip address 192.168.100.2 255.255.255.0
2950A(config-if)#interface fastethernet 0/10
2950A(config-if)#description Trunk Link to 2600A
2950A(config-if)#switchport mode trunk
2950A(config-if)#speed 100
2950A(config-if)#duplex full
2950A(config-if)#interface fastethernet 0/11
2950A(config-if)#description Link to 2950B
2950A(config-if)#switchport mode trunk
2950A(config-if)#speed 100
2950A(config-if)#duplex full
2950A(config-if)#interface fastethernet 0/12
2950A(config-if)#description Trunk Link to 2950C

2950A(config-if)#switchport mode trunk


2950A(config-if)#speed 100
2950A(config-if)#duplex full
2950A(config-if)#exit
2950A(config)#exit
2950A#ping 192.168.100.1

3. Tạo VTP domain là routersim và xét 2950A switch là VTP server

2950A#config t


2950A(config)#vtp domain routersim
2950A(config)#vtp mode server


4. Cấu hình Switch 2950B
Switch>enable
Switch#config t
Switch(config)#hostname 2950B
2950B(config)#enable password todd
2950B(config)#enable secret routersim
2950B(config)#line console 0
2950B(config-line)#password console
2950B(config-line)#login
2950B(config-line)#line vty 0 15
2950B(config-line)#password todd
2950B(config-line)#login
2950B(config-line)#exit
2950B(config)#ip default-gateway 192.168.100.1
2950B(config)#interface vlan1
2950B(config-if)#ip address 192.168.100.3 255.255.255.0
2950B(config-if)#interface fastethernet 0/11
2950B(config-if)#description Trunk Link to 2950A
2950B(config-if)#switchport mode trunk
2950B(config-if)#speed 100
2950B(config-if)#duplex full
2950B(config-if)#interface fastethernet 0/12
2950B(config-if)#description Trunk Link to 2950C
2950B(config-if)#switchport mode trunk
2950B(config-if)#speed 100
2950B(config-if)#duplex full
2950B(config-if)#exit
2950B(config)#exit
2950B#ping 192.168.100.1

5. Cấu hình 2950B switch là thành viên của VTP domain routersim
2950B#config t
2950B(config)#vtp domain routersim
2950B(config)#vtp mode client

6. Cấu hình Switch 2950C

Switch>enable


Switch#config t
Switch(config)#hostname 2950C
2950C(config)#enable password todd
2950C(config)#enable secret routersim
2950C(config)#line console 0
2950C(config-line)#password console
2950C(config-line)#login
2950C(config-line)#line vty 0 15
2950C(config-line)#password todd
2950C(config-line)#login
2950C(config-line)#exit
2950C(config)#ip default-gateway 192.168.100.1
2950C(config)#interface vlan1
2950C(config-if)#ip address 192.168.100.4 255.255.255.0
2950C(config-if)#interface fastethernet 0/11
2950C(config-if)#description Trunk Link to 2950B
2950C(config-if)#switchport mode trunk
2950C(config-if)#speed 100
2950C(config-if)#duplex full
2950C(config-if)#interface fastethernet 0/12
2950C(config-if)#description Trunk Link to 2950A
2950C(config-if)#switchport mode trunk
2950C(config-if)#speed 100
2950C(config-if)#duplex full
2950C(config-if)#exit
2950C(config)#exit
2950C#ping 192.168.100.1

7. Cấu hình 2950C switch là thành viên của VTP domain routersim
2950C#config t
2950C(config)#vtp domain routersim
2950C(config)#vtp mode client


8. Tạo 3 VLANs trên 2950A switch là Sales, Marketing, Finance
2950A#vlan database
2950A(vlan)#vlan 2 name Sales
2950A(vlan)#vlan 3 name Marketing
2950A(vlan)#vlan 4 name Finance

9. Xem thông tin VLAN trên Switch 2950B, 2950C
2950B#show vlan
2950C#show vlan

10. Tạo port f0/1 trên các Switch là thành viên của VLAN 2
2950A#config t
2950A(config)#interface fastethernet 0/1
2950A(config-if)#switchport access vlan 2
2950A(config-if)#switchport mode access

2950B#config t


2950B(config)#interface fastethernet 0/1
2950B(config-if)#switchport access vlan 2

2950B(config-if)#switchport mode access

2950C#config t
2950C(config)#interface fastethernet 0/1
2950C(config-if)#switchport access vlan 2
2950C(config-if)#switchport mode access

11. HostA, HostD và HostG sẽ thuộc VLAN 2 (Sales), là một vùng địa chỉ mạng con của 192.168.100.0/24. HostA là 192.168.100.5, HostD là 192.168.100.8 và HostG là 192.168.100.11. Default gateway là 192.168.100.1.

12. Kiểm tra việc cấu hình đúng các VLAN bằng cách ping từ HostA đến HostD Và HostA đến HostG.

13. HostB, HostE và HostH sẽ thuộc VLAN 3 (Marketing), là một vùng địa chỉ mạng con của 192.168.100.0/24. HostB là 192.168.100.6, HostE là 192.168.100.9 và HostH là 192.168.100.12. Default gateway là 192.168.100.1.

14. Cấu hình port f0/2 trên 2950A switch là thành viên của VLAN 3.

2950A#config t


2950A(config)#interface fastethernet 0/2
2950A(config-if)#switchport access vlan 3
2950A(config-if)#switchport mode access
Cấu hình port f0/2 trên 2950B switch là thành viên của VLAN 3.

2950B#config t


2950B(config)#interface fastethernet 0/2
2950B(config-if)#switchport access vlan 3
2950B(config-if)#switchport mode access

Cấu hình port f0/2 trên 2950C switch là thành viên của VLAN 3.

2950C#config t
2950C(config)#interface fastethernet 0/2
2950C(config-if)#switchport access vlan 3
2950C(config-if)#switchport mode access

15. Kiểm tra việc cấu hình đúng các VLAN bằng cách ping từ HostB đến HostE Và HostB đến HostH.

16. HostC, HostF và HostI sẽ thuộc VLAN 3 (Finance), là một vùng địa chỉ mạng con của 192.168.100.0/24. HostC là 192.168.100.7, HostF là 192.168.100.10 và HostI là 192.168.100.13. Default gateway là 192.168.100.1.
17. Cấu hình port f0/3 trên 2950A switch là thành viên của VLAN 4.

2950A#config t


2950A(config)#interface fastethernet 0/3
2950A(config-if)#switchport access vlan 4
2950A(config-if)#switchport mode access

Cấu hình port f0/3 trên 2950B switch là thành viên của VLAN 4.

2950B#config t
2950B(config)#interface fastethernet 0/3
2950B(config-if)#switchport access vlan 4
2950B(config-if)#switchport mode access

Cấu hình port f0/3 trên 2950C switch là thành viên của VLAN 4.

2950C#config t
2950C(config)#interface fastethernet 0/3
2950C(config-if)#switchport access vlan 4
2950C(config-if)#switchport mode access

18. Kiểm tra việc cấu hình đúng các VLAN bằng cách ping từ HostC đến HostF Và HostC đến HostI.

-HẾT-


BÀI THỰC HÀNH SỐ 6

Họ tên sinh viên:

Tổ: MSSV:


Каталог: books -> cong-nghe-thong-tin -> an-ninh-bao-mat
cong-nghe-thong-tin -> Câu 1: Các thành phần của hệ điều hành, nhân hệ điều hành, tải hệ điều hành
cong-nghe-thong-tin -> Bài 1 Những khái niệm cơ bản về ngôn ngữ c mục tiêu
cong-nghe-thong-tin -> Trừ khi người ta cho bạn ngủ trong trạng thái đông lạnh suốt mấy năm vừa qua, nếu không, chắc chắn bạn đã nghe nói nhiều về máy tính và những mối đe dọa từ Internet đối với sự riêng tư của bạn
cong-nghe-thong-tin -> Mục lục 2 Làm quen với visual basic 9
cong-nghe-thong-tin -> TÀi liệu html, dhtml và javascript ha noi 9/2008
cong-nghe-thong-tin -> Hình thức trả lời là chọn 1 hoặc nhiều đáp án đúng. Ứng dụng web
cong-nghe-thong-tin -> SỞ khoa học và CÔng nghệ ĐĂKLĂk trung tâm tin họC & thông tin khcn
cong-nghe-thong-tin -> Thử xem iq đến đâu? Phần quan trọng nhất của hệ điều hành Linux là

tải về 346.95 Kb.

Chia sẻ với bạn bè của bạn:
1   2   3   4   5   6   7   8




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương