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

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

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

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

#show vlan-membership

   Port  VLAN    Membership Type     Port  VLAN    Membership Type

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

   1        2       Static

   2        3       Static

   3        1       Static

   4        1       Static

   5        1       Static

   6        1       Static

   7        1       Static

   8        1       Static

   9        1       Static

   10       1       Static

   11       1       Static

   12       1       Static

   AUI      1       Static

   A        1       Static

   B        1       Static

Статическая VLAN для коммутатора Catalyst 2950

Switch#

Switch#show interfaces switchport

Name: Fa0/1

Switchport:     Enabled

Administrative mode: dynamic desirable

Operational mode: down

Administrative Trunking Encapsulation: dot1q

Negotiation of Trunking: On

Access Mode VLAN: 4 (user_3)

Trunking Native Mode VLAN: 1 (default)

Trunking VLANs Enabled: ALL

Pruning VLANs Enabled: 2-1001

Protected: false

Voice vlan: none (Inactive)

Appliance trust: none

Name: Fa0/2

Switchport:     Enabled

Administrative mode: dynamic desirable

Operational mode: down

Administrative Trunking Encapsulation: dot1q

Negotiation of Trunking: On

Access Mode VLAN: 3 (user_2)

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

Для коммутаторов Catalyst 1912

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

>sh trunk b

DISL state: Off, Trunking: Off, Encapsulation type: Unknown

>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 5 name user_3

(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 5

(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

5    user_3           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

5    Ethernet       100005 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

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

#configure terminal

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

(config)#vtp domain Drob_1

(config)#vtp server

Device mode already VTP SERVER.

(config)#vtp pruning enable

(config)#vlan 2 name user_a

(config)#vlan 3 name user_b

(config)#vlan 4 name user_c

(config)#vlan 5 name user_d

(config)#exit

#exit

>enable

#sh vtp

     VTP version: 1

     Configuration revision: 0

     Maximum VLANs supported locally: 1005

     Number of existing VLANs: 9

     VTP domain name         : Drob_1

     VTP Password            :

     VTP operating mode      : Server