about summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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