]> git.ipfire.org Git - people/ms/network.git/blame - man/network-quick-start.txt
man: Converting network-quick-start(8) to asciidoc
[people/ms/network.git] / man / network-quick-start.txt
CommitLineData
27b9807e
MT
1network-quick-start(8)
2======================
3
4NAME
5----
6network-quick-start - Quick Start Guide for Networking
7
8DESCRIPTION
9-----------
10The link:network[8] is a very powerful command that allows you to configure
11the entire networking stack.
12Unfortunately that makes it quite complicated to use as well.
13
14This guide tries to be a good starting point to set up basic networking with
15the 'network' command.
16
17=== Adding an Uplink Zone
18
19The first step is to create a new uplink zone with name 'upl0'.
20
21This zone will be of the link:network-zone-bridge[8] type which is the default
22for all local networks.
23
24------------
25# network zone new upl0 bridge
26------------
27
28The zone will be created and brought up immediately.
29
30=== Attaching Ports
31
32To connect the zone to the physical world outside of our box we will need
33to attach ports to the zone. That is done with a single command.
34To execute this command, we will need to know which ports are available.
35One of the easiest way to find out about that is to use the auto-completion
36feature of the shell like this:
37
38------------
39# network zone upl0 port attach [TAB] [TAB]
40------------
41
42That will list all not yet attached ports. The following command will actually
43attach the port (which is 'p0' in this example).
44
45-----------
46# network zone upl0 port attach p0
47-----------
48
49You can as well get a list of all detected devices, zones and ports by running:
50
51-----------
52# network device list
53-----------
54
55To a zone of the 'bridge' type you may attach more than just one port if you
56wish to.
57
58=== IP Connectivity
59
60After a zone has been created and ports have been attached, you are now
61able to add IP connectivity.
62
63The easiest way to do that is using DHCP which can be enabled by this simple command:
64
65------------
66# network zone upl0 config new dhcp
67------------
68
69=== Debugging
70
71You may see the current status of the network by running this command:
72
73------------
74# network status
75------------
76
77The entire network can be restarted by running:
78
79------------
80# network restart
81------------
82
83AUTHORS
84-------
85Michael Tremer
86
87SEE ALSO
88--------
89link:network[8],
90link:network-device[8],
91link:network-port[8],
92link:network-zone[8]