发布网友
共2个回答
热心网友
你说的的是ADSL网络吗
需要安装RP-PPPOE
然后进行ADSL的配置,
执行/usr/sbin/adsl-setup
>>> Enter your PPPoE user name: ——此处输入拨号帐号的用户名
>>> Enter the Ethernet interface connected to the ADSL modem For Solaris, this is likely to be something like /dev/hme0. For Linux, it will be ethn, where n is a number. (default eth0): ——输eth0
>>> Enter the demand value (default no): ——输no
>>> Enter the DNS information here: ——输入DNS服务器的IP地址(视当地运营商的DNS服务器IP而定)
>>> Please enter your PPPoE password: ——输用户口令
>>> Choose a type of firewall (0-2): ——输0
>>> Accept these settings and adjust configuration files (y/n)? ——输y追问无线网怎么连啊。我笔记本里有无线网卡,是不是需要下载无线网卡驱动
追答是的,可以参考下面这篇文章
http://hi.baidu.com/dennis_audrey/item/a74d5ecec606240ec610b248
热心网友
你的linux是装在真机里还是虚拟就里?追问不是。硬盘上就装了个Linux
追答#ifconfig eth0 192.168.0.1或者修改/etc/sysconfig/network-scripts/下的ifcfg-eth0
#vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
HWADDR= 这里是你网卡的物理地址,通常检测到的网卡你就不用输入了
ONBOOT=yes
IPADDR=192.168.1.12
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
GATEWAY= 这里输入你的网关,路由器的IP地址
保存退出
#/sbin/service network restart 如果网卡启动是OK的话就说明IP地址设定成功了。
另外我们可以用ifconfig eth0来显示当前的IP来确认是否设置正确。
利用以下命令:
/etc/init.d/network reload 命令或service network [命令] 重新导入该文件,实现网络启动