about summary refs log tree commit diff stats
path: root/tools/network.html
blob: 5e4a48174db3a3635b522d0024961022c0249969 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html dir="ltr" lang="en">
    <head>
        <meta charset='utf-8'>
        <title>Network Tools</title>
    </head>
    <body>

        <a href="index.html">Tools Index</a>

        <h1>Network Tools</h1>

        <h2 id="bridge">Bridges</h2>

        <p>See <a href="conf/etc/rc.d/blan">/etc/rc.d/blan</a> on
        how to create interfaces at startup or as source to do it
        in automatic way;</p>

        <pre>
        DEV="br0"
        PHY="enp8s0"
        </pre>

        <pre>
        # ip link add name ${DEV} type bridge
        # ip link set dev ${DEV} up
        </pre>
        <pre>
        # ip route flush dev ${PHY}
        # ip addr flush dev ${PHY}
        # ip link set dev ${PHY} master ${DEV}
        </pre>

        <pre>
        # ip addr add ${ADDR}/${MASK} dev ${DEV} broadcast +
        </pre>

        <a href="index.html">Tools Index</a>
        <p>This is part of the c9 Manual.
        Copyright (C) 2016
        c9 team.
        See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a>
        for copying conditions.</p>

    </body>
</html>