寻觅生命中的那一片浅草......

Debian下改IP

下载的是debian-500-i386-netinst.iso,安装好后,默认可以root登录,尝试过用普通用户登录,但输入sudo时说没有这个命令,先用root登录吧
IP是DHCP得到的,不方便,想改为静态的

改IP

# vi /etc/network/interfaces
将iface eth0 inet dhcp
修改为:
iface eth0 inet static
address 192.168.0.13
netmask 255.255.255.0
gateway 192.168.0.159

auto eth0

保存退出

重启网络
# /etc/init.d/networking restart

参考文章:http://blog.chinaunix.net/u1/50685/showart_427694.html

尚无评论

发表评论

2024年五月
« 5月    
 12345
6789101112
13141516171819
20212223242526
2728293031