How do you access network preferences from the Terminal?
Typing

open /System/Library/PreferencePanes/Network.prefPane/


works for me on Lion. You can substitute Network.prefPane for any of the preference panes in the PreferencePanes folder. This also switches to the correct pane even if System Preferences is already open.