1. Trang chủ
  2. » Công Nghệ Thông Tin

Tài liệu Configure Routing inter VLANs, FEC, STP, Trunking, VTP, NAT pptx

15 261 4
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Configure Routing Inter Vlans, Fec, Stp, Trunking, Vtp, Nat
Trường học University of Information Technology
Chuyên ngành Computer Networking
Thể loại Bài lab
Năm xuất bản 2023
Thành phố Ho Chi Minh City
Định dạng
Số trang 15
Dung lượng 1,13 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Cấu hình DLSwitch là VTP mode server, VTP domain vnpro, các Switch khác là mode client.. DLSWITCHconfig#vtp mode sever DLSWITCHconfig#vtp domain vnpro Cấu hình tương tự trên các Switch c

Trang 1

Đây là bài lab ở cấp đô cao cấp dành cho nhưng ai học CCNP Đã là pro thì không còn dùng Tiềng Việt nữa nhé .English tí xíu cho oách nha

la la lá la la ta vô đề nào

Introduction

Cable the network as shown in the diagram

In this lab you will implement several switching technologies Use 172.16.x.x/24 as the IP addressing scheme

Topology as below:

The following tasks must be achieved:

1 Configure the DLSwitch as the VTP servers, VTP domain vnpro, and all other switches as VTP clients

2 Spanning-Tree must be configured to designate the Distribution layer switch as the

primary root bridge for all configured VLANs

3 The network must utilize EIGRP as the routing protocol

4 Enable Telnet with the password “cisco” on all devices for remote management

5 Your organization is given the IP address range 200.200.200.18/24 to 200.200.200.30/24

Trang 2

Configure NAT on the border router to provide Internet access to all internal hosts

6 Use network 172.16.1.0/24 for VLAN 1

7 Configure FEC between the Access layer and Distribution layer switches

Các bước thực hiện :

1 Cấu hình DLSwitch là VTP mode server, VTP domain vnpro, các Switch khác là mode client Tạo 3 VLAN 10, 20, 30 với tên tương ứng Accounting, Marketing, Engineering trên DLSwitch DLSWITCH(config)#vtp mode sever

DLSWITCH(config)#vtp domain vnpro

Cấu hình tương tự trên các Switch còn lại nhưng với vtp mode là Client

DLSWITCH(config)#vlan 10

DLSWITCH(config-vlan)#name Accounting

DLSWITCH(config-vlan)#exit

DLSWITCH(config)#vlan 20

DLSWITCH(config-vlan)#name Marketing

DLSWITCH(config-vlan)#exit

DLSWITCH(config)#vlan 30

DLSWITCH(config-vlan)#name Engineering

DLSWITCH(config-vlan)#exit

Trang 3

Kiểm tra lại cấu hình VLAN :

Trang 5

2 Cấu hình DLSwitch là root cho tất cả VLAN

DLSWITCH(config)#spanning-tree vlan 1 root primar

DLSWITCH(config)#spanning-tree vlan 10 root primar

DLSWITCH(config)#spanning-tree vlan 20 root primar

DLSWITCH(config)#spanning-tree vlan 30 root primar

3 Cấu hình địa chỉ IP cho các Switch để có thể Telne

ALSWITCH1(config)#interface vlan

ALSWITCH1(config-if)#ip address 172.16.1.1 255.255.255

ALSWITCH1(config-if)#no shu

ALSWITCH1(config-if)#exi

ALSWITCH1(config)#ip default-gateway 172.16.1

ALSWITCH2(config)#interface vlan

ALSWITCH2(config-if)#ip address 172.16.1.2 255.255.255

ALSWITCH2(config-if)#no shu

ALSWITCH2(config-if)#exi

ALSWITCH2(config)#ip default-gateway 172.16.1

ALSWITCH3(config)#interface vlan

ALSWITCH3(config-if)#ip address 172.16.1.3 255.255.255

ALSWITCH3(config-if)#no shu

ALSWITCH3(config-if)#exi

ALSWITCH3(config)#ip default-gateway 172.16.1

DLSWITCH(config)#interface vlan

DLSWITCH(config-if)#ip address 172.16.1.4 255.255.255

DLSWITCH(config-if)#no shu

DLSWITCH(config-if)#exi

DLSWITCH(config)#ip default-gateway 172.16.1

CLSWITCH(config)#interface vlan

CLSWITCH(config-if)#ip address 172.16.1.5 255.255.255

CLSWITCH(config-if)#no shu

CLSWITCH(config-if)#exi

CLSWITCH(config)#ip default-gateway 172.16.1

4 Cấu hình EtherChannel(FEC) giữa các Switch Access layer và Distribution laye ALSWITCH1(config)#interface range FastEthernet0/1 –

