We present a linear description of the 0/1 knapsack polytope for the special case when the number of different weights of the items is two. The inequalities needed for this description involve elements of the Hilbert basis of the cone of exchange vectors.