Debian 升级

一,Debian 9 升 10 国内 cat << EOF >/etc/apt/sources.list deb http://mirrors.aliyun.com/debian buster main contrib non-free deb http://mirrors.aliyun.com/debian buster-updates main contrib non-free deb http://mirrors.aliyun.com/debian-security buster/updates main contrib non-free EOF 国外 cat << EOF >/etc/apt/sources.list deb http://deb.debian.org/debian buster main contrib non-free deb http://deb.debian.org/debian buster-updates main contrib non-free deb http://deb.debian.org/debian-security buster/updates main contrib non-free EOF sed -i "s/ stretch / buster /g" /etc/apt/sources.list.d/* apt update --fix-missing && apt upgrade -y apt full-upgrade -y && apt --purge autoremove -y && apt autoclean -y 二,Debian 10 升 11 国内 cat << EOF >/etc/apt/sources.list deb http://mirrors.aliyun.com/debian bullseye main contrib non-free deb http://mirrors.aliyun.com/debian bullseye-updates main contrib non-free deb http://mirrors.aliyun.com/debian bullseye-backports……

给国外/国内虚拟机DD debian 系统

查看虚拟机的ip跟其上级ip ip route show 把查到的ip填入最下面的dd命令里。 安装DD运行所需的依赖 当前系统为centos时 yum install -y xz openssl gawk file 当前系统为debian时 apt install -y xz-utils openssl gawk file DD命令 国内 bash <(wget --no-check-certificate -qO- http://moeclub.org/attachment/LinuxShell/InstallNET.sh | sed 's/8.8.8.8/119.29.29.29/') \ -d 9 -v amd64 -a \ -p password \ --mirror "http://mirrors.aliyun.com/debian/" \ --ip-addr 192.168.1.2 \ --ip-mask 255.255.255.0 \ --ip-gate 192.168.1.1 国……

终端内用于查看网络情况的指令

列出适配器名称 ifconfig | grep -E -o "^[a-z0-9]+" | grep -v "lo" | uniq 查看端口占用 netstat -anp|grep 5390 或 lsof -i:5390 查看进程pid ps -ef | grep nginx 根据pid查看端口占用 netstat -nap | grep 10191 查看连接数 netstat -n | awk '/^tcp/ {++state[$NF]} END {for(key in state) print key,"t",state[key]}' 查看tcpfastopen grep '^TcpExt:' /proc/net/netstat | cut -d ' ' -f 87-92 | column -t 入口流量信息统计GB (ens18) echo "$(awk -v eth=ens18 -F'[: ]+' '{if……

RouterOS电信移动聚合实例

for routeros 7.x 实例宽带接入: 电信(双拨) 移动 一,建立vrrp用于拨号 提前摸清ros里的网口顺序,实例中,电信插eth1口,移动插eth2口,桥接接口名为bridge1,给bridge1分配个ip,比如10.0.0.2,就是ros地址。 /interface vrrp add name=vrrp1 interface=eth1 vrid=1 /interface……