*cat /etc/passwd |cut –f 1 –d: *查看linux服务器用户
*df –hl * 查看硬盘情况
*bash re.local *运行rc.local这个脚本 source rc.local也有效果
*iptables -L -n -t mangle | grep 137.192 *查看137.192这个IP的路由状况 有的话就说明有路由
调整
*vi /root/bash/table/flush-140.sh *调整设备上指向140段路由
- iftop -i eth1* 监测eth1网卡流量
*vi /root/bash/table/flush-140.sh *修改iptables到140路由
/sbin/iptables -t mangle -I PREROUTING -s 10.255.136.103/32 -j MARK --set-mark 140
*/sbin/iptables -t mangle -I PREROUTING -s 10.255.136.89/32 -j MARK --set-mark 140
bash /root/bash/table/flush-140.sh *执行脚本
&
*/sbin/iptables -t mangle -I PREROUTING -s 10.255.136.116/32 -j MARK --set-mark 140 * 接配置路由命令进行修改
上述命令中的 –I 意为写入路由 –D 意为舍弃或者取消路由
PP为命令行复制 Y为粘贴
PREROUTING则是将路由置顶,避免被刷
/root/bash/table/allSecLine-up.sh切换到备线
/root/bash/table/allSecLine-down.sh回退
所有直播楼层网关及直播出口都可用,根据故障规模切换
*route –n *查看路由表
*iptables -L -n -t mangle *