Greetings and happy new year...
Just started a new position and am wondering about the way some interfaces were set up. Here is an example:
switchport access vlan 918
switchport trunk native vlan 918
switchport trunk allowed vlan 918,919
no ip address
I am not sure why they are using the trunk command and the access command at the same time, shouldnt a link be one or the other? If the link is configed as so what config trumps the other trunk or access?
You are correct. Often, you see these commands implemented (access along with trunk) as a fall-back method if the switchport fails to negotiate a trunk.
By default, the switchport is set to trunk (dynamic mode is desirable or auto, depending on the switch).
You can verify what status the switch is under by typing show interface g12/23 switchport. Please post that output here.