Config static ip in debian OS
2010-04-21, Posted in Configure | 9 回复
Config static ip in debian,There are two files need to be modified,the one is “/etc/network/interfaces”,the other is “/etc/resolv.conf”./etc/network/interfaces used to config IP,netmask,gateway and so on,/etc/resolv.conf used to config DNS server address。
these are two examples:
#/etc/network/interfaces # The loopback network interface auto lo iface lo inet loopback #iface eth0 inet dhcp # The primary network interface auto eth0 iface eth0 inet static address 192.168.1.180 network 192.168.1.0 netmask 255.255.255.0 gateway 192.168.1.1
#/etc/resolv.conf nameserver 202.106.0.20 nameserver 202.106.195.68 nameserver 202.106.46.151 search localhost
Note,after modification,please type following command to restart your network.
#/etc/init.d/networking restart
相关日志
- (中文) 重设置debian 6系统中mysql5.1的root密码
- (中文) Debian6下安装Mysql,Ubuntu下适用
- (中文) -bash: /bin/rm: Argument list too long解决办法
- Add a User on Ubuntu Server Or Debian Server
- (中文) debian或者Ubuntu添加虚拟网卡
- (中文) Debian安装配置Iptables防火墙 (3)
- NO_PUBKEY AED4B06F473041FA
- (中文) Debian从lenny升级到squeeze及常用的源 (1)
- (中文) Debian32位Linux系统大内存支持 (1)
- How to usage SNMP in debian
April 21st, 2010 on 16:15:43
来关注下你的博客
学习下技术
April 21st, 2010 on 16:26:32
呵呵,共同学习,不知道你的房子的事情怎么样了
April 22nd, 2010 on 14:13:12
再来支持下
April 22nd, 2010 on 18:13:20
过来溜溜,支持了。
April 23rd, 2010 on 14:50:49
总体来说是不错的,不过现在火狐下有点错位的,还有猛兄,在你的博客里点回复的昵称,不过去其它人的博客呀,报错呢
在你的博客里点回复的昵称,不过去其它人的博客呀,报错呢
这是什么意思哦,有点不明白哦
April 24th, 2010 on 22:27:22
比如,在我网站上点击“liuzm ”,就会链接到你的网站上,但实际却是提示,“无法找到该用户信息!!”
April 24th, 2010 on 09:38:48
周六快乐,我来支持下
April 24th, 2010 on 22:54:45
噢…发现看不懂技术性文章了`~ -_-|||
April 24th, 2010 on 22:58:50
哦,看来是没有写明白呀,请包含,哈哈,这个文章主要是自己作备忘的