1、在/etc/sysconfig/static-routes里添加 static-routes的写法是any net 192.168.0.0/16 gw 192.168.0.1 any net 192.168.3.0/24 gw 192.168.3.254 any net 10.250.228.128 netmask 255.255.255.192 gw 10.250.228.129
检查vi /etc/init.d/network # Add non interface-specific static-routes. if [ -f /etc/sysconfig/static-routes ]; then
2、在route-eth0里添加 在/etc/sysconfig/network-scripts/route-eth0 添加10.203.166.0/25 via 10.203.166.1 dev eth0
1.uname -a | awk '{print system is $1, hostname is $2, kernel is $3}' 2. #!/bin/sh sum=0 max=$1 min=$1 all=$# while [ $# -ne 0 ] do sum=$(($sum + $1)) if [ $max -lt $1 ];then max=$1 else min=$1 fi shift done echo sum is $sum average=$(($sum/$all)) echo average is $average echo max is $max echo min is $min
3. #!/bin/sh for n in $(seq 1 $1 ) do mun=$(( $n * $n )) echo $mun done
4. #!/bin/sh for i in {1..50} do mkdir user${i} cd user${i} touch Myfile${i}-{1..10} cd .. chmod 754 user${i} done