通过 基础命令配置 网络
# 指定网卡 添加 IP
ip addr add 172.25.1.2 dev eth1
ip addr add 172.25.1.25 dev eth2
ip addr add 172.25.1.14 dev eth3
# 创建由内核管理的本地链路
ip route add 172.25.1.0/24 dev eth1 proto kernel scope link src 172.25.1.2
ip route add 172.25.1.0/24 dev eth2 proto kernel scope link src 172.25.1.25
ip route add 172.25.1.0/24 dev eth3 proto kernel scope link src 172.25.1.14
# 添加本地链路网关
ip route add 172.25.1.1 dev eth3 scope link
ip route add 172.25.1.1 dev eth2 scope link
ip route add 172.25.1.1 dev eth1 scope link
# 添加默认路由
ip route add default via 172.25.1.1 dev eth1
# ip route add 可以 缩写成 ip r a
网络调优
查看 pci 所对应网卡信息
虚拟网卡