I need to configure a switch with VLAN ports and a few Trunk ports. It seems to work but I am a little unsure about the configuration. Have I missed something? Please se the configuration below:
! version 12.2 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname cisco-sw ! enable secret 5 $1$WDrd$c9BBVIwpRdiVOxQSnsEEM/ ! no aaa new-model clock timezone UTC 1 clock summer-time UTC recurring last Sun Mar 2:00 last Sun Oct 3:00 ip subnet-zero ! ! ! ! no file verify auto spanning-tree mode pvst spanning-tree extend system-id ! vlan internal allocation policy ascending ! interface FastEthernet0/1 switchport access vlan 2 switchport mode access ! interface FastEthernet0/2 switchport access vlan 2 switchport mode access ! interface FastEthernet0/3 switchport access vlan 2 switchport mode access ! interface FastEthernet0/4 switchport access vlan 2 switchport mode access ! interface FastEthernet0/5 switchport access vlan 2 switchport mode access ! interface FastEthernet0/6 switchport access vlan 2 switchport mode access ! interface FastEthernet0/7 switchport access vlan 3 switchport mode access ! interface FastEthernet0/8 switchport access vlan 3 switchport mode access ! interface FastEthernet0/9 switchport access vlan 3 switchport mode access ! interface FastEthernet0/10 switchport access vlan 3 switchport mode access ! interface FastEthernet0/11 switchport access vlan 3 switchport mode access ! interface FastEthernet0/12 switchport access vlan 3 switchport mode access ! interface FastEthernet0/13 description Trunk1 switchport trunk native vlan 4 switchport trunk allowed vlan 2-4 switchport mode trunk switchport nonegotiate ! interface FastEthernet0/14 description Trunk1 switchport trunk native vlan 4 switchport trunk allowed vlan 2-4 switchport mode trunk switchport nonegotiate ! interface FastEthernet0/15 description Trunk1 switchport trunk native vlan 4 switchport trunk allowed vlan 2-4 switchport mode trunk switchport nonegotiate ! interface FastEthernet0/16 description Trunk1 switchport trunk native vlan 4 switchport trunk allowed vlan 2-4 switchport mode trunk switchport nonegotiate ! interface FastEthernet0/17 ! interface FastEthernet0/18 ! interface FastEthernet0/19 ! interface FastEthernet0/20 ! interface FastEthernet0/21 ! interface FastEthernet0/22 ! interface FastEthernet0/23 ! interface FastEthernet0/24 ! interface FastEthernet0/25 ! interface FastEthernet0/26 ! interface FastEthernet0/27 ! interface FastEthernet0/28 ! interface FastEthernet0/29 ! interface FastEthernet0/30 ! interface FastEthernet0/31 ! interface FastEthernet0/32 ! interface FastEthernet0/33 ! interface FastEthernet0/34 ! interface FastEthernet0/35 ! interface FastEthernet0/36 ! interface FastEthernet0/37 ! interface FastEthernet0/38 ! interface FastEthernet0/39 ! interface FastEthernet0/40 ! interface FastEthernet0/41 ! interface FastEthernet0/42 ! interface FastEthernet0/43 ! interface FastEthernet0/44 ! interface FastEthernet0/45 switchport mode access ! interface FastEthernet0/46 switchport mode access ! interface FastEthernet0/47 switchport mode access ! interface FastEthernet0/48 description Admin InterFace switchport mode access ! interface GigabitEthernet0/1 ! interface GigabitEthernet0/2 ! interface Vlan1 ip address 192.168.1.50 255.255.255.0 no ip route-cache ! interface Vlan2 no ip address no ip route-cache ! ip default-gateway 10.0.0.1 ip http server ! control-plane ! ! line con 0 line vty 0 4 password pass login line vty 5 15 password PASS login ! ! end