ubuntu9.10 网络设置

 方式2:网卡静态分配IP地址

$ sudo gedit /etc/network/interfaces 

 

auto eth0         #开机自动激活eth0接口

iface eth0 inet static                        #配置eth0接口为静态设置IP地址
address 192.168.2.113
netmask 255.255.255.0
gateway 192.168.2.254

设DNS
sudo gedit /etc/resolv.conf
nameserver 202.103.224.68

$ sudo /etc/init.d/networking restart 
   # 重启网络
方式3:PPPoE宽带拨号配置
首次拨号:
应用程序–系统工具–终端  打开一终端,输入命令:
sudo pppoeconf
系统开始搜索所有网络接口上的adsl modem,一步步的yes过来。

│ Please enter the username which you usually need for │
│ the PPP login to your provider in the input box below. │
│ If you wish to see the help screen, delete the │
│ username and press OK. │

输入你的宽带帐号。
输入密码。

tip:如果是河南网通提供的PPPoE宽带帐号,此处输入的是加密后的用户名

Would you like to add these addresses automatically to the list of nameservers
in your local /etc/resolv.conf file? (recommended)
是否自动获得DNS,选择是。

Should pppoe clamp MSS at 1452 bytes? If unsure, say yes.
数据包长度的设置,如果跟我一样不确定,选择是

Your PPPD is configured now. Would you like to start the connection at
boot time?
是否启动时自动激活ADSL? 各位看着办吧。

以后,要手工拨号,打开终端,输入命令:
sudo pon dsl-provider

一般情况下,一次拨通后以后登陆ubuntu都会自动拨通上网的了,不用每次都输入命令拨号。

手工断线:
sudo poff

查看连接情况:
plog 和 ifconfig ppp0

ifconfig ppp0 可查询本机的上网IP。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值