87751909-Switch-Lab

43 421 8
Tài liệu đã được kiểm tra trùng lặp
87751909-Switch-Lab

Đ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

tai lieu ccna

Tài liệu thực hành CCNA VTP, VLAN Lab I Mô hình Lab : II Các bước thực : Cấu hình VTP Switch : - SW1 : Switch> enable Switch# configure terminal Switch(config)#hostname SW1-VTPServer SW1-VTPServer(config)#vtp domain TTG SW1-VTPServer(config)#vtp password 123 SW1-VTPServer(config)#vtp version SW1-VTPServer(config)#vtp mode server 127 Tài liệu thực hành CCNA - SW2 : Switch> enable Switch# configure terminal Switch(config)#hostname SW2-VTPClient SW2-VTPClient(config)#vtp domain TTG SW2-VTPClient(config)#vtp password 123 SW2-VTPClient(config)#vtp version SW2-VTPClient(config)#vtp mode client - SW3 : Switch> enable Switch# configure terminal Switch(config)#hostname SW3-VTPClient SW3-VTPClient(config)#vtp domain TTG SW3-VTPClient(config)#vtp password 123 SW3-VTPClient(config)#vtp version SW3-VTPClient(config)#vtp mode client Cấu hình Trunking Switch : - SW1 : SW1-VTPServer(config)#interface g1/1 SW1-VTPServer(config-if)#switchport mode trunk SW1-VTPServer(config-if)#exit SW1-VTPServer(config)#interface g1/2 SW1-VTPServer(config-if)#switchport mode trunk SW1-VTPServer(config-if)#exit 128 Tài liệu thực hành CCNA - SW2 : SW2-VTPClient(config)#interface g1/1 SW2-VTPClient(config-if)#switchport mode trunk SW2-VTPClient(config-if)#exit - SW3 : SW3-VTPClient(config)#interface g1/2 SW3-VTPClient(config-if)#switchport mode trunk SW3-VTPClient(config-if)#exit Các lệnh kiểm tra cấu hình VTP, Trunking : - SW1-VTPServer #show vtp password VTP Password: 123 - SW1-VTPServer#show vtp status VTP Version :2 Configuration Revision :0 Maximum VLANs supported locally : 255 Number of existing VLANs :7 VTP Operating Mode : Server VTP Domain Name : TTG VTP Pruning Mode : Disabled VTP V2 Mode : Enabled VTP Traps Generation : Disabled MD5 digest : 0x54 0xC1 0x71 0x3F 0x9B 0x83 0xAF 0x38 Configuration last modified by 0.0.0.0 at 3-1-93 01:44:06 - SW1-VTPServer#show interface trunk Port Mode Encapsulation Status Native vlan 129 Tài liệu thực hành CCNA G1/1 on 802.1q trunking G1/2 on 802.1q trunking Port Vlans allowed on trunk G1/1 1-1005 G1/2 1-1005 Port Vlans allowed and active in management domain G1/1 1,2,3 G1/2 1,2,3 Port Vlans in spanning tree forwarding state and not pruned G1/1 1,2,3 G1/2 1,2,3 Tạo VLAN SW1-VTPServer : SW1-VTPServer(config)#vlan SW1-VTPServer(config-vlan)#name KinhDoanh SW1-VTPServer(config-vlan)#exit SW1-VTPServer(config)#vlan SW1-VTPServer(config-vlan)#name KeToan SW1-VTPServer(config-vlan)#exit SW1-VTPServer(config)#vlan SW1-VTPServer(config-vlan)#name Giamdoc SW1-VTPServer(config-vlan)#exit SW1-VTPServer(config)#vlan SW1-VTPServer(config-vlan)#name IT SW1-VTPServer(config-vlan)#exit 130 Tài liệu thực hành CCNA Kiểm tra lại thông tin VLAN Switch VTP client : - Switch# show vlan brief - Switch# show vlan Cấu hình cổng thuộc VLAN theo yêu cầu : - SW2 : SW2-VTPClient(config)#interface range fa0/1 – SW2-VTPClient (config-if-range)#switchport access vlan SW2-VTPClient (config-if-range)#exit SW2-VTPClient(config)#interface range fa0/7 – 10 SW2-VTPClient (config-if-range)#switchport access vlan SW2-VTPClient (config-if-range)#exit SW2-VTPClient(config)#interface range fa0/11 – 15 SW2-VTPClient (config-if-range)#switchport access vlan SW2-VTPClient (config-if-range)#exit SW2-VTPClient(config)#interface range fa0/16 – 24 SW2-VTPClient (config-if-range)#switchport access vlan SW2-VTPClient (config-if-range)#exit - SW3 : SW3-VTPClient(config)#interface range fa0/1 – SW3-VTPClient (config-if-range)#switchport access vlan SW3-VTPClient (config-if-range)#exit SW3-VTPClient(config)#interface range fa0/7 – 10 SW3-VTPClient (config-if-range)#switchport access vlan SW3-VTPClient (config-if-range)#exit SW3-VTPClient(config)#interface range fa0/11 – 15 131 Tài liệu thực hành CCNA SW3-VTPClient (config-if-range)#switchport access vlan SW3-VTPClient (config-if-range)#exit SW3-VTPClient(config)#interface range fa0/16 – 24 SW3-VTPClient (config-if-range)#switchport access vlan SW3-VTPClient (config-if-range)#exit Tiến hành đặt địa IP cho PC theo lớp mạng : - Kết nối PC vào port thuộc VLAN tương ứng SW1 SW2 - Ví dụ trường hợp VLAN 5, lớp mạng phân 192.168.5.0/24 nên IP dùng từ 192.168.5.1 đến 192.168.5.254, tương tự cho VLAN khác - Lưu cấu hình kết thúc lab 132 Tài liệu thực hành CCNA VTP,PVST+,PVRST LAB I Mơ hình lab : II Các bước cấu hình lab: Bước 1: Bước 2:Cấu hình loại mật cho cổng console,vty,mode priviliege Bước : Cấu hình VTP Switch Bước : Cấu hình Trunking Bước : Tạo thơng tin VLAN theo yêu cầu lab VTP server (SW1) Bước : Gán cổng SW2,SW3 vào VLAN tương ứng theo yêu cầu Bước : Cấu hình địa IP cho Switch để quản lý từ xa Bước : SW1 RootBridge 133 Tài liệu thực hành CCNA Bước 1: Xóa thơng tin VLAN VTP Switch - Kiểm tra switch có cấu hình hay chưa lệnh show start-up configure ,show vlan brief có tiến hành xóa thơng tin VLAN cấu hình Switch#delete vlan.dat Delete filename [vlan.dat]? Delete flash:vlan.dat? [confirm] - Do thông tin VTP VLAN nằm tập tin vlan.dat nhớ Flash: nên lệnh có tác dụng xóa thông tin VLAN VTP switch SW1#erase startup-config Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] [OK] Erase of nvram: complete Switch#reload Proceed with reload? [confirm] System configuration has been modified Save? [yes/no]: n Bước 2: Cấu hình mật cho cổng Console,line vty ,mode privilege SW1>enable SW1#config terminal Enter configuration commands, one SW1(config)#enable secret cisco SW1(config)#line console SW1(config-line)#password cisco SW1(config-line)#login SW1(config)#line vty 15 SW1(config-line)#password cisco SW1(config-line)#login - Lặp lại bước cho switch lại router 134 Tài liệu thực hành CCNA Bước 3: Cấu hình VTP Switch - Mặc định Switch Cisco có cấu hình VTP sau : – VTP domain name: None – VTP mode: Server mode – VTP pruning: Enabled or disabled (model specific) – VTP password: Null – VTP version: Version - Để đồng thơng tin VTP địi hỏi switch phải giống VTP Domain, password SW1: Switch>enable Switch#config terminal Switch(config)#hostname SW1 SW1(config)#exit - Xem thông tin VTP SW1 trước cấu hình lệnh show vtp status SW1#show vtp status VTP Version :2 Configuration Revision :0 Maximum VLANs supported locally : 250 Number of existing VLANs :5 VTP Operating Mode : Server VTP Domain Name : VTP Pruning Mode : Disabled VTP V2 Mode : Disabled VTP Traps Generation : Disabled MD5 digest : 0x57 0xCD 0x40 0x65 0x63 0x59 0x47 Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00 Local updater ID is 0.0.0.0 (no valid interface found) 135 Tài liệu thực hành CCNA SW1(config)#vtp version SW1(config)#vtp domain TTG Changing VTP domain name from NULL to TTG SW1(config)#vtp password cisco Setting device VLAN database password to cisco SW1(config)#vtp mode server Device mode already VTP SERVER - Thông tin VTP SW1 sau cấu hình SW1#show vtp status VTP Version :2 Configuration Revision :0 Maximum VLANs supported locally : 250 Number of existing VLANs :5 VTP Operating Mode : Server VTP Domain Name : TTG VTP Pruning Mode : Disabled VTP V2 Mode : Enabled VTP Traps Generation : Disabled MD5 digest : 0x14 0x8E 0xDA 0xC9 0x0A 0x42 0xAF 0xE7 Configuration last modified by 0.0.0.0 at 3-1-93 00:05:26 Local updater ID is 0.0.0.0 (no valid interface found) SW1#show vtp password VTP Password: cisco SW2: Switch>enable Switch#config terminal 136

Ngày đăng: 28/03/2013, 10:23

Trích đoạn

Tài liệu cùng người dùng

Tài liệu liên quan