network segment use vlan, linux vconfig and AT-GS950

Dear all,

I have a Allied Telesyn AT-GS950 16 port switch.
All hosts&router have rtl8139 NICs.
OS : Slackware linux 12.1.
I use a switch with vlan technique to separate my network to some segment.

here my plan:

router eth0 ---> switch port 1
switch port 5 <--- eth0 host A
switch port 6 <--- eth0 host B

in eth0 of router, I make two vlan :

# modprobe 8021q
# ifconfig eth0 0.0.0.0 up
# vconfig add eth0 5
# ifconfig eth0.5 172.16.5.1 netmask 255.255.255.0 up
# vconfig add eth0 6
# ifconfig eth0.5 172.16.6.1 netmask 255.255.255.0 up

host A :

# ifconfig eth0 172.16.5.2 netmask 255.255.255.0 up

host B :

# ifconfig eth0 172.16.6.2 netmask 255.255.255.0 up

Arrange vlan configuration in switch :

VLAN_ID    VLAN_NAME     VLAN_MEMBER
1        Default VLAN   Untag:1; Tag:-; Not_member:2-16
5        vlan5              Untag:5; Tag:1; Not_member:2-4,6-16
6        vlan6              Untag:6; Tag:1; Not_member:2-5,7-16

ping result to both host A and host B from router gave same result : Destination Host Unreachable
ping command :

# ping 172.16.5.2 -I vlan5
# ping 172.16.6.2 -I vlan6

Please help, there's maybe I have wrong concept about vlan configuration?
Thank you very much.

Regards,
Denny

All config seems to be ok. Check ping from host to router (in same network, 172.16.5.2 -> 172.16.5.1 etc). Check running router process on router. And check trunk mode on AT switch - it must be 802.1q (dot1q).

Additionaly try to disable firewall on router, if you use that

I hope that helps