首页 > 其他 > 详细

NAT永久静态ip设置

时间:2018-01-24 23:52:00      阅读:355      评论:0      收藏:0      [点我收藏+]

NAT永久静态IP

DEVICE=eth0
HWADDR=00:0c:29:71:07:09
TYPE=Ethernet
UUID=fcd2e730-c29d-4335-94d9-059fcc775136
ONBOOT=yes
NM_CONTROLLED=yes

#NAT
BOOTPROTO=static
IPADDR=192.168.70.131
GATEWAY=192.168.70.2
DNS1=192.168.70.2

#HostOnly
#IPADDR=192.168.159.131
#NETMASK=255.255.255.0
#GATEWAY=192.168.159.2

把设备名称恢复为 eth0

/etc/udev/rules.d/70-persistent-net.rules
/etc/sysconfig/network-scripts/ifcfg-eth0

配置环境变量:

    /etc/profile
    
    JAVA_HOME=/opt/jdk1.8.0_121
    MAVEN_HOME=/opt/apache-maven-3.5.0
    CATALINA_HOME=/opt/apache-tomcat-7.0.75
    PATH=/opt/jdk1.8.0_121/bin:/opt/apache-tomcat-7.0.75/bin:/opt/apache-maven-3.5.0/bin:$PATH
    CLASSPATH=.:/opt/jdk1.8.0_121/lib/dt.jar:/opt/jdk1.8.0_121/lib/tools.jar
    export JAVA_HOME PATH CLASSPATH CATALINA_HOME MAVEN_HOME

NAT永久静态ip设置

原文:https://www.cnblogs.com/sidekick/p/8343799.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!