As Adam stated, generally in a well designed network, you should not be receiving untagged frames on a trunk port. Based on your description, you only want and expect to send and receive VLAN 24 on the uplink port. Thus, configure the port as an access port in VLAN 24:
interface gig0/1
switchport access vlan 24
If for whatever reason this needs to remain a trunk port, but you still only want VLAN 24 (untagged), then configure as a trunk, but set the native VLAN to 24:
interface gig0/1
switchport trunk encapsulation dot1q !may not be necessary depending on hardware
switchport mode trunk
switchport trunk native vlan 24