|
发表于 2006-2-7 17:41:21
|
显示全部楼层
我的/etc/network/interfaces
========================
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
# The primary network interface
auto eth0
iface eth0 inet static
address 10.0.0.1
netmask 255.255.255.0
# gateway 10.0.0.138
iface dsl-provider inet ppp
provider dsl-provider
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
======================================
地址是为了访问我的modem方便设的,10.0.0.138是我的modem的地址,如果用猫拨号做路由,取消网关的注释即可,在用debian拨号的时候,注释掉gateway那一行
pon-dslprovider拨号
另外,可以这样:
sudo rm -rf /etc/ppp/peers/provider
sudo ln -sf /etc/ppp/peers/dsl-provider /etc/ppp/peers/provider
这样之后,就可以更简便的用pon拨号,poff断线了,我就这么干的,只拨号的话删了那个文件似乎没有不良影响:) |
|