首页 > 其他 > 详细

kali网卡配置文件

时间:2018-03-04 18:59:27      阅读:317      评论:0      收藏:0      [点我收藏+]

kali的网卡配置文件为/etc/network/interfaces 下面定义了lo、eth0和eth1的配置

auto lo # auto表示开机启动该网卡设备 
iface lo inet loopback 

auto eth0 # 使用dhcp分配地址 
iface eth0 inet dhcp 
iface eth0 inet6 auto 

auto eth1 # 使用静态地址
iface eth1 inet static a
    ddress 192.168.1.2/24 
    gateway 192.168.1.1 

iface eth1 inet6 static 
    address fec0:0:0:1::2/64 
    gateway fec0:0:0:1::1

 然后重启网络

service networking restart

或者重启某个网卡

ifdown eth1
ifup eth1

 

kali网卡配置文件

原文:https://www.cnblogs.com/f-ck-need-u/p/8505405.html

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