可是重启就会改回来,如何ubuntu下将他永久的改呢?
kernel说没有这个命令是怎么回事?
ifconfig改了网卡物理地址
- elle29
- 帖子: 101
- 注册时间: 2008-09-09 17:10
- elle29
- 帖子: 101
- 注册时间: 2008-09-09 17:10
Re: ifconfig改了网卡物理地址
该了物理地址,又改了ip地址后,网络就不通了,ping是正常的,可是就是上不了网是怎么回事?
-
- 帖子: 1
- 注册时间: 2008-10-06 12:59
Re: ifconfig改了网卡物理地址
dns设置了没有
vi /etc/network/interfaces
# The primary network interface
#auto eth0
#iface eth0 inet static
# address 192.168.2.3
# netmask 255.255.255.0
# network 192.168.2.0
# broadcast 192.168.2.255
# gateway 192.168.2.1
# # dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers XXX
vi /etc/network/interfaces
# The primary network interface
#auto eth0
#iface eth0 inet static
# address 192.168.2.3
# netmask 255.255.255.0
# network 192.168.2.0
# broadcast 192.168.2.255
# gateway 192.168.2.1
# # dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers XXX
- elle29
- 帖子: 101
- 注册时间: 2008-09-09 17:10
Re: ifconfig改了网卡物理地址
已经知道原因
ifconfig eth0 **.**.**.** netmask 255.255.255.0后再改ip就会不行。
另外想问一下如何把这个修改设为永久呢?
ifconfig eth0 **.**.**.** netmask 255.255.255.0后再改ip就会不行。
另外想问一下如何把这个修改设为永久呢?
- dogfox
- 论坛版主
- 帖子: 5311
- 注册时间: 2006-09-02 14:18
- 来自: 汉桑城
- 联系:
Re: ifconfig改了网卡物理地址
修改
代码: 全选
/etc/init.d/networking
case "$1" in
start)
ifconfig eth0 hw ether mac地址
全世界linux爱好者联合起来 !
- elle29
- 帖子: 101
- 注册时间: 2008-09-09 17:10
Re: ifconfig改了网卡物理地址
ellawu@ellawu-desktop:~$ /etc/init.d/networking
Usage: /etc/init.d/networking {start|stop|restart|force-reload}
Usage: /etc/init.d/networking {start|stop|restart|force-reload}
- dogfox
- 论坛版主
- 帖子: 5311
- 注册时间: 2006-09-02 14:18
- 来自: 汉桑城
- 联系:
Re: ifconfig改了网卡物理地址
全世界linux爱好者联合起来 !