以后,要手工拨号,打开终端,输入命令:
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 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
只要看见eth0就说明网卡设备设别出来了,eth0就是无线网卡设备的名字了,至于其他,暂不研究。
2.确认无线网卡的型号
$ lspci
......
00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network
Connection (rev 03)
......
上面的Intel Corporation 82567LM Gigabit Network Connection (rev 03)就是无线网卡芯片
的型号了。