针对魔鬼训练营第2章 BT5虚拟机IP地址配置

1,由于我的BT5 动态分配的 IP地址一直是10.10.10.130,所以需要重新配置成10.10.10.128 

BT5 ip 参数永久修改

如果只是ifconfig eth0直接修改,只修改了IP,bcast mask没有修改,而且不是永久分配,所以查找资料,步骤如下.

2. 参考   Backtrack 5 GNOME IP设置 - BackTrack的日志 - 网易博客 http://btlinux.blog.163.com/blog/static/20742922620125298237628/

step1、
Note:copy 有风险,使用需谨慎;如果直接从这里贴进去bt5的ip设置文件,有可能会出现提示配置不对的情况;

[email protected]:~# vi /etc/network/interfaces    编辑IP 地址,除了eth0,其他都需要注释掉(必须)

auto eth0
#iface eth0 inet dhcp                          
iface eth0 inet static                         用dhcp分配就只需要这一句就可以了
address 10.10.10.128                           IP
netmask 255.255.255.0                    子网掩码
network 10.10.10.0                          网络地址
broadcast 10.10.10.255                    广播地址

#auto eth1
#iface eth1 inet dhcp


#auto eth2
#iface eth2 inet dhcp


#auto ath0
#iface ath0 inet dhcp


#auto wlan0
#iface wlan0 inet dhcp

step2、 [email protected]:~#  /etc/init.d/networking restart   重启网络

若是输入ifconfig 不会出现eth0 ,则输入命令

ifconfig eth0 down

ifconfig eth0 up

最后的问题是书本p58 ifconfig 中对IP配置的是eth2,我配置的是eth0,不知道会不会有影响,但是不管是eth2 etho配置方法都同上,只有继续阅读,以观后续。

阅读(494)| 评论(0)

相关文章:

  • 2021-07-18
  • 2021-06-01
  • 2021-08-28
  • 2021-07-19
  • 2021-05-29
  • 2021-09-23
猜你喜欢
  • 2022-12-23
  • 2021-09-09
  • 2021-08-15
  • 2021-06-22
  • 2022-02-07
  • 2022-01-07
  • 2022-12-23
相关资源
相似解决方案