|
学校的网得用802.1x认证才能上的。
下面是interfaces和xsupplicant.conf两个文件
# 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 172.17.149.167
netmask 255.255.255.0
network 172.17.149.254
gateway 172.17.149.254
dns-nameservers 202.96.128.166 211.66.184.33
----------------------------------
### GLOBAL SECTION
network_list = all
default_netname = default
startup_command = <BEGIN_COMMAND>ifconfig eth0 allmulti 0.0.0.0 up<END_COMMAND>
first_auth_command = <BEGIN_COMMAND>dhcpcd eth0<END_COMMAND>
reauth_command = <BEGIN_COMMAND>dhcpcd eth0<END_COMMAND>
logfile = /var/log/xsupplicant.log
deny_interfaces = lo, eth1, cipsec0, sit0
### NETWORK SECTION
default
{
type = wired
allow_types = all
identity = <BEGIN_ID>@student.uit.no<END_ID>
eap-peap
{
#root_cert = /etc/1x/cert/demoCA/cacert.pem
root_cert = NONE
chunk_size = 1398
random_file = /dev/urandom
session_resume = yes
allow_types = all # where all = MSCHAPv2, MD5, OTP, GTC, SIM
eap-mschapv2
{
username = <BEGIN_UNAME>2005060531010<END_UNAME>
password = <BEGIN_PASS>0000001<END_PASS>
}
}
}
-------------------
就是不能上网,ping 自己的可以,同网段和外面的就不行了。
账号和密码是正确的,系统没有提示出现什么错误,使用ifconfig查看,显示的信息和我配置的一样,只是多了那个广播地址,因为在winxp下没有这个地址的,所以没有设置,学校也没有给,如果需要的话应该怎样设置才对。 |
|