zoukankan      html  css  js  c++  java
  • ubunut14.04 mentohust配置

     

    1.设置网卡eth0的IP地址和子网掩码

    sudo ifconfig eth0 10.162.32.94 netmask 255.0.0.0

    将IP地址改为:10.162.32.94,子网掩码改为:255.0.0.0

    2.Ubuntu IP设置网关

    sudo route add default gw 10.162.32.1

    网关配置 gateway

    3.置DNS 修改

    vi /etc/resolv.conf,在后面添加一行 nameserver 114.114.114.114

    在其中加入nameserver DNS的地址 

    4.重启网络

     sudo /etc/init.d/networking restart

    完成即可

    认证:sudo mentohust


    sudo mentohust -u0900022 -p19780322 -i10.162.32.94 -m255.0.0.0 -g10.162.32.1 -s114.114.114.114 -o202.108.22.5 -b3 -w

    sudo mentohust -u0900022 -p19780322 -o202.108.22.5 -b3 -w

                                    201313704035  081473

    退出时 sudo mentohust -k

    重启网络 /etc/init.d/networking restart


    1配置文件路径:(不用修改,改了也没用)
    /etc/mentohust.conf
    第一步:
    先断开:sudo mentohust -k
     
    sudo ifconfig eth0 10.162.32.94 netmask 255.0.0.0
     
    sudo route add default gw 10.162.32.1
     
    sudo vi /etc/resolv.conf  
     
    nameserver 114.114.114.114
    第二步:
    mentohust -u201407703020 -p906825525 -i10.162.32.97 -m255.0.0.0 -g10.162.32.1 -s114.114.114.114 .o202.108.22.5 -b3 -w
     
     
    修改hosts后要重启服务:
    /etc/init.d/networking restart
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
  • 相关阅读:
    javscript处理XML DOM(待续)
    js设计模式(12)---职责链模式
    js设计模式(11)---命令模式
    Openstack之Swift架构(Cloud Storage)
    javascript —— HTTP头文件详解
    Generator
    promise
    记一些浏览器缓存以前不太熟悉的东西
    hover
    调试手机上网页 (断点 console timeline 选择dom)
  • 原文地址:https://www.cnblogs.com/hanggegege/p/6535314.html
Copyright © 2011-2022 走看看