Comment tags in /etc/network/interfaces

Today I took down networking on one of our production host machines. It’s not a machine local to us, so we were fortunate enough to have a secondary network setup to access the server from another server of ours.

After much troubleshooting as to what wrong, I found the tricky answer. Here’s what I did:

I had commented out a line on my practice machine, restarted networking and everything went fine. I then did the same thing on the production machine:

I changed:

"  gateway"

"  #gateway"
and everything blew up!
When I then changed it instead to this:

"#  gateway"
everything worked fine again.
In the interfaces file at least, it’s *very* important to put comment tags as the first letter of a line you want to comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s