Виртуальные локальные сети (VLAN), страница 3

     VTP pruning mode        : Enabled

     VTP traps generation    : Disabled

     Configuration last modified by: 0.0.0.0 at 00-00-0000 00:00:00

#sh vlan

VLAN Name             Status     Ports

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

1    default          Enabled    4-12, AUI, A, B

2    user_1           Enabled    1

3    user_2           Enabled    2

5    user_3           Enabled    3

4    user_c           Enabled   

1002 fddi-default     Suspended

1003 token-ring-defau Suspended

1004 fddinet-default  Suspended

1005 trnet-default    Suspended

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

VLAN Type           SAID   MTU    Parent RingNo BridgeNo Stp  Trans1 Trans2

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

1    Ethernet       100001 1500   0      0      0        Unkn 1002   1003

2    Ethernet       100002 1500   0      1      1        Unkn 0      0

3    Ethernet       100003 1500   0      1      1        Unkn 0      0

5    Ethernet       100005 1500   0      1      1        Unkn 0      0

4    Ethernet       100004 1500   0      1      1        Unkn 0      0

1002 FDDI           101002 1500   0      0      0        Unkn 1      1003

1003 Token-Ring     101003 1500   1005   1      0        Unkn 1      1002

Настройки второго коммутатора:

>enable

#configure terminal

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

(config)#interface fa0/27

(config-if)#trunk on

(config-if)#exit

(config)#exit

#sh trunk b

DISL state: on, Trunking: on, Encapsulation type: ISL

#configure terminal

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

(config)#vlan 2 name user_1

(config)#vlan 3 name user_2

(config)#vlan 4 name user_4

(config)#interface e0/1

(config-if)#vlan-membership static 2

(config-if)#interface e0/2

(config-if)#vlan-membership static 3

(config-if)#interface e0/3

(config-if)#vlan-membership static 4

(config-if)#exit

(config)#exit

#sh vlan

VLAN Name             Status     Ports

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

1    default          Enabled    4-12, AUI, A, B

2    user_1           Enabled    1

3    user_2           Enabled    2

4    user_4           Enabled    3

1002 fddi-default     Suspended

1003 token-ring-defau Suspended

1004 fddinet-default  Suspended

1005 trnet-default    Suspended

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

VLAN Type           SAID   MTU    Parent RingNo BridgeNo Stp  Trans1 Trans2

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

1    Ethernet       100001 1500   0      0      0        Unkn 1002   1003

2    Ethernet       100002 1500   0      1      1        Unkn 0      0

3    Ethernet       100003 1500   0      1      1        Unkn 0      0

4    Ethernet       100004 1500   0      1      1        Unkn 0      0

1002 FDDI           101002 1500   0      0      0        Unkn 1      1003

1003 Token-Ring     101003 1500   1005   1      0        Unkn 1      1002

1004 FDDI-Net       101004 1500   0      0      1        IEEE 0      0

1005 Token-Ring-Net 101005 1500   0      0      1        IEEE 0      0

#sh vtp

     VTP version: 1

     Configuration revision: 0

     Maximum VLANs supported locally: 1005

     Number of existing VLANs: 8

     VTP domain name         :

     VTP Password            :

     VTP operating mode      : Server

     VTP pruning mode        : Disabled

     VTP traps generation    : Disabled

     Configuration last modified by: 0.0.0.0 at 00-00-0000 00:00:00

#configure terminal

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

(config)#vtp domain Drob_2

(config)#vtp server

Device mode already VTP SERVER.

(config)#vtp pruning enable

(config)#exit

#sh vtp

     VTP version: 1

     Configuration revision: 0

     Maximum VLANs supported locally: 1005

     Number of existing VLANs: 8

     VTP domain name         : Drob_2

     VTP Password            :

     VTP operating mode      : Server

     VTP pruning mode        : Enabled

     VTP traps generation    : Disabled

     Configuration last modified by: 0.0.0.0 at 00-00-0000 00:00:00

  1. Настройка нескольких VLAN на нескольких разнородных коммутаторах.

Настройки первого коммутатора(1912):

>enable

#configure terminal

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

(config)#interface fa 0/27

(config-if)#trunk on

(config-if)#exit

(config)#exit

#sh trunk b

DISL state: on, Trunking: on, Encapsulation type: ISL

#configure terminal

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

(config)#vlan 2 name user_1

(config)#vlan 3 name user_2

(config)#vlan 4 name user_3

(config)#interface e 0/1

(config-if)#vlan-membership static 2