You don't need to configure VLAN 1 because the ports 1 to 10 are, by default, set to VLAN 1.
! Ports 11 to 20 is assigned to VLAN 2
interface vlan 2
ip address a.b.c.d
interface range gi 0/11 - 20
switchport mode acc
switchport access vlan 2
! Port 24 is set to trunk
interface g 0/24
swit mode trunk
! Optional
! Allows VLAN 1 and 2 to the trunk and drops any from other VLANs
switport trunk allow vlan 1,2
Please don't forget to rate our useful posts. Thanks.