From d11608eafc201f6fc5e6fad86eb76908f489deda Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Mon, 13 Feb 2017 21:44:14 +0000 Subject: tools network revision --- tools/conf/etc/rc.d/blan | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'tools/conf/etc/rc.d/blan') 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" -- cgit 1.4.1-2-gfad0