zoukankan      html  css  js  c++  java
  • Kali 网络配置

    一、配置IP

    编辑/etc/network/interfaces

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5)。
    # The loopback network interface
    auto lo
    iface lo inet loopback
    auto eth0  //指定eth0网卡
    iface eth0 inet static //静态地址(动态获取用dhcp)
    address 192.168.77.133 //IP地址
    netmask 255.255.255.0 //子网掩码
    gateway 192.168.77.254 //默认网关

    二、配置DNS

    编辑/etc/resolv.conf

    nameserver 8.8.8.8
    nameserver 4.4.4.4

    三、重启网络

    #/etc/init.d/networking restart
    或者
    #service networking restart

    拓展

    临时IP地址

    dhclient eth0    //指定eth0网卡dhcp模式
    ifconfig eth0 192.168.1.100/24    //固定IP
    route add default gw 192.168.1.1    //指定网关
    echo nameserver 192.168.1.1 > /etc/resolv.conf    //DNS
  • 相关阅读:
    TweenMax 前台脚本库
    如何使用CSS Sprites技术进行图片合并
    QQ群开放接口
    使用 Hexo 生成一套静态博客网页
    把表插入数据库
    WCF
    SOA
    登录验证
    登录菜单权限验证
    GetJsonByDataTable
  • 原文地址:https://www.cnblogs.com/captainRoB/p/7188339.html
Copyright © 2011-2022 走看看