Kali Linux网络配置

https://github.com/Keybird0/Kali-learning

0x01 网络配置

1、临时网络配置

  • dhclinet eth0   #用dhcp协议来配置网络接口
  • ifconfig            #查看本机IP
  • ifconfig eth0 192.168.1.1/24    #配置本机IP地址
  • route add default  gw 192.168.1.1/24 #设置默认路由
  • netstat -nr     #显示路由信息路由表,拒绝显示别名,能以数字形式显示的全部数字形式显示
  • route add -net 172.14.0.0/24 gw 192.168.0.1 eth0 #添加路由

g2、固定

  • //DNS  # vi /etc/resolv.conf

  domain

  nameserver 114.114.114.114

  nameserver 8.8.8.8

  • //配置静态网卡 #vi etc/network/interfaces

  

原文地址:https://www.cnblogs.com/Gouwa/p/13972608.html