about summary refs log tree commit diff stats
path: root/tools/conf/etc/rc.d
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2018-12-08 02:11:24 +0000
committerSilvino Silva <silvino@bk.ru>2018-12-08 02:11:24 +0000
commit0cef8d9f3ae8a557d44c54b08a3f634bf305af78 (patch)
tree82e00c0c0cf41ef8d23fc8b2e147e85ea59ac228 /tools/conf/etc/rc.d
parentb6b79e6d960febc3f266735e4a2f807d776b5830 (diff)
downloaddoc-0cef8d9f3ae8a557d44c54b08a3f634bf305af78.tar.gz
wlan and blan scripts revision
Diffstat (limited to 'tools/conf/etc/rc.d')
-rwxr-xr-xtools/conf/etc/rc.d/blan13
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/conf/etc/rc.d/blan b/tools/conf/etc/rc.d/blan
index 56d1809..61ac2d6 100755
--- a/tools/conf/etc/rc.d/blan
+++ b/tools/conf/etc/rc.d/blan
@@ -1,14 +1,16 @@
 #!/bin/sh
 #
-# /etc/rc.d/net: start/stop network interface
+# /etc/rc.d/blan: start/stop virtual network interfaces
 #
 
 DEV="br0"
 PHY="enp8s0"
 
-ADDR=10.0.0.1
-NET=10.0.0.0
-MASK=24
+ADDR=10.0.0.254
+#ADDR=10.0.1.254
+MASK=8
+#GW=10.0.0.1
+GW=192.168.1.254
 
 # one tap for each cpu core
 NTAPS=$((`/usr/bin/nproc`))
@@ -20,6 +22,7 @@ case $1 in
         /sbin/ip link set dev ${DEV} up
         /bin/sleep 0.2s
 
+        # Add network to virtual bridge
         /sbin/ip link set dev ${PHY} down
         /bin/sleep 0.1s
         /sbin/ip route flush dev ${PHY}
@@ -28,7 +31,7 @@ case $1 in
         /bin/sleep 0.2s
 
         /sbin/ip link set dev ${PHY} master ${DEV}
-        #/sbin/ip route add default via ${GW}
+        /sbin/ip route add default via ${GW}
 
         for i in `/usr/bin/seq $NTAPS`
         do
266d563a3f531c13eba6d2a6bfe18f8808'>^
7452d052 ^















































5fe060d5 ^
7452d052 ^




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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124