//Oprette vlan på en switch Switch#vlan database Switch(vlan)#vlan 10 name Accounting Switch(vlan)#vlan 20 name Marketing Switch(vlan)#vlan 30 name Sales ------------------------------------------------------------------ //tilknytte porte til vlan Switch(config)#interface fastethernet 0/9 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan vlan_number ------------------------------------------------------------------- //show commands show vlan show vlan brief show vlan id show vtp status show spanning-tree ---------------------------------------------------------------------- //sætte trunk op Switch_a(config)#interface fasteth 0/1 Switch_A(config)#switchport mode trunk Switch_A(config)#end ---------------------------------------------------------------------- //opsætning af vtp server og client Switch#vlan database Switch(vlan)#vtp client (eller server) Switch(vlan)#vtp domian (navn) Switch(vlan)#exit ---------------------------------------------------------------------- //The following command can be used to set the correct mode of the switch: Switch(vlan)#vtp {client | server | transparent} ----------------------------------------------------------------------- //Default routes are implemented using the ip route command. Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1 ----------------------------------------------------------------------- // indsætte description router(config) interface fa (0/0.1) router(config-subif) ----------------------------------------------------------------------- //VLAN encapsulation, enter the encapsulation command in interface configuration mode. Router(config-if)#encapsulation dot1q (vlan-number ) ------------------------------------------------------------------------ //To identify the interface, use the interface command in global configuration mode. Router(config)#interface fastethernetport-number subinterface-number ------------------------------------------------------------------------ //The following command can be used to create the management domain. Switch(vlan)#vtp domain cisco ------------------------------------------------------------------------ //sætte switch som vtp server switch(vlan)#vtp server