Vous êtes sur la page 1sur 3

Netwerken 2b: Samenvatting Switches

1. Mac Address Tabel opvragen:


#show mac-address-table

2. Static Mapping aanmaken in de Mac Address Tabel:


#config t
#interface interface-id
# mac-address-table static <MAC address> vlan {1-4096, ALL}

3. Port security instellen:


#config t
#interface interface-id
#switchport mode access
#switchport port-security
#switchport port-security maximum 50
#switchport port-security mac-address sticky

4. Vlan 1 afzetten:
#config t
#interface Vlan 1
#shutdown

5. Aanmaken management Vlan:


#config t
#interface Vlan 99
#no shutdown
#ip address ip mask

6. Default gateway instellen (Alleen nodig als er een router aanhangt)


#config t
#ip default gateway

7. IOS Version op Switch (2900 = Oud / 2950 = Nieuw) of opzoeken (12.0 = Oud / 12.2 = Nieuw):
#show version

8. Client instellen:

1. Oud IOS (12.0):


#vlan database
#vtp client
#vtp domain name
2. Nieuw IOS (12.2):
#config t
#vtp mode client
#vtp domain name

9. Vlans instellen (Enkel op server):

1. Oud IOS (12.0):


#vlan database
#vtp server
#vtp domain name
#vlan 10 name Faculty
#vlan 20 name Student
#vlan 30 name Guest

2. Nieuw IOS (12.2):


#config t
#vtp mode server
#vtp domain name
#vlan 10 name Faculty
#vlan 20 name Student
#vlan 30 name Guest

10. Management Trunkpoorten Toekennen (Enkel bij één enkele verbinding tussen 2 switches):

1. Oud IOS (12.0):


#config t
#int fa0/1
#switchport mode trunk
#switchport trunk native vlan 99
#switchport trunk encapsulation dot1q
#exit
#int fa0/2
#...

2. Nieuw IOS (12.2):


#config t
#int fa0/1
#switchport mode trunk
#switchport trunk native vlan 99
#exit
#int fa0/2
#...
11. Access Poorten Toekennen:
#config t
#int fa0/6
#switchport mode access
#switchport access vlan 30
#exit
#int fa0/7
#...

12. Router-on-a-stick instellen:


#config t
#interface fa0/0.10
#encapsulation dot1q 10
#ip address ip mask
#interface fa0/0.20
#encapsulation dot1q 20
#ip address ip mask
#interface fa0/0.30
#encapsulation dot1q 30
#ip address ip mask
#interface f0/0
#no shutdown

13. Controle:
#Show int fa0/1 switchport
#Show vtp status
#Show stp status brief (Fwd = forwarding en Blk = blocking)

Vous aimerez peut-être aussi