本小区上网是静态192.168.0.0/24网段上网的,链路提供商为广州电信,DNS为61.144.56.100。
网管网
1.打开终端配置接口(也即网口)地址并保存!
# vi /etc/network/interfaces
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1 网管论坛bbs_bitsCN_com
#如果是动态DHCP获得更快,只需设置如下
#auto eth0
中国网管论坛bbs.bitsCN.com
2.设置DNS服务器并保存!
# vi /etc/resolv.conf
nameserver 61.144.56.100 中国网管论坛bbs.bitsCN.com
3.重启网络,如下:
# /etc/init.d/networking restart
* Reconfiguring network interfaces... There is already a pid file /var/run/dhclient.eth1.pid with pid 5444
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit 网管bitscn_com
4.上网测试!成功。
【转自】
阅读(857) | 评论(1) | 转发(0) |