操作系统版本:debian8 .
这是我的 /etc/network/interfaces文件.
auto dsl-provider
iface dsl-provider inet ppp
pre-up /bin/ip link set eth0 up
provider dsl-provider
auto eth0
iface eth0 inet static
address 192.168.22.1
netmask 255.255.255.0
dns-server 114.114.114.114
auto wlan0
iface wlan0 inet static
address 192.168.22.2
netmask 255.255.255.0
ifconfig -a 的结果:
eth0 Link encap:Ethernet HWaddr e0:3f:49:57:4b:d1
inet addr:192.168.22.1 Bcast:192.168.22.255 Mask:255.255.255.0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
ppp0 Link encap:Point-to-Point Protocol
inet addr:111.28.46.82 P-t-P:111.28.32.1 Mask:255.255.255.255
wlan1 Link encap:Ethernet HWaddr 00:1a:8c:30:08:b1
BROADCAST MULTICAST MTU:1500 Metric:1
为何是wlan1不是wlan0?