成人AV在线无码|婷婷五月激情色,|伊人加勒比二三四区|国产一区激情都市|亚洲AV无码电影|日av韩av无码|天堂在线亚洲Av|无码一区二区影院|成人无码毛片AV|超碰在线看中文字幕

CCNA證書考試:cisco域的添加及刪除

實驗二一.實驗拓撲圖二.實驗要求1、 在2950A 交換機上創(chuàng)建VTP 域名:cisco ,將2900和2950B 配置為:client 模式,并查看2950B 和2900是否能學到域名。2、 在29

實驗二

一.實驗拓撲圖

二.實驗要求

1、 在2950A 交換機上創(chuàng)建VTP 域名:cisco ,將2900和2950B 配置為:client 模式,并查看2950B 和2900是否能學到域名。

2、 在2950A 交換機上創(chuàng)立VLAN10、VLAN20,并查看2950B 和2900是否能學到VLAN 信息。

3、 在2950A 交換機上設(shè)置VTP 域密碼后,創(chuàng)建VLAN30、VLAN40,查看2950B 和2900是否能學到新創(chuàng)建的VLAN 信息。

4、 在2950A 上啟用修剪。

5、 將2950B 配置為:transparent ,查看VTP 信息的變化。

6、 設(shè)置所有交換機設(shè)置為版本2。

7、 將2950B 從cisco 域刪除,然后再添加到cisco 域中。

8、 清除交換機所有配置。

三.網(wǎng)絡(luò)連接

2950A 接口1<--→2950B 接口1

2950A 接口2<--→2950B 接口2

2950A 接口3<--→2900接口3

2950B 接口4<--→2900接口4

四.實驗配置

2950A 交換機的配置:

Switch>en //進入特權(quán)模式

Switch#config t // 進入全局模式

Router(config)#hostname 2950A //設(shè)置主機名為2950A

2950A(config)#no ip do lo //關(guān)閉域名解析功能

2950A(config)#line con 0 //進入控制線0

2950A(config-line)#logg syn //光標同步

2950A(config-line)#exec-time 0 0 //對Console 口進行空閑超時時間的配置 2950A(config-line)#exit // 返回全局配置模式

2950A(config)#end //返回特權(quán)模式

//創(chuàng)建vtp 域名cisco 并設(shè)置為server 模式

1

,

2950A#vlan database // 進入VLAN 數(shù)據(jù)庫配置模式

2950A(vlan)#vtp domain cisco //創(chuàng)建名為cisco 的管理域

Changing VTP domain name from NULL to cisco

2950A(vlan)#vtp server //設(shè)置VTP 的模式為server

Device mode already VTP SERVER.

//新建vlan

2950A(vlan)#vlan 10 // 創(chuàng)建VLAN10

VLAN 10 added:

Name: VLAN0010

2950A(vlan)#vlan 20 //創(chuàng)建VLAN20

VLAN 20 added:

Name: VLAN0020

2950A(vlan)#exit // 退出

APPL Y completed.

Exiting....

//查看vlan 信息

2950A#show vlan //查看VLAN 信息

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/0, Fa0/1, Fa0/2, Fa0/3

Fa0/4, Fa0/5, Fa0/6, Fa0/7 Fa0/8, Fa0/9, Fa0/10, Fa0/11 Fa0/12, Fa0/13, Fa0/14, Fa0/15 10 VLAN0010 active

20 VLAN0020 active

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1 enet 100001 1500 - - - - - 1002 1003 10 enet 100010 1500 - - - - - 0 0 20 enet 100020 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 1 1003 1003 tr 101003 1500 1005 0 - - srb 1 1002 1004 fdnet 101004 1500 - - 1 ibm - 0 0 1005 trnet 101005 1500 - - 1 ibm - 0 0 2950A#exit

2

,

//對接口f0/1 f0/2 f0/3做干道

2950A>en // 進入特權(quán)模式

2950A#config t // 進入全局配置模式 2950A(config)#int fa0/1 // 進入fa0/1接口

2950A(config-if)#switchport mode trunk // 配置接口模式為trunk 2950A(config-if)#switchport trunk encapsulation dot1q // 配置封裝協(xié)議 2950A(config-if)#exit //退出

2950A(config)#int fa0/2 // 進入fa0/2接口

