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