There are several packages in Debian currently which attempt to figure out which network you are own and configure your ethernet device accordingly. I know intuitively and I think thje other is discover. There is at least two more.