VLANs are used to separate different broadcast domains. For every VLAN created, another broadcast domain is also created. The VLAN is created globally and applied to the interface. Once the interface has been placed into the VLAN, it becomes a member of that broadcast domain, where it can begin sending and receiving traffic.
Create VLANs 41, 42, 46, 49, 413, 414, 422 and 423 on SW4.
Create VLANs 31, 32, 36, 39, 313, 314, 322 and 323 on SW3.
SW4(config)#vlan 41,42,46,49,413,414,422,423
SW3(config)#vlan 31,32,36,39,313,314,322,323
SW4#show vlan br
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi0/0, Gi0/1, Gi0/2, Gi0/3
Gi1/0, Gi1/1, Gi1/2, Gi1/3
Gi2/0, Gi2/1, Gi2/2, Gi2/3
41 VLAN0041 active
42 VLAN0042 active
46 VLAN0046 active
49 VLAN0049 active
413 VLAN0413 active
414 VLAN0414 active
422 VLAN0422 active
423 VLAN0423 active
SW3#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi0/0, Gi0/1, Gi0/2, Gi0/3
Gi1/0, Gi1/1, Gi1/2, Gi1/3
Gi2/0, Gi2/1, Gi2/2, Gi2/3
31 VLAN0031 active
32 VLAN0032 active
36 VLAN0036 active
39 VLAN0039 active
313 VLAN0313 active
314 VLAN0314 active
322 VLAN0322 active
323 VLAN0323 active
On SW4, place the following ports into the following VLANs. These ports should be setup to support only a single host and transition immediately to STP forwarding upon link up.
On SW3, place the following ports into the following VLANs. These ports should be setup to support only a single host and transition immediately to STP forwarding upon link up.
SW4
interface GigabitEthernet0/0
switchport access vlan 49
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet0/1
switchport access vlan 46
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet0/2
switchport access vlan 42
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet0/3
switchport access vlan 41
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/0
switchport access vlan 414
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/1
switchport access vlan 413
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/2
switchport access vlan 423
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/3
switchport access vlan 422
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
SW3
interface GigabitEthernet0/0
switchport access vlan 39
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet0/1
switchport access vlan 36
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet0/2
switchport access vlan 32
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet0/3
switchport access vlan 31
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/0
switchport access vlan 314
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/1
switchport access vlan 313
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/2
switchport access vlan 323
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/3
switchport access vlan 322
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
SW4#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi2/0, Gi2/1, Gi2/2, Gi2/3
41 VLAN0041 active Gi0/3
42 VLAN0042 active Gi0/2
46 VLAN0046 active Gi0/1
49 VLAN0049 active Gi0/0
413 VLAN0413 active Gi1/1
414 VLAN0414 active Gi1/0
422 VLAN0422 active Gi1/3
423 VLAN0423 active Gi1/2
SW3#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi2/0, Gi2/1, Gi2/2, Gi2/3
31 VLAN0031 active Gi0/3
32 VLAN0032 active Gi0/2
36 VLAN0036 active Gi0/1
39 VLAN0039 active Gi0/0
313 VLAN0313 active Gi1/1
314 VLAN0314 active Gi1/0
322 VLAN0322 active Gi1/3
323 VLAN0323 active Gi1/2
With the VLANs created and placed into ports, we'll be able to send and receive traffic once we complete a couple more steps, trunking and some IP addressing.
Create VLANs 41, 42, 46, 49, 413, 414, 422 and 423 on SW4.
Create VLANs 31, 32, 36, 39, 313, 314, 322 and 323 on SW3.
SW4(config)#vlan 41,42,46,49,413,414,422,423
SW3(config)#vlan 31,32,36,39,313,314,322,323
SW4#show vlan br
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi0/0, Gi0/1, Gi0/2, Gi0/3
Gi1/0, Gi1/1, Gi1/2, Gi1/3
Gi2/0, Gi2/1, Gi2/2, Gi2/3
41 VLAN0041 active
42 VLAN0042 active
46 VLAN0046 active
49 VLAN0049 active
413 VLAN0413 active
414 VLAN0414 active
422 VLAN0422 active
423 VLAN0423 active
SW3#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi0/0, Gi0/1, Gi0/2, Gi0/3
Gi1/0, Gi1/1, Gi1/2, Gi1/3
Gi2/0, Gi2/1, Gi2/2, Gi2/3
31 VLAN0031 active
32 VLAN0032 active
36 VLAN0036 active
39 VLAN0039 active
313 VLAN0313 active
314 VLAN0314 active
322 VLAN0322 active
323 VLAN0323 active
On SW4, place the following ports into the following VLANs. These ports should be setup to support only a single host and transition immediately to STP forwarding upon link up.
- G0/0 - VLAN 49
- G0/1 - VLAN 46
- G0/2 - VLAN 42
- G0/3 - VLAN 41
- G1/0 - VLAN 414
- G1/1 - VLAN 413
- G1/2 - VLAN 423
- G1/3 - VLAN 422
On SW3, place the following ports into the following VLANs. These ports should be setup to support only a single host and transition immediately to STP forwarding upon link up.
- G0/0 - VLAN 39
- G0/1 - VLAN 36
- G0/2 - VLAN 32
- G0/3 - VLAN 31
- G1/0 - VLAN 314
- G1/1 - VLAN 313
- G1/2 - VLAN 423
- G1/3 - VLAN 322
SW4
interface GigabitEthernet0/0
switchport access vlan 49
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet0/1
switchport access vlan 46
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet0/2
switchport access vlan 42
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet0/3
switchport access vlan 41
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/0
switchport access vlan 414
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/1
switchport access vlan 413
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/2
switchport access vlan 423
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/3
switchport access vlan 422
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
SW3
interface GigabitEthernet0/0
switchport access vlan 39
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet0/1
switchport access vlan 36
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet0/2
switchport access vlan 32
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet0/3
switchport access vlan 31
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/0
switchport access vlan 314
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/1
switchport access vlan 313
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/2
switchport access vlan 323
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
!
interface GigabitEthernet1/3
switchport access vlan 322
switchport mode access
media-type rj45
negotiation auto
spanning-tree portfast edge
SW4#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi2/0, Gi2/1, Gi2/2, Gi2/3
41 VLAN0041 active Gi0/3
42 VLAN0042 active Gi0/2
46 VLAN0046 active Gi0/1
49 VLAN0049 active Gi0/0
413 VLAN0413 active Gi1/1
414 VLAN0414 active Gi1/0
422 VLAN0422 active Gi1/3
423 VLAN0423 active Gi1/2
SW3#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi2/0, Gi2/1, Gi2/2, Gi2/3
31 VLAN0031 active Gi0/3
32 VLAN0032 active Gi0/2
36 VLAN0036 active Gi0/1
39 VLAN0039 active Gi0/0
313 VLAN0313 active Gi1/1
314 VLAN0314 active Gi1/0
322 VLAN0322 active Gi1/3
323 VLAN0323 active Gi1/2
With the VLANs created and placed into ports, we'll be able to send and receive traffic once we complete a couple more steps, trunking and some IP addressing.