各种系统的网卡配置

fedora重启修改密码

https://docs.fedoraproject.org/en-US/quick-docs/reset-root-password/

https://forums.fedoraforum.org/showthread.php?92959-cant-reset-root-passwd-Authentication-token-lock-busy
mount -o remount,rw /

debian重启修改密码

https://www.vultr.com/docs/reset-the-root-password-on-debian

red hat修改ip配置

https://blog.csdn.net/njdxtj/article/details/46595221

red hat重启网卡

/etc/init.d/network restart

debian修改ip配置

vi /etc/network/interfaces

debian重启网卡

service networking restart
/etc/init.d/networking restart

centos修改ip配置

方法一

1
vim /etc/sysconfig/network-scripts/ifcfg-eth0

方法二

1
nmtui

ubuntu修改ip配置

vi /etc/network/interfaces

ubuntu重启网卡

/etc/init.d/networking restart

如果这条提示not found
dhclient eth0

ubuntu 18.04

vim /etc/netplan/50-cloud-init.yaml
netplan apply

修改dns配置上网

https://www.techrepublic.com/article/how-to-set-dns-nameservers-in-ubuntu-server-18-04/
vim /etc/netplan/50-cloud-init.yaml

添加nameserver,然后重启网卡

查看linux系统位数

getconf LONG_BIT
32
64

ssh连接到旧设备

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc root@10.246.95.136