Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Архив1 / docx56 / Лаба 3.docx
Скачиваний:
41
Добавлен:
01.08.2013
Размер:
81.91 Кб
Скачать

Лабораторная работа №13

VlaNs и Магистраль для 2950 свитча

Свитч3:

%LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

%LINK-3-UPDOWN: Interface FastEthernet0/12, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/12, changed state to up

2950sw3(config)#

2950sw3(config)#^Z

%SYS-5-CONFIG_I: Configured from console by console

На switch3 запускаем команду vlan. По умолчанию все порты свитча находятся в VLAN1.

2950sw3#show vlan

VLAN Name Status Ports

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

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

Fa0/5, Fa0/6, Fa0/7, Fa0/8

Fa0/9, Fa0/10, Fa0/11, Fa0/12

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 - - - - - 0 0

1002 fddi 101002 1500 - - - - - 0 0

1003 tr 101003 1500 - - - - - 0 0

1004 fdnet 101004 1500 - - - ieee - 0 0

1005 trnet 101005 1500 - - - ibm - 0 0

На switch3 запускаем команду VTP домен, называемый classroom.

2950sw3#vlan database

2950sw3(vlan)#vtp domain classroom

Changing VTP domain from NULL to classroom

APPLY completed.

Exiting....

2950sw3#show vtp status

VTP Version : 2

Configuration Revision : 2

Maximum VLANs supported locally : 64

Number of existing VLANs : 5

VTP Operating Mode : Server

VTP Domain Name : classroom

VTP Pruning Mode : Disabled

VTP V2 Mode : Disabled

VTP Traps Generation : Disabled

MD5 digest : 0xEE 0xB3 0xDC 0x9F 0xE2 0xE0 0x25 0xDF

Configuration last modified by 0.0.0.0 at 3-1-93 04:55:57

Local updater ID is 0.0.0.0 (no valid interface found)

На switch3 создаем VLAN 20 с именем 2950vlan. Запускаем команду показа VLAN, чтобы проверить, выполнились ли предыдущие команды.

2950sw3#vlan database

2950sw3(vlan)#vlan 20 name 2950vlan

VLAN 20 added:

Name:2950vlan

2950sw3(vlan)#exit

APPLY completed.

Exiting....

2950sw3#show vlan

VLAN Name Status Ports

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

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

Fa0/5, Fa0/6, Fa0/7, Fa0/8

Fa0/9, Fa0/10, Fa0/11, Fa0/12

20 2950vlan active

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default activе

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2

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

1 enet 100001 1500 - - - - - 0 0

20 enet 100020 1500 - - - - - 0 0

1002 fddi 101002 1500 - - - - - 0 0

1003 tr 101003 1500 - - - - - 0 0

1004 fdnet 101004 1500 - - - ieee - 0 0

1005 trnet 101005 1500 - - - ibm - 0 0

2950sw3#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

На switch3 назначаем на порт faO/1 уже на созданном VLAN. Назначаем все маршрутизаторы и PC к этому порту. Запускаем команду показа VLAN на обоих свитчах, чтобы удостовериться в том, что порты перемещены в VLAN 20.

2950sw3(config)#interface fa0/1

2950sw3(config-if)#switchport mode access

2950sw3(config-if)#switchport access vlan 20

2950sw3(config-if)#^Z

%SYS-5-CONFIG_I: Configured from console by console

2950sw3#show vlan

VLAN Name Status Ports

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

1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5

Fa0/6, Fa0/7, Fa0/8, Fa0/9

Fa0/10, Fa0/11, Fa0/12

20 2950vlan active Fa0/1

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 - - - - - 0 0

20 enet 100020 1500 - - - - - 0 0

1002 fddi 101002 1500 - - - - - 0 0

1003 tr 101003 1500 - - - - - 0 0

1004 fdnet 101004 1500 - - - ieee - 0 0

1005 trnet 101005 1500 - - - ibm - 0 0

2950sw3#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Созадем связь между switch3 и switch4 при помощи магистрали. Используем команду показа интерфейса fa0/12, чтобы проверить правильность введенных команд.

2950sw3(config)#interface fa0/12

2950sw3(config-if)#switchport mode trunk

2950sw3(config-if)#^Z

%SYS-5-CONFIG_I: Configured from console by console

2950sw3#show interface fa0/12 switchport

Name: Fa0/12

Switchport: Enabled

Administrative mode: trunk

Operational mode: trunk

Administrative Trunking Encapsulation: dot1q

Negotiation of Trunking: On

Access Mode VLAN: 1 (default)

Trunking Native Mode VLAN: 1 (default)

Trunking VLANs Enabled: ALL

Pruning VLANs Enabled: 2-1001

Protected: false

Voice vlan: none (Inactive)

Appliance trust: none

Аналогично свитч 4:

%LINK-3-UPDOWN: Interface FastEthernet0/12, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/12, changed state to up

%LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

2950sw4(config)#

2950sw4(config)#^Z

%SYS-5-CONFIG_I: Configured from console by console

2950sw4#vlan database

2950sw4(vlan)#vtp domain classroom

Changing VTP domain from NULL to classroom

APPLY completed.

Exiting....