ALSWITCH1(config-if)#switchport mode trun

ALSWITCH1(config-if)#channel-group 1 mode aut

ALSWITCH1(config-if)#channel-protocol pag

ALSWITCH1(config)#exi

ALSWITCH2(config)#interface range FastEthernet0/1 –

ALSWITCH2(config-if)#switchport mode trun

ALSWITCH2(config-if)#channel-group 2 mode aut

ALSWITCH2(config-if)#channel-protocol pag

ALSWITCH2(config)#exit

Trang 6

ALSWITCH3(config)#interface range FastEthernet0/1 – 2 ALSWITCH3(config-if)#switchport mode trunk

ALSWITCH3(config-if)#channel-group 3 mode auto

ALSWITCH3(configif)#channel-protocol pagp

ALSWITCH3(config)#exit

DLSWITCH(config)#interface range FastEthernet0/1 - 2 DLSWITCH(config-if)#switchport trunk encapsulation dot1q DLSWITCH(config-if)#switchport mode trunk

DLSWITCH(config-if)#channel-group 1 mode desirable DLSWITCH(config-if)#channel-protocol pagp

DLSWITCH(config-if)#exit

DLSWITCH(config)#interface range FastEthernet0/3 - 4 DLSWITCH(config-if)#switchport trunk encapsulation dot1q DLSWITCH(config-if)#switchport mode trunk

DLSWITCH(config-if)#channel-group 2 mode desirable DLSWITCH(config-if)#channel-protocol pagp

DLSWITCH(config-if)#exit

DLSWITCH(config)#interface range FastEthernet0/5 - 6 DLSWITCH(config-if)#switchport trunk encapsulation dot1q DLSWITCH(config-if)#switchport mode trunk

DLSWITCH(config-if)#channel-group 3 mode desirable DLSWITCH(config-if)#channel-protocol pagp

DLSWITCH(config-if)#exit

5 Cấu hình cho các cổng Etherchannel trunk trên native vlan ALSWITCH1(config)#interface Port-channel 1

ALSWITCH1(config-if)#switchport trunk native vlan 1

ALSWITCH1(config-if)#exit

ALSWITCH2(config)#interface Port-channel 1

ALSWITCH2(config-if)#switchport trunk native vlan 1

ALSWITCH2(config-if)#exit

ALSWITCH3(config)#interface Port-channel 1

ALSWITCH3(config-if)#switchport trunk native vlan 1

ALSWITCH3(config-if)#exit

DLSWITCH(config)#interface Port-channel 1

DLSWITCH(config-if)#switchport trunk native vlan 1

DLSWITCH(config-if)#exit

DLSWITCH(config)#interface Port-channel 2

DLSWITCH(config-if)#switchport trunk native vlan 1

DLSWITCH(config-if)#exit

DLSWITCH(config)#interface Port-channel 3

DLSWITCH(config-if)#switchport trunk native vlan 1

DLSWITCH(config-if)#exit

Kiểm tra lại cấu hình của EtherChannel trên DLSWITCH :

Trang 9

6 Gán các port cho từng VLAN tương ứng trên các ALSWITCH1, ALSWITCH2, ALSWITC

3 Mặc định các port trên Switch thuộc về VL AN 1 nên ta không cần gán port cho VLAN ALSWITCH1(config)#interface range fas0/4 –

6ALSWITCH1(config-if)#switchport access vlan

0ALSWITCH1(config)#ex

tALSWITCH1(config)#interface range fas0/7 –

0ALSWITCH1(config)#ex

tALSWITCH1(config)#interface range fas0/10 –

2ALSWITCH1(config-if)#switchport access vlan

1ALSWITCH1(config)#ex