2950A(config-if)#switchport mode trunk // 配置接口模式為trunk 2950A(config-if)#switchport trunk encapsulation dot1q //配置封裝協(xié)議 2950A(config-if)#exit //退出

2950A(config)#int fa0/3 // 進入fa0/3接口

2950A(config-if)#switchport mode trunk // 配置接口模式為trunk 2950A(config-if)#switchport trunk encapsulation dot1q //配置封裝協(xié)議 2950A(config-if)#exit //返回全局配置模式 2950A(config)#end // 返回特權(quán)模式

//創(chuàng)建vtp 密碼

2950A#vlan database //進入VLAN 數(shù)據(jù)庫配置模式 2950A(vlan)#vtp password 123 //創(chuàng)建vtp 密碼為123 Setting device VLAN database password to 123.

2950A(vlan)#vlan 30 // 創(chuàng)建VLAN30

VLAN 30 added:

Name: VLAN0030

2950A(vlan)#vlan 40 //創(chuàng)建VLAN40

VLAN 40 added:

Name: VLAN0040

2950A(vlan)#exit // 退出

APPL Y completed.

Exiting....

//啟用修剪

2950A#vlan database // 進入vlan 數(shù)據(jù)庫配置模式 2950A(vlan)#vtp pruning // 啟動修剪

Pruning switched ON

2950A(vlan)#vtp v2-mode //設(shè)置交換機的設(shè)置為版本2 V2 mode enabled.

2950A(vlan)#exit // 退出

APPL Y completed.

Exiting....

3

,

//清除所以交換機配置

2950A#erase nvram: //清除交換機的配置

Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]

[OK]

Erase of nvram: complete

2950B 交換機的配置:

Switch>en // 進入特權(quán)模式

Switch#config t //進入全局配置模式

Router(config)#hostname 2950B //設(shè)置主機名為2950B

2950B(config)#no ip do lo // 關(guān)閉域名解析功能

2950B(config)#line con 0 // 進入控制線0

2950B(config-line)#logg syn // 光標同步

2950B(config-line)#exec-time 0 0 // 對Console 口進行空閑超時時間的配置 2950B(config-line)#exit // 返回全局配置模式

2950B(config)#end // 返回特權(quán)模式

//創(chuàng)建vtp 域名cisco 并設(shè)置clinet 模式

2950B#vlan database // 進入vlan 數(shù)據(jù)庫配置模式

2950B(vlan)#vtp domain cisco //創(chuàng)建vtp 域名為cisco

Changing VTP domain name from NULL to cisco

2950B(vlan)#vtp client // 設(shè)置vtp 為client 模式

Setting device to VTP CLIENT mode.

2950B(vlan)#exit //退出

In CLIENT state, no apply attempted.

Exiting....

//查看vtp 信息

2950B#show vtp status //查看vtp 信息

VTP Version : 2

Configuration Revision : 0

Maximum VLANs supported locally : 256

Number of existing VLANs : 5

VTP Operating Mode : Client

VTP Domain Name : cisco

VTP Pruning Mode : Disabled

VTP V2 Mode : Disabled

VTP Traps Generation : Disabled

MD5 digest : 0x89 0x5D 0x37 0xD0 0x91 0x71 0xF7 0x96 Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00

//分別對接口f0/1 f0/2 f0/4做干道trunk

2950B#config t // 進入全局配置模式

4

,

2950B(config)#int fa0/1 // 進入fa0/1接口

2950B(config-if)#switchport mode trunk // 配置接口模式為trunk

2950B(config-if)#switchport trunk encapsulation dot1q // 配置封裝協(xié)議 2950B(config-if)#exit // 退出

2950B(config)#int fa0/2 // 進入fa0/2接口

2950B(config-if)#switchport mode trunk //配置接口模式為trunk

2950B(config-if)#switchport trunk encapsulation dot1q // 配置封裝協(xié)議

2950B(config-if)#exit //退出

2950B(config)#int fa0/4 // 進入fa0/4接口

2950B(config-if)#switchport mode trunk // 配置接口模式為trunk

2950B(config-if)#switchport trunk encapsulation dot1q // 配置封裝協(xié)議 2950B(config-if)#exit // 返回全局配置模式

