ifconfig的结果(最后面多了一个tun):
代码: 全选
eth0 Link encap:以太网 硬件地址 00:16:36:ef:dc:9b
inet 地址:192.168.1.88 广播:192.168.1.255 掩码:255.255.255.0
inet6 地址: fe80::216:36ff:feef:dc9b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:2116 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:2496 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:1537758 (1.4 MB) 发送字节:362026 (353.5 KB)
中断:18
lo Link encap:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 跃点数:1
接收数据包:841 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:841 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:42225 (41.2 KB) 发送字节:42225 (41.2 KB)
tun Link encap:未指定 硬件地址 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet6 地址: 2001:5c0:8fff:ffff::115/128 Scope:Global
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1280 跃点数:1
接收数据包:51 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:32 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:500
接收字节:3720 (3.6 KB) 发送字节:2520 (2.4 KB)
cat /etc/network/interfaces的结果,里面没有tun之类的东西
代码: 全选
auto lo
iface lo inet loopback
auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider
iface eth0 inet static
address 192.168.1.88
netmask 255.255.255.0
gateway 192.168.1.1
auto eth0