我在笔记本电脑上赢得了7个操作系统,在vmware中获得了linux(debian 7)。我已经将debian设置为与网络建立桥接连接。我通过wifi连接,并且如果重新启动wifi调制解调器,则debian的本地ip地址改变,例如,从192.168.0.106
到192.168.0.102
。有没有办法设置本地IP地址,所以它将始终保持不变?
由于
答案 0 :(得分:1)
答案 1 :(得分:0)
好的,找到了解决方案
基本上是对于debian
1) vim /etc/network/interfaces
2) comment/delete this line iface eth0 inet dhcp
3) add this
iface eth0 inet static
address 192.168.1.106 # this is the ip address you want to assign
netmask 255.255.255.0
network 192.168.1.0