2950B(config)#end // 返回特權(quán)模式

//查看所學到的vlan 信息

2950B#show vlan //查看vlan 信息

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/0, Fa0/3, Fa0/5, Fa0/6

Fa0/7, Fa0/8, Fa0/9, Fa0/10 Fa0/11, Fa0/12, Fa0/13, Fa0/14 Fa0/15

10 VLAN0010 active

20 VLAN0020 active

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1 enet 100001 1500 - - - - - 1002 1003 10 enet 100010 1500 - - - - - 0 0 20 enet 100020 1500 - - - - - 0 0 1002 fddi 101002 1500 - 0 - - - 1 1003 1003 tr 101003 1500 1005 0 - - srb 1 1002 1004 fdnet 101004 1500 - - 1 ibm - 0 0 1005 trnet 101005 1500 - - 1 ibm - 0 0

5

,

//在服務器端設(shè)置密碼之后,vlan 沒有學到新信息

2950B#show vlan 查看vlan 信息

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/0, Fa0/3, Fa0/5, Fa0/6

Fa0/7, Fa0/8, Fa0/9, Fa0/10 Fa0/11, Fa0/12, Fa0/13, Fa0/14 Fa0/15

10 VLAN0010 active

20 VLAN0020 active

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1 enet 100001 1500 - - - - - 1002 1003 10 enet 100010 1500 - - - - - 0 0 20 enet 100020 1500 - - - - - 0 0 1002 fddi 101002 1500 - 0 - - - 1 1003 1003 tr 101003 1500 1005 0 - - srb 1 1002 1004 fdnet 101004 1500 - - 1 ibm - 0 0 1005 trnet 101005 1500 - - 1 ibm - 0 0

//刪除vtp 客戶端模式,修改為transparent 模式

2950B#vlan database // 進入vlan 數(shù)據(jù)庫配置模式

2950B(vlan)#no vtp client // 刪除client 模式

Resetting device to VTP SERVER mode.

2950B(vlan)#vtp transparent //設(shè)置transparent 模式 Setting device to VTP TRANSPARENT mode.

2950B(vlan)#exit // 退出

APPL Y completed.

Exiting....

//查看修改后的vtp 信息

2950B#show vtp status //查看vtp 信息

VTP Version : 2

Configuration Revision : 0

Maximum VLANs supported locally : 256

Number of existing VLANs : 7

VTP Operating Mode : Transparent

VTP Domain Name : cisco

6

,

VTP Pruning Mode : Disabled

VTP V2 Mode : Disabled

VTP Traps Generation : Disabled

MD5 digest : 0x2F 0xA6 0x09 0x03 0x86 0xAB 0xFF 0x74 Configuration last modified by 0.0.0.0 at 3-1-02 00:06:48

//交換機設(shè)置為v2版本

2950B#vlan database // 進入vlan 數(shù)據(jù)庫配置模式

2950B(vlan)#vtp v2-mode //配置交換機設(shè)置為版本2

V2 mode enabled.

2950B(vlan)#exit // 退出

APPL Y completed.

Exiting....

//清除所有交換機的配置

2950B#erase nvram: //清除交換機的配置

Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]

[OK]

Erase of nvram: complete

2900交換機:

Switch>en //進入特權(quán)模式

Switcj#config t // 進入全局模式

Router(config)#hostname 2900 // 設(shè)置主機名為2900

2900(config)#no ip do lo // 關(guān)閉域名解析協(xié)議

2900(config)#line con 0 //進入控制線0

2900(config-line)#logg syn // 光標同步

2900(config-line)#exec-time 0 0 //對Console 口進行空閑超時時間的配置 2900(config-line)#exit //返回全局配置模式

2900(config)#end // 返回特權(quán)模式

//創(chuàng)建vtp 域名cisco 并設(shè)置為clinet 模式

2900#vlan database //進入vlan 數(shù)據(jù)庫配置模式

2900(vlan)#vtp domain cisco // 創(chuàng)建vtp 域名為cisco

Changing VTP domain name from NULL to cisco

2900(vlan)#vtp client //設(shè)置vtp 為clinet

Setting device to VTP CLIENT mode.

2900(vlan)#exit //退出

In CLIENT state, no apply attempted.

Exiting....

//查看vtp 的信息

