about summary refs log tree commit diff stats
path: root/tools/conf/etc/rc.d/blan
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2017-08-02 01:18:23 +0100
committerSilvino Silva <silvino@bk.ru>2017-08-02 01:18:23 +0100
commitc0148601ebe2196375f26572624590cad2751845 (patch)
tree0f40548a2b5c8eaf9bd99423e21b8baf63b83d65 /tools/conf/etc/rc.d/blan
parent5ff68b8c191272fe9c80765fa6ac11c18aee3224 (diff)
parent65167272a3ba52dc4d032a1c60a9ff030408047d (diff)
downloaddoc-c0148601ebe2196375f26572624590cad2751845.tar.gz
Merge branch 'r-0.3.1' into develop
Diffstat (limited to 'tools/conf/etc/rc.d/blan')
-rwxr-xr-xtools/conf/etc/rc.d/blan14
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/conf/etc/rc.d/blan b/tools/conf/etc/rc.d/blan
index f3ea322..56d1809 100755
--- a/tools/conf/etc/rc.d/blan
+++ b/tools/conf/etc/rc.d/blan
@@ -4,10 +4,10 @@
 #
 
 DEV="br0"
+PHY="enp8s0"
 
-ADDR=10.0.0.254
+ADDR=10.0.0.1
 NET=10.0.0.0
-GW=192.168.1.254
 MASK=24
 
 # one tap for each cpu core
@@ -20,6 +20,16 @@ case $1 in
         /sbin/ip link set dev ${DEV} up
         /bin/sleep 0.2s
 
+        /sbin/ip link set dev ${PHY} down
+        /bin/sleep 0.1s
+        /sbin/ip route flush dev ${PHY}
+        /sbin/ip addr flush dev ${PHY}
+        /sbin/ip link set dev ${PHY} up
+        /bin/sleep 0.2s
+
+        /sbin/ip link set dev ${PHY} master ${DEV}
+        #/sbin/ip route add default via ${GW}
+
         for i in `/usr/bin/seq $NTAPS`
         do
             TAP="tap$i"