root@Ocommon:~# cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface #auto ens32 iface ens32 inet static address 1.1.1.2 netmask 255.255.255.0 gateway 1.1.1.1 #auto ens33 iface ens33 inet static address 2.2.2.2 netmask 255.255.255.0 gateway 2.2.2.1 #auto ens34 iface ens34 inet static address 3.3.3.2 netmask 255.255.255.0 gateway 3.3.3.1 #auto ens35 iface ens35 inet dhcp
cat >/etc/init.d/configNetwork<<EOF11 ifup ens32 ifup ens33 ifup ens34 ifup ens35 route add -net 1.1.1.0 gw 1.1.1.1 route add -net 2.2.2.0 gw 2.2.2.1 route add -net 3.3.3.0 gw 3.3.3.1 route del default gw 1.1.1.1 route add default gw 192.168.137.2 dev ens35 EOF11 chmod 111 /etc/init.d/configNetwork sed -i '/exit 0/i\bash /etc/init.d/configNetwork' /etc/rc.local
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有