Làm tương tự trên 2 Switch còn lại (ALSWITCH2, ALSWITCH

Kiểm tra xem các port đã được gán đúng VLAN trên ALSWITCH1

Trang 12

7 Cấu hình trunking trên port Fastethernet 0/24 của DLSWITCH và CLSWITC DLSWITCH(config)#interface fas0/2

DLSWITCH(config-if)#switchport trunk encapsulation dot1

DLSWITCH(config-if)#switchport mode trun

DLSWITCH(config-if)#switchport trunk native vlan

DLSWITCH(config-if)#exi

CLSWITCH(config)#interface fas0/2

CLSWITCH(config-if)#switchport trunk encapsulation dot1

CLSWITCH(config-if)#switchport mode trun

CLSWITCH(config-if)#switchport trunk native vlan

CLSWITCH(config-if)#exi

8 Cấu hình port Fa0/13 trên CLSWITCH thành Layer 3 và routing giữa các VLA CLSWITCH(config)#interface fas0/1

CLSWITCH(config-if)#no switchpor

CLSWITCH(config-if)#ip address 172.16.2.2 255.255.255

CLSWITCH(config-if)#no shu

CLSWITCH(config-if)#exi

CLSWITCH(config)#ip routin

CLSWITCH(config)#interface vlan 1

CLSWITCH(config-if)#ip address 172.16.10.1 255.255.255

CLSWITCH(config-if)#no shu

CLSWITCH(config-if)#exi

CLSWITCH(config)#interface vlan 2

CLSWITCH(config-if)#ip address 172.16.20.1 255.255.255

CLSWITCH(config-if)#no shu

CLSWITCH(config-if)#exi

CLSWITCH(config)#interface vlan 3

CLSWITCH(config-if)#ip address 172.16.30.1 255.255.255

CLSWITCH(config-if)#no shu

CLSWITCH(config-if)#exi

Kiểm tra trạng thái của các interface VLAN(SVIs) trên CLSWITCH

Trang 13

CLSWITCH(config)#router eigrp 65

CLSWITCH(config-router)#network 172.16.1.0 0.0.0.255

CLSWITCH(config-router)#network 172.16.2.0 0.0.0.255

CLSWITCH(config-router)#network 172.16.10.0 0.0.0.255

CLSWITCH(config-router)#network 172.16.20.0 0.0.0.255

CLSWITCH(config-router)#network 172.16.30.0 0.0.0.255

CLSWITCH(config-router)#no auto-summary

10 Cấu hình Routing protocol EIGRP và NAT trên Router NAT

NAT_ROUTER(config)#ip nat pool internet 200.200.200.18 200.200.200.30 prefix-length 28 NAT_ROUTER(config)#access-list 101 permit ip any any

NAT_ROUTER(config)#ip nat inside source list 101 pool internet overload

NAT_ROUTER(config)#interface fas0/0

NAT_ROUTER(config-if)#ip address 172.16.2.1 255.255.255.0

NAT_ROUTER(config-if)#no shut

NAT_ROUTER(config-if)#ip nat inside

NAT_ROUTER(config-if)#exit

NAT_ROUTER(config)#interface Serial0/0

NAT_ROUTER(config-if)#ip address 200.200.100.1 255.255.255.0

NAT_ROUTER(config-if)#no shut

NAT_ROUTER(config-if)#ip nat outside

NAT_ROUTER(config-if)#exit

NAT_ROUTER(config)#router eigrp 65

NAT_ROUTER(config-router)#network 172.16.2.0 0.0.0.255

NAT_ROUTER(config-router)#network 200.200.100.0 0.0.0.255

NAT_ROUTER(config-router)#exit

Trang 14

Để các traffic đi ra Internet router chúng ta phải thực hiện route tĩnh, ngoài ra trong mode router eigrp ta cũng quảng bá route tĩnh này để các router cũng chạy eigrp khác thấy được route tĩnh bằng các câu lệnh sau :

NAT_ROUTER(config)#ip route 0.0.0.0 0.0.0.0 200.200.100.2 //200.200.100.2 là địa chỉ

IP của interface S0/1 của router Internet

NAT_ROUTER(config)#router eigrp 65

NAT_ROUTER(config-router)#redistribute static metric 15 2 255 255 1500

Kiểm tra bảng định tuyến của NAT_ROUTER và CLSWITCH

Trang 15

Cấu hình cho Router Internet

INTERNET_ROUTER(config)#ip nat inside source list 1 interface Fast0/0 overload

INTERNET_ROUTER(config)#access-list 1 permit any

Mục đích thiết lập NAT ở đây là để cho ra Internet

INTERNET_ROUTER(config)#interface Fas0/0

INTERNET_ROUTER(config-if)#ip address dhcp //Xin địa chỉ IP từ DHCP Server

INTERNET_ROUTER(config-if)#ip nat outside

INTERNET_ROUTER(config-if)#no shut

INTERNET_ROUTER(config)#interface Serial0/1

INTERNET_ROUTER(config-if)#ip add 200.200.100.2 255.255.255.0

INTERNET_ROUTER(config-if)#ip nat inside

INTERNET_ROUTER(config-if)#clock rate 64000

INTERNET_ROUTER(config-if)#no shut

Tiếp theo phải cấu hình route tĩnh để ra Internet thông qua default gateway của internet la 200.200.200.18-200.200.200.30)

INTERNET_ROUTER(config)#ip route 200.200.200.0 255.255.255.0 200.200.100.1

Ngày đăng: 25/12/2013, 01:17

🧩 Sản phẩm bạn có thể quan tâm

w