We have $$||f||_\infty = \inf\{l\ge0:|f(x)|\le l \;\mbox{for almost all } x\in[a,b]\}.$$
The 'trivial' bound we can get from this is $$ ||f||_2^2 = \int_a^b|f(x)|^2dx \le ||f||_\infty^2\int_a^bdx = ||f||_\infty^2(b-a)$$
So this only gets you up to a constant in general (for your case with $[a,b]=[0,1]$ it actually gives the true bound.)
The more general case is not as simple.
We know from Jensen's inequality that $||f||_q \le ||f||_p$ for $p\ge q,$ i.e. the norm $||f_p||$ is increasing in $p.$
We can write $$ ||f||_p = \left(\int_a^b|f(x)|^{p-q}|f(x)|^qdx\right)^{1/p}\le ||f||_\infty^{(p-q)/p}||f||_q^{q/p}$$ for any $q
So $||f||_2 \le ||f||_\infty$ follows from the fact that the $L_p$ norm is increasing in $p$.