General switch configuration for an Adtran 1224p with 2 VLANS, one for voice and one for data:
#sh runBuilding configuration...!!! ADTRAN, Inc. OS version R11.10.4! Boot ROM version R11.1.0! Platform: NetVanta 1531P, part number 1700571F1! Serial number LBADTN1406AC858!!hostname "Switch Config"enable password encrypted 2e278cb4bbd5cdf1ce7acdc5a373d5e8106f!!clock timezone -5-Eastern-Time!ip subnet-zeroip classlessip default-gateway 192.168.1.1no ip routingname-server 8.8.8.8 209.244.0.3 !!no ip route-cache express!no auto-config!event-history onno logging forwardingno logging email!service password-encryption!username "admin" password encrypted "1c15b4d06b8946ee2f1fcdf7485d29c9883c" !banner motd #Authorized Access Only. If you are not authorized to access this device, disconnect immediately.All unauthorized access can be prosecuted to the extent of the law.#!!!!!!no dot11ap access-point-controlno dos-protectionno desktop-auditing dhcp no network-forensics ip dhcp!!!!!!!!!vlan 1 name "Default" !vlan 10 name "Voice" !vlan 20 name "Data" !interface gigabit-switchport 0/1 description To Router no shutdown switchport mode trunk switchport trunk allowed vlan 10,20!interface gigabit-switchport 0/2 spanning-tree edgeport no shutdown switchport mode trunk switchport trunk native vlan 20 switchport trunk allowed vlan 10,20 switchport voice vlan 10 cos 0 dscp 46 !interface gigabit-switchport 0/3 spanning-tree edgeport no shutdown switchport mode trunk switchport trunk native vlan 20 switchport trunk allowed vlan 10,20 switchport voice vlan 10 cos 0 dscp 46 !interface gigabit-switchport 0/4 spanning-tree edgeport no shutdown switchport mode trunk switchport trunk native vlan 20 switchport trunk allowed vlan 10,20 switchport voice vlan 10 cos 0 dscp 46 !interface gigabit-switchport 0/5 spanning-tree edgeport no shutdown switchport mode trunk switchport trunk native vlan 20 switchport trunk allowed vlan 10,20 switchport voice vlan 10 cos 0 dscp 46 !interface gigabit-switchport 0/6 spanning-tree edgeport no shutdown switchport mode trunk switchport trunk native vlan 20 switchport trunk allowed vlan 10,20 switchport voice vlan 10 cos 0 dscp 46 !interface gigabit-switchport 0/7 spanning-tree edgeport no shutdown switchport mode trunk switchport trunk native vlan 20 switchport trunk allowed vlan 10,20 switchport voice vlan 10 cos 0 dscp 46 !interface gigabit-switchport 0/8 spanning-tree edgeport no shutdown switchport mode trunk switchport trunk native vlan 20 switchport trunk allowed vlan 10,20 switchport voice vlan 10 cos 0 dscp 46 !interface gigabit-switchport 0/9 description To monitor spanning-tree edgeport no shutdown switchport mode trunk switchport trunk native vlan 20 switchport trunk allowed vlan 10,20 switchport voice vlan 10 cos 0 dscp 46 !interface gigabit-switchport 0/10 description WirelessAP spanning-tree edgeport no shutdown switchport access vlan 20!interface gigabit-switchport 0/11 no shutdown!interface gigabit-switchport 0/12 no shutdown!!!interface vlan 10 ip address 192.168.10.10 255.255.255.0 ip route-cache express no shutdown!interface vlan 20 ip address 192.168.20.10 255.255.255.0 ip route-cache express no shutdown!!!!!no tftp serverno tftp server overwritehttp serverhttp secure-serverno snmp agentno ip ftp serverno ip scp serverno ip sntp server!!!!!snmp-server engine local 800002980300a0c801e5e1 !!!!line con 0 no login!line telnet 0 4 login password encrypted 171e6b69a90c9622cd5129510076754304ae no shutdownline ssh 0 4 login local-userlist no shutdown!sntp server 216.128.134.245sntp wait-time 60sntp retry-timeout 30!!!end