default via 100.100.0.1 dev vswitch0
100.100.0.0/16 dev vswitch0 proto kernel scope link src 100.100.3.102
192.168.100.0/24 dev internet proto kernel scope link src 192.168.100.66
\root@cvknode102:/# vi /etc/network
network/ networks
root@cvknode102:/# vi /etc/network
network/ networks
root@cvknode102:/# vi /etc/network/
if-down.d/ if-post-down.d/ if-pre-up.d/ if-up.d/ interfaces manageiface run/
root@cvknode102:/# vi /etc/network/
if-down.d/ if-post-down.d/ if-pre-up.d/ if-up.d/ interfaces manageiface run/
root@cvknode102:/# vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto vswitch0
iface vswitch0 inet static
address 100.100.3.102
netmask 255.255.0.0
network 100.100.0.0
broadcast 100.100.255.255
gateway 100.100.0.1
auto eth0
iface eth0 inet static
address 0.0.0.0
netmask 0.0.0.0
auto eth1
iface eth1 inet static
address 0.0.0.0
netmask 0.0.0.0
auto eth3
iface eth3 inet static
address 0.0.0.0
netmask 0.0.0.0
auto eth4
iface eth4 inet static
address 0.0.0.0
netmask 0.0.0.0
auto eth5
iface eth5 inet static
address 0.0.0.0
netmask 0.0.0.0
auto internet
iface internet inet static
address 192.168.100.66
netmask 255.255.255.0
auto eth2
iface eth2 inet static
address 0.0.0.0
netmask 0.0.0.0
auto vswitch1
iface vswitch1 inet static
address 0.0.0.0
netmask 0.0.0.0
up route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.100.1 dev internet metric 30
"/etc/network/interfaces" 48L, 1040C written
root@cvknode102:/# route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.100.1 dev internet metric 30
root@cvknode102:/# ping www.baidu.com
ping: unknown host www.baidu.com
root@cvknode102:/# vi /etc/resolv
resolvconf/ resolv.conf
root@cvknode102:/# vi /etc/resolvconf/
interface-order resolv.conf.d/ update.d/
root@cvknode102:/# vi /etc/resolvconf/resolv.conf.d/
base head original
root@cvknode102:/# vi /etc/resolvconf/resolv.conf.d/base
nameserver 114.114.114.114
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/resolvconf/resolv.conf.d/base" 1L, 27C written
root@cvknode102:/# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
root@cvknode102:/# sudo resolvconf -u
root@cvknode102:/# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 114.114.114.114
root@cvknode102:/# ping www.baidu.com
^C
root@cvknode102:/# ip route
default via 100.100.0.1 dev vswitch0
default via 192.168.100.1 dev internet metric 30
100.100.0.0/16 dev vswitch0 proto kernel scope link src 100.100.3.102
192.168.100.0/24 dev internet proto kernel scope link src 192.168.100.66
root@cvknode102:/# route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.100.1 dev internet metric 10
root@cvknode102:/# ping www.baidu.com
^C
root@cvknode102:/# route add -net 0.0.0.0 netmask 0.0.0.0 gw 100.100.0.1 dev vswitch0 metric 90
root@cvknode102:/# ip route
default via 100.100.0.1 dev vswitch0
default via 192.168.100.1 dev internet metric 10
default via 192.168.100.1 dev internet metric 30
default via 100.100.0.1 dev vswitch0 metric 90
100.100.0.0/16 dev vswitch0 proto kernel scope link src 100.100.3.102
192.168.100.0/24 dev internet proto kernel scope link src 192.168.100.66
root@cvknode102:/# route del -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.100.1 dev internet metric 10
root@cvknode102:/# ip route
default via 100.100.0.1 dev vswitch0
default via 192.168.100.1 dev internet metric 30
default via 100.100.0.1 dev vswitch0 metric 90
100.100.0.0/16 dev vswitch0 proto kernel scope link src 100.100.3.102
192.168.100.0/24 dev internet proto kernel scope link src 192.168.100.66
root@cvknode102:/# route del -net 0.0.0.0 netmask 0.0.0.0 gw 100.100.0.1 dev vswitch0 metric 10
SIOCDELRT: No such process
root@cvknode102:/# route del -net 0.0.0.0 netmask 0.0.0.0 gw 100.100.0.1 dev vswitch0
root@cvknode102:/# ip route
default via 192.168.100.1 dev internet metric 30
default via 100.100.0.1 dev vswitch0 metric 90
100.100.0.0/16 dev vswitch0 proto kernel scope link src 100.100.3.102
192.168.100.0/24 dev internet proto kernel scope link src 192.168.100.66
root@cvknode102:/# ping www.baidu.com
PING www.a.shifen.com (115.239.210.27) 56(84) bytes of data.
64 bytes from 115.239.210.27: icmp_req=1 ttl=55 time=73.5 ms
^C
--- www.a.shifen.com ping statistics ---
2 packets transmitted, 1 received, 50% packet loss, time 1001ms
rtt min/avg/max/mdev = 73.511/73.511/73.511/0.000 ms
root@cvknode102:/#
@echo off
title Kill Student Client
color 0a
:begin
cls
echo *************************************************************
echo 开始执行关闭安卓学生端任务
echo *************************************************************
adb kill-server
adb connect 192.168.85.110
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 1 kill
echo *************************************************************
adb kill-server
adb connect 192.168.85.115
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 2 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.118
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 3 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.107
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 4 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.113
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 5 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.103
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 6 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.109
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 7 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.117
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 8 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.120
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 9 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.106
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 10 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.108
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 11 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.102
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 12 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.119
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 13 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.104
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 14 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.114
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 15 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.112
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 16 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.131
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 17 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.127
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 18 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.130
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 19 kill
echo *************************************************************
adb kill-server
adb connect 192.168.85.124
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 20 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.111
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 21 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.105
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 22 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.121
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 23 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.101
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 24 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.116
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 25 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.125
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 26 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.128
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 27 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.129
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 28 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.126
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 29 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.123
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 30 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.132
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 31 kills
echo *************************************************************
adb kill-server
adb connect 192.168.85.122
adb shell am force-stop com.h3c.cloudclass
echo *************************************************************
echo 32 kills
echo *************************************************************
echo *************************************************************
echo 任务执行完毕!!!
echo *************************************************************
goto begin