switch - pt 3

Back | HomePart 1 | Part 2 | Part 3 | Part 4 | Part 5 | Chall 1 | Chall 2  | Chall 3 | Test

[Expand][PDF]

Setting up a trunk between VLANs. VLAN Trunking Protocol (VTP) allows two VLANs to be interconnected using ports on the switch. This can be useful in a large network, where many VLANs on differing switches can be grouped together into a single VLAN. This makes the complete network easier to administer, as users can be assigned to a given VLAN. To implement trunking, a cross connect cable is required between the two switches in the trunking ports.

For example to setup a VLAN 2 on E0/1 to E0/3 and VLAN 3 on E0/4 to E0/6. We can then set-up E0/10 and E0/11 to act as a trunk between the two VLANs. This can be achieved with:

1

# vlan database

2

# (vlan) vlan 2 name fred

3

# (vlan) vlan 3 name bert

4

# exit

5

# config t

6

# (config) int e0/1

7

# (config-if) switchport access vlan 2

8

# (config-if) exit

9

# (config) int e0/2

10

# (config-if) switchport access vlan 2

11

# (config-if) exit

12

# (config) int e0/3

13

# (config-if) switchport access vlan 2

14

# (config-if) exit

15

# (config) int e0/4

16

# (config-if) switchport access vlan 3

17

# (config-if) exit

18

# (config) int e0/5

19

# (config-if) switchport access vlan 3

20

# (config-if) exit

21

# (config) int e0/6

22

# (config-if) switchport access vlan 3

23

# (config-if) exit

24

# (config) int e0/10

25

# (config-if) switchport trunk allowed vlan 2-3

26

# (config-if) switchport mode trunk

27

# (config-if) exit

28

# (config) int e0/11

29

# (config-if) switchport trunk allowed vlan 2-3

30

# (config-if) switchport mode trunk

31

# (config-if) exit

32

# (config) exit

33

# show vlan

34

# show running-config

VTP pruning

VTP pruning allows trunk connections to dynamically remove VLANs which are not active between two switches. It is setup in vlan database:

1

# vlan database

2

# (vlan) vtp ?

3

# (vlan) vtp domain my_vtp_domain_name

4

# (vlan) vtp client

5

# (vlan) vtp password my_vtp_password

6

# (vlan) vtp pruning

7

# (vlan) exit

8

# show vtp status

it is also possible to use the vtp server, vtp client or vtp transparent.

If you would like to register the switch emulator, or obtain the full version, please complete the following:

Purchase emulator