In this bachelor work I deal with the computer network security based on the 802.1x protocol. I descripe how to set and use the RADIUS server, firewall, VLAN, DHCP and AAA. I practically set and verify user authentication system which can be deployed in a small or mid-sized companies.