2. Each of the three boys either always tells the truth or always lies. They were told six natural numbers. After that, each boy made two statements.

Petya: 1) These are six consecutive natural numbers. 2) The sum of these numbers is even.

Vasya: 1) These numbers are $1,2,3,5,7,8$. 2) Kolya is a liar.

Kolya: 1) All six numbers are distinct, and each is no greater than 7. 2) The sum of these six numbers is 25.

What numbers were told to the boys?
2. Among six consecutive natural numbers, exactly three are odd. Therefore, their sum is odd. This means that Petya lied either the first time or the second time, and therefore he is a liar, i.e., he lied both times. But then Vasya is also a liar because in his first statement, he mentioned six natural numbers, and the statement that the sum of these six numbers is even is false. Since Vasya is a liar and said that Kolya is a liar, Kolya is actually telling the truth. Now, to find the numbers given to the boys, it is enough to notice that the sum of all numbers from 1 to 7 is 28, and to satisfy Kolya's second statement, i.e., to have six numbers with a sum of 25, we need to remove the number 3 from this sum.

Answer: $1,2,4,5,6,7$.