2950sw4#show vtp status

VTP Version : 2

Configuration Revision : 2

Maximum VLANs supported locally : 64

Number of existing VLANs : 5

VTP Operating Mode : Server

VTP Domain Name : classroom

VTP Pruning Mode : Disabled

VTP V2 Mode : Disabled

VTP Traps Generation : Disabled

MD5 digest : 0xEE 0xB3 0xDC 0x9F 0xE2 0xE0 0x25 0xDF

Configuration last modified by 0.0.0.0 at 3-1-93 04:55:57

Local updater ID is 0.0.0.0 (no valid interface found)

2950sw4#vlan database

2950sw4(vlan)#vlan 20 name 2950vlan

VLAN 20 added:

Name:2950vlan

2950sw4(vlan)#exit

APPLY completed.

Exiting....

2950sw4#show vlan

VLAN Name Status Ports

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

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

Fa0/5, Fa0/6, Fa0/7, Fa0/8

Fa0/9, Fa0/10, Fa0/11, Fa0/12

20 2950vlan 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 - - - - - 0 0

20 enet 100020 1500 - - - - - 0 0

1002 fddi 101002 1500 - - - - - 0 0

1003 tr 101003 1500 - - - - - 0 0

1004 fdnet 101004 1500 - - - ieee - 0 0

1005 trnet 101005 1500 - - - ibm - 0 0

2950sw4#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

2950sw4(config)#interface fa0/1

2950sw4(config-if)#switchport mode access

2950sw4(config-if)#switchport access vlan 20

2950sw4(config-if)#^Z

%SYS-5-CONFIG_I: Configured from console by console

2950sw4#show vlan

VLAN Name Status Ports

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

1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5

Fa0/6, Fa0/7, Fa0/8, Fa0/9

Fa0/10, Fa0/11, Fa0/12

20 2950vlan active Fa0/1

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 - - - - - 0 0

20 enet 100020 1500 - - - - - 0 0

1002 fddi 101002 1500 - - - - - 0 0

1003 tr 101003 1500 - - - - - 0 0

1004 fdnet 101004 1500 - - - ieee - 0 0

1005 trnet 101005 1500 - - - ibm - 0 0

2950sw4#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

2950sw4(config)#interface fa0/12

2950sw4(config-if)#switchport mode trunk

2950sw4(config-if)#^Z

%SYS-5-CONFIG_I: Configured from console by console

2950sw4#show interface fa0/12 switchport

Name: Fa0/12

Switchport: Enabled

Administrative mode: trunk

Operational mode: trunk

Administrative Trunking Encapsulation: dot1q

Negotiation of Trunking: On

Access Mode VLAN: 1 (default)

Trunking Native Mode VLAN: 1 (default)

Trunking VLANs Enabled: ALL

Pruning VLANs Enabled: 2-1001

Protected: false

Voice vlan: none (Inactive)

Appliance trust: none

Комп 2:

Router(config)#

Router(config)#^Z

%SYS-5-CONFIG_I: Configured from console by console

Теперь утилита pingмеждуPC2 иrouter3 работает.

Router#winipcfg

Router#ping 197.10.1.1

Pinging 197.10.1.1 with 32 bytes of data:

Reply from 197.10.1.1: bytes=32 time=60ms TTL=241

Reply from 197.10.1.1: bytes=32 time=60ms TTL=241

Reply from 197.10.1.1: bytes=32 time=60ms TTL=241

Reply from 197.10.1.1: bytes=32 time=60ms TTL=241

Reply from 197.10.1.1: bytes=32 time=60ms TTL=241

Ping statistics for 197.10.1.1: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 50ms, Maximum = 60ms, Average = 55ms

Router#ping 197.10.1.1

Pinging 197.10.1.1 with 32 bytes of data:

Reply from 197.10.1.1: bytes=32 time=60ms TTL=241

Reply from 197.10.1.1: bytes=32 time=60ms TTL=241

Reply from 197.10.1.1: bytes=32 time=60ms TTL=241

Reply from 197.10.1.1: bytes=32 time=60ms TTL=241

Reply from 197.10.1.1: bytes=32 time=60ms TTL=241

Ping statistics for 197.10.1.1: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 50ms, Maximum = 60ms, Average = 55ms

Router#ping 197.10.1.1

Pinging 197.10.1.1 with 32 bytes of data:

Request timed out.

Request timed out.

Request timed out.

Request timed out.

Request timed out.

Ping statistics for 197.10.1.1: Packets: Sent = 5, Received =0 , Lost = 5 (100% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 0ms, Average = 0ms

Router#ping 197.10.1.1

Pinging 197.10.1.1 with 32 bytes of data:

Reply from 197.10.1.1: bytes=32 time=60ms TTL=241

Reply from 197.10.1.1: bytes=32 time=60ms TTL=241

Reply from 197.10.1.1: bytes=32 time=60ms TTL=241

Reply from 197.10.1.1: bytes=32 time=60ms TTL=241

Reply from 197.10.1.1: bytes=32 time=60ms TTL=241

Ping statistics for 197.10.1.1: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 50ms, Maximum = 60ms, Average = 55ms

Соседние файлы в папке docx56