Code:
TGY9 ~/testfiles/vlanint
$ tr -d '\015' <file2 >file22
TGY9 ~/testfiles/vlanint
$ awk 'FNR==NR{f2[$1]=$5;next} FNR==1{print $0, "VLAN Name";next} {print $0,($2 in f2)?f2[$2]:"NA"}' OFS=, file2 file1
Hostname,Port,Name,Status,Vlan,Duplex,Speed,Type,VLAN Name
onshintstat,Te1/1 , Trunk-to- , connected , trunk , full , 10G , 10GBase-CU 3M,,NA
onshintstat,Te1/2 , Trunk-to- , connected , trunk , full , 10G , 10GBase-CU 3M,,NA
onshintstat,Te1/3 , Trunk-to- , connected , trunk , full , 10G , 10GBase-CU 3M,,NA
onshintstat,Te1/4 , Trunk-to- , connected , trunk , full , 10G , 10GBase-CU 3M,,NA
onshintstat,Te1/5 , nexu , connected , 572 , full , 10G , 10GBase-CU 3M,,NA
onshintstat,Te1/6 , nexu , connected , 572 , full , 10G , 10GBase-CU 3M,,NA