2900#show vtp status // 查看vtp 信息

7

,

VTP Version : 2

Configuration Revision : 0

Maximum VLANs supported locally : 256

Number of existing VLANs : 5

VTP Operating Mode : Client

VTP Domain Name : cisco

VTP Pruning Mode : Disabled

VTP V2 Mode : Disabled

VTP Traps Generation : Disabled

MD5 digest : 0x89 0x5D 0x37 0xD0 0x91 0x71 0xF7 0x96 Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00

//做trunk 干道

2900#config t //進入全局配置模式

2900(config)#int fa0/3 //進入fa0/3接口

2900(config-if)#switchport mode trunk // 設(shè)置接口為trunk 模式

2900(config-if)#switchport trunk encapsulation dot1q //配置封裝協(xié)議

2900(config-if)#exit //退出

2900(config)#int fa0/4 // 進入fa 0/4接口

2900(config-if)#switchport mode trunk // 設(shè)置接口為trunk 模式 2900(config-if)#switchport trunk encapsulation dot1q // 配置封裝協(xié)議 2900(config-if)#exit // 返回全局配置模式

2900(config)#end //返回特權(quán)模式

//查看vlan 的信息,說明學到了信息

2900#show vlan // 查看vlan 信息

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/0, Fa0/1, Fa0/2, Fa0/5

Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12, Fa0/13 Fa0/14, Fa0/15

10 VLAN0010 active

20 VLAN0020 active

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

8

,

1 enet 100001 1500 - - - - - 1002 1003 10 enet 100010 1500 - - - - - 0 0 20 enet 100020 1500 - - - - - 0 0 1002 fddi 101002 1500 - 0 - - - 1 1003 1003 tr 101003 1500 1005 0 - - srb 1 1002 1004 fdnet 101004 1500 - - 1 ibm - 0 0 1005 trnet 101005 1500 - - 1 ibm - 0 0

//查看vlan 的信息,說明配置vtp 密碼之后,沒學到信息。

2900#show vlan //查看vlan 信息

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/0, Fa0/1, Fa0/2, Fa0/5

Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12, Fa0/13 Fa0/14, Fa0/15

10 VLAN0010 active

20 VLAN0020 active

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1 enet 100001 1500 - - - - - 1002 1003 10 enet 100010 1500 - - - - - 0 0 20 enet 100020 1500 - - - - - 0 0 1002 fddi 101002 1500 - 0 - - - 1 1003 1003 tr 101003 1500 1005 0 - - srb 1 1002 1004 fdnet 101004 1500 - - 1 ibm - 0 0 1005 trnet 101005 1500 - - 1 ibm - 0 0

//2950B交換機配置成transparent 之后,2900交換機沒有改變.

2900#show vtp status //查看vtp 信息

VTP Version : 2

Configuration Revision : 1

Maximum VLANs supported locally : 256

Number of existing VLANs : 7

9

,

VTP Operating Mode : Client

VTP Domain Name : cisco

VTP Pruning Mode : Disabled

VTP V2 Mode : Disabled

VTP Traps Generation : Disabled

MD5 digest : 0x2F 0xA6 0x09 0x03 0x86 0xAB 0xFF 0x74 Configuration last modified by 0.0.0.0 at 3-1-02 00:06:48

2900#show vlan //查看vlan 信息

VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/0, Fa0/1, Fa0/2, Fa0/5

Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12, Fa0/13 Fa0/14, Fa0/15

10 VLAN0010 active

20 VLAN0020 active

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------

1 enet 100001 1500 - - - - - 1002 1003 10 enet 100010 1500 - - - - - 0 0 20 enet 100020 1500 - - - - - 0 0 1002 fddi 101002 1500 - 0 - - - 1 1003 1003 tr 101003 1500 1005 0 - - srb 1 1002 1004 fdnet 101004 1500 - - 1 ibm - 0 0 1005 trnet 101005 1500 - - 1 ibm - 0 0

//設(shè)置交換機為版本2

2900#vlan database //進入vlan 數(shù)據(jù)庫

2900(vlan)#vtp v2-mode // 配置交換機設(shè)置為版本2

V2 mode enabled.

2900(vlan)#exit //退出

In CLIENT state, no apply attempted.

Exiting....

10

標簽: