QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1240|回复: 1

求高手看一下这样配置对吗

[复制链接]
发表于 2006-5-21 20:39:48 | 显示全部楼层 |阅读模式
学校的网得用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下没有这个地址的,所以没有设置,学校也没有给,如果需要的话应该怎样设置才对。
发表于 2006-5-24 18:34:34 | 显示全部楼层
路由有没有问题, 对比win下看一下resolv.conf
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-7-3 14:40 , Processed in 0.069177 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表