ubuntu网络设置详解
p 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. 方式4:通过无线局域网接入互联网 要求安装有无线局域网卡并已驱动 1.插入无线网卡 查看一下网络设置,看看是否多出来了两个设备 $ ifconfig eth0 Link encap:Ethernet HWaddr 00:24:7e:14:a9:a8 inet6 addr: fe80::224:7eff:fe14:a9a8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:11998024 errors:0 dropped:0 overruns:0 frame:0 TX packets:13667166 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:1069420740 (1.0 GB) TX bytes:3776606487 (3.7 GB) Memory:fc200000-fc220000 eth0:avahi Link encap:Ethernet HWaddr 00:24:7e:14:a9:a8 inet addr:169.254.7.73 Bcast:169.254.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Memory:fc200000-fc220000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:66657 errors:0 dropped:0 overruns:0 frame:0 TX packets:66657 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:6372151 (6.3 MB) TX bytes:6372151 (6.3 MB) ppp0 Link encap:Point-to-Point Protocol inet addr:123.10.130.147 P-t-P:123.10.128.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:149828 errors:0 dropped:0 overruns:0 frame:0 TX packets:122796 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:150170347 (150.1 MB) TX bytes:16349467 (16.3 MB) wlan0 Link encap:Ethernet HWaddr 00:22:fa:94:48:56 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) wmaster0 Link encap:UNSPEC HWaddr 00-22-FA-94-48-56-00-00-00-00-00-00-00-00- 00-00 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 ca |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |