diff options
author | Silvino Silva <silvino@bk.ru> | 2018-12-08 02:11:24 +0000 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2018-12-08 02:11:24 +0000 |
commit | 0cef8d9f3ae8a557d44c54b08a3f634bf305af78 (patch) | |
tree | 82e00c0c0cf41ef8d23fc8b2e147e85ea59ac228 /tools/conf/etc/rc.d | |
parent | b6b79e6d960febc3f266735e4a2f807d776b5830 (diff) | |
download | doc-0cef8d9f3ae8a557d44c54b08a3f634bf305af78.tar.gz |
wlan and blan scripts revision
Diffstat (limited to 'tools/conf/etc/rc.d')
-rwxr-xr-x | tools/conf/etc/rc.d/blan | 13 |
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 |