Debian:Network configuration

From Linux 101, The beginner's guide to all things Linux.

Jump to: navigation, search

Network configuration is done in the /etc/network directory. Debian's system allows you to configure different profiles (ie, settings) for a single network device so you can easily switch networks if you are on the run.

To start a device, issue:

ifup <device>

To stop a device, issue:

ifdown <device>

Settings for the devices are stored in /etc/network/interfaces. For a thorough explaination of the settings, consult

man interfaces

/etc/network Contents

if-down.d/ scripts run before ifdown
if-post-down.d/ scripts run after ifdown
if-pre-up.d/ scripts run before ifup
if-up.d/ scripts run after ifup
interfaces interface settings
options network options
Navigation: Debian Index
Personal tools