赞
踩
外网ip 10.7.23.19 、内网ip 10.2.7.128为例
vi /etc/sysconfig/network-scripts/ifcfg-eno1
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eno1
UUID=01b7c08d-b55b-4c3d-b732-2f1ebf256588
DEVICE=eno1
ONBOOT=yes
IPADDR=10.7.23.19
PREFIX=24
GATEWAY=10.70.23.254
重启网络:systemctl restart network
测试:ping baidu.com
vi /etc/sysconfig/network-scripts/ifcfg-eno2
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eno2
UUID=a2abbeb8-4e9c-4634-a3a4-495680f1e273
DEVICE=eno2
ONBOOT=yes
IPADDR=10.2.7.128
NETMASK=255.255.0.0
重启网络:systemctl restart network
测试:ping 10.2.7.128
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。