首页 > 其他 > 详细

基于Debian的Kali设置外网IP

时间:2014-01-23 19:55:41      阅读:492      评论:0      收藏:0      [点我收藏+]

基于Debian的Kali Linux。对其他的Linux系统基本都是一样的~

首先:

1 vi /etc/network/interfaces


将其中的eth0网卡设置为static模式
修改为

1 allow-hotplug eth0  #修改前
2 audo eth0  #修改后


将修改为:

1 iface eth0 inet dhcp  #修改前
2 iface eth0 inet static  #修改后


下面是写上自定义的IP地址及网关,子网掩码。

1 address 192.168.1.101
2 netmask 255.255.255.0
3 gateway 192.168.1.1


其中iface eth0 inet dhcp的意思是动态获取IP。
iface eth0 inet static的意思是静态获取IP。

接下来修改DNS。

1 vi /etc/resolv.conf
2 nameserver 8.8.8.8
3 nameserver 8.8.4.4


重启网卡或者重启计算机。

1 /etc/init.d/networking restart


完成修改。

基于Debian的Kali设置外网IP

原文:http://www.cnblogs.com/str0ng/p/3530866.html

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