]> git.ipfire.org Git - people/ms/network.git/blame - man/network.8.in
Fix "network device" command and document it.
[people/ms/network.git] / man / network.8.in
CommitLineData
de28a630
MT
1.TH network 8 "31 May 2012" "@VERSION@" "network man page"
2
3.SH NAME
4network \- Network Configuration Control Program
5
6.SH SYNOPSIS
7\fBnetwork [--debug|-d] command\fR
8
9.SH DESCRIPTION
10The network command is a tool which configures the network on every IPFire
11system. It is a fast and versatile way to create, edit and remove
12configurations, review the status of the network and it is working in the
13background of the system making sure that things are running smoothly.
14.PP
15
16.SH OPTIONS
17\fB\-\-debug\fR
18(short \fB\-d\fR)
19.RS 4
20The \fB\-\-debug\fR switch enabled the debugging mode. In this mode, there
21will be debug output in the console and written to the log files.
22.PP
23The debugging mode can be permanently enabled by running
24\fBnetwork config DEBUG=1\fR.
25.RE
26.PP
27
28The \fBnetwork\fR command offers various commands:
29
30\fBstart [zone-name ...]\fR
31.RS 4
32The \fBstart\fR command starts a zone. That means the network zone will be created
33and brought up.
34If one or more names of zones are passed to the command, only those will be started.
35.PP
36The startup of the zones itself is dispatches to \fBsystemd\fR(8).
37.RE
38.PP
39
40\fBstop [zone-name ...]\fR
41.RS 4
42The \fBstop\fR command stops a zone. This is the inverse of the \fBstart\fR command.
43.RE
44.PP
45
46\fBrestart [zone-name ...]\fR
47.RS 4
48The \fBrestart\fR command will stop and start all given zones or all.
49.RE
50.PP
51
52\fBstatus [zone-name ...]\fR
53.RS 4
54The \fBstatus\fR command will show a human-readable overview of the status of the
55network zones.
56.RE
57.PP
58
59\fBzone ...\fR
60.RS 4
61The \fBzone\fR command is the most used command. It can configure zones.
62Read more about that in \fBnetwork-zone\fR(8).
63.RE
64.PP
65
66\fBport ...\fR
67.RS 4
68The \fBport\fR command is used to create, remove and configure ports.
69Read more about that in \fBnetwork-port\fR(8).
70.RE
71.PP
72
73\fBdevice ...\fR
74.RS 4
75The \fBdevice\fR command is used to read status information about
76devices. Detailed information is to be found in \fBnetwork-device\fR(8).
77.RE
78.PP
79
80\fBconfig [KEY=VALUE ...]\fR
81.RS 4
82The \fBconfig\fR command will return you are list of the global configuration
83parameters of the network command.
84.PP
85You may set them by appending a new setting to the command line.
86.RE
87.PP
88
89\fBhostname [new-hostname]\fR
90.RS 4
91The \fBhostname\fR command will return the currently configured hostname of the system.
92.PP
93If a new hostname is added to the command line, it will be configured, but will be set
94after the next reboot.
95.RE
96.PP
97
98\fBreset\fR
99.RS 4
100The \fBreset\fR command will reset all network configuration. That means all zone configurations
101will be removed and there will be no networking at the next reboot.
102.RE
103.PP
104
105.SH EXIT CODES
106The \fBnetwork\fR command will normally exit with code 0. If there has been a problem
107and the requested action could not be done, the exit code is unequal to zero.
108
109.SH BUGS
110Please report all bugs to the official bugtracker at http://bugs.ipfire.org/.
111
112.SH SEE ALSO
113network-config(8),
114network-device(8),
115network-port(8),
116network-zone(8)
117
118.SH AUTHOR
119Michael Tremer (michael.tremer@ipfire.org)