linux桥接网络配置

 一、 在文件系统里找到/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
  iface eth0 inet static //配置eth0使用默认的静态地址
  address 192.168.1.133  //设置eth0的本地IP地址
  netmask 255.255.255.0  //配置eth0的子网掩码
  gateway 192.168.1.1 //配置当前主机的默认网关
二、配置DNS
  Kali Linux的DNS服务器地址使用文件“/etc/resovl.conf”进行配置
 在resolv.conf中的格式如下:
  # Generated by NetworkManager         search localdomain         nameserver 192.168.1.133 //eth0的ip地址
        domain
        nameserver 8.8.8.8
        nameserver 102.54.16.2
三、重启网络
  在之前的步骤完成后保存,然后在终端里边重启网络,命令如下:/etc/init.d/networking restart
Kali Linux的DNS服务器地址使用文件“/etc/resovl.conf”进行配置
    四、配置桥接模式
linux桥接网络配置linux桥接网络配置
添加地址如上