QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1725|回复: 0

linux下的无线实验求教

[复制链接]
发表于 2007-7-4 09:50:31 | 显示全部楼层 |阅读模式
首先我的硬件环境是:
2块usb网卡: 1个11Mb,装了zd1201firmware 另一个是54mb装了zd1211firmware
2台主机: 一台xp(使用54Mb) 一台debian4(使用11Mb)
驱动只要apt一下就可以了!

剩下的就是实验了

实验目的1:debian和xp机对机链接.
实验目的2:debian当ap, xp连接到debian4.
实验目的3: xp当ap, debian4链接到xp.

由于小弟对无线网络使用经验十分少,所有很多不懂的地方.下面来说说我的问题吧,还请各位高手指点一下!

实验目的1: xp下已经设置ip,连接方式是计算机对计算机.但是在debian4下却不知道怎么设置他为机对机模式.

实验目的2:debian怎么做ap.我查了资料说需要安装ap软件.由于我的网卡驱动不是wap的是用zd的.这一步还没开始做,只是猜想.

实验目的3:这个是我今天做的第一个实验.xp已经成为ap,debian4也能连上xp,上网,访问共享都可以了.但有一个问题我搞了一晚上,就是每次debian插上usb无线网卡时.都要打开图形的网络设置工具,给wlan0确定一下,才能正常连接.按理说设置好了就可以了.但每次重新插上时我用ifconfig检查了wlan0都是没有设置ip的.而且也ping不到xp,于是我用ifconfig wlan0 192.168.1.2 netmask 255.255.255.0 可以ping到xp了.但是没有办法设置网关.以前我用的slackware里ifconfig后面可以直接gw 网关地址的.debian4下却不行...所有最后还是没办法只能打开图形网络设置工具.点配置wlan0.开了后上次设置信息也都在...只要确定一下..无线网卡就连接上了....问题虽然能马马虎虎解决,但小弟想用命令解决这个问题.高手们帮我看看.指点一下谢谢了.下面是我的/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

# The primary network interface
allow-hotplug eth1
iface eth1 inet static
network 192.168.0.0
broadcast 192.168.0.255
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 202.106.196.115
dns-search accelicon.bj.com
address 192.168.0.3
netmask 255.255.255.0
gateway 192.168.0.2

auto wlan0
iface wlan0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
wireless-essid WLAN_AP


iface dsl-provider inet ppp
pre-up /sbin/ifconfig start up # line maintained by pppoeconf
provider dsl-provider

auto start

iface start inet manual

iface eth2 inet dhcp

auto eth2


auto eth1


小弟在这里先谢谢了.希望大家一起来研究一下.我想这个肯定对很多像我这样的菜鸟是有帮助的!谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-2 16:43 , Processed in 0.070679 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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