Setting
[tex]\frac{\partial^2c}{\partial x^2}=0[/tex]
for nonzero times means that you're replacing diffusing particles with new particles to keep [itex]c=2[/itex] at [itex]x=0[/itex], and you're removing all the particles at [itex]x=2[/itex] to keep [itex]c=0[/itex]. In other words, you're maintaining the linear relationship.
For a constant amount of the diffusing species, try solving the equation for the boundary conditions
[tex]c(x,0)=2-x[/tex]
[tex]\frac{\partial c(0,t)}{\partial x}=\frac{\partial c(2,t)}{\partial x}=0[/tex]
which implies impermeable boundaries. You'll find that at long times the solution approaches [itex]c=1[/itex] everywhere. Make sense?