Sponsored Content
Operating Systems BSD FreeBSD - Wireles Ad-hoc Networking with IP alias Post 302531548 by Govindaraj on Friday 17th of June 2011 06:52:56 AM
Old 06-17-2011
FreeBSD - Wireles Ad-hoc Networking with IP alias

Hello Friends,
I'm a newbie to FreeBSD. Trying to implement a IEEE paper : Energy consumption models for ad-hoc terminals (Computers).

The test setup with 3 Computers & Wireless NIC goes as follows:

Transmitter (A) --------------- Forwarder (B) -------------- Receiver (C)
10.0.1.1/24 ------- 10.0.1.2/24 (10.0.2.2/24) ---------- 10.0.2.1/24

Here Laptop B acts as a forwarder. It has 1 wireless NIC. I use ip alias to create a virtual NIC to forward the data to receiver. But the Laptop B is not forwarding the packet.

My /etc.rc.conf file is as follows:

Laptop A (Transmitter):

Code:
wlans_ath0="wlan0"
create_args_wlan0="wlanmode adhoc"
ifconfig_wlan0="inet 10.0.1.1 netmask 255.255.255.0 ssid energy"

Laptop B (Forwarder):

Code:
wlans_ath0="wlan0"
create_args_wlan0="wlanmode adhoc"
ifconfig_wlan0="inet 10.0.1.1 netmask 255.255.255.0 ssid energy"
ifconfig_wlan0_alias0="inet 10.0.2.2  netmask 255.255.255.0 ssid energy"


Laptop C (Receiver):

Code:
wlans_ath0="wlan0"
create_args_wlan0="wlanmode adhoc"
ifconfig_wlan0="inet 10.0.2.1 netmask 255.255.255.0 ssid energy"

Can some one help me, why the Laptop B is not forwarding the packets? Thanks in advance.

Last edited by pludi; 06-17-2011 at 07:58 AM..
 

6 More Discussions You Might Find Interesting

1. IP Networking

Wireles Lan in SunOS 10???

Hi, i´d like to know is if posible to configure a Wireless Lan in Sun OS 10.0?? I´m trying but no results... Please, how could i get internet acess using a Wireless Lan or a sample lan, whith IP protocol? Maybe my Wireles Card Lan don´t has support driver for UNIX(DLINK 520+PCI Adapter), but... (1 Reply)
Discussion started by: marpin
1 Replies

2. Solaris

Wireles Lan...

Someone know how to configure a Wireles NetWork Card (PCI Adapter) on Solaris 10 OS? After install the correct driver, what must i have to do? I´m a client desktop and i´m obrigatory to put an IP to get conection whith Server... Thanks... Help me please... (0 Replies)
Discussion started by: marpin
0 Replies

3. Shell Programming and Scripting

Doubt in Ad-hoc reports and Mail

Hi all, 1. How to create ad-hoc reports using Shell Scripts? 2. How to create Shell Scripts for sending email to alert users for erroneous records? Thanks in advance. (1 Reply)
Discussion started by: sgunasekaran
1 Replies

4. Solaris

Looking for a compartable Solaris wireles router

I have SURFboard SB6120 Modem which is compartable with Unix and I would like a wireless router with comparable speed and security. I have been looking at the Linksys wireless WRT610N model but I don't know if it is compartable with Solaris. I have been researching but I have not come across any... (2 Replies)
Discussion started by: Tenyhwa
2 Replies

5. UNIX for Dummies Questions & Answers

Defining an alias FreeBSD

I have defined this alias as quick way to find out which mount point to use for a USB drive after inserting it: # alias da='dmesg | grep da | grep MB' However, when invoking it, it states the following: # da da: Command not found. Can someone explain what is the issue here and how it can be... (3 Replies)
Discussion started by: figaro
3 Replies

6. AIX

Networking Issues - Opera, FreeBSD, AIX

(1) Hi, Am working on FreeBSD 7.4/i386 and installed Opera 11.01 through ports collection manually... But when I run first time am getting "opera: cannot connect X server. Error: Unknown error: 0" What is this error all about???? Please help me to sort out this issue!!! (2) Hi, currently am... (12 Replies)
Discussion started by: Priya Amaresh
12 Replies
AN(4)							   BSD Kernel Interfaces Manual 						     AN(4)

NAME
an -- Aironet Communications 4500/4800 wireless network adapter driver SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file: device an device wlan Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): if_an_load="YES" DESCRIPTION
The an driver provides support for Aironet Communications 4500 and 4800 wireless network adapters and variants, including the following: o Aironet Communications 4500 and 4800 series o Cisco Aironet 340 and 350 series o Xircom Wireless Ethernet Adapter Support for these devices include the ISA, PCI and PCMCIA varieties. The Aironet 4500 series adapters operate at 1 and 2Mbps while the Aironet 4800 series and Cisco adapters can operate at 1, 2, 5.5 and 11Mbps. The ISA, PCI and PCMCIA devices are all based on the same core PCMCIA modules and all have the same programming interface, however unlike the Lucent WaveLAN/IEEE cards, the ISA and PCI cards appear to the host as normal ISA and PCI devices and do not require any PCCARD support. The PCMCIA Aironet cards require PC Card support, including the kernel pccard(4) driver. ISA cards can either be configured to use ISA Plug and Play or to use a particular I/O address and IRQ by properly setting the DIP switches on the board. (The default switch setting is for Plug and Play.) The an driver has Plug and Play support and will work in either configuration, however when using a hard-wired I/O address and IRQ, the driver configuration and the NIC's switch settings must agree. PCI cards require no switch settings of any kind and will be automatically probed and attached. All host/device interaction with the Aironet cards is via programmed I/O. The Aironet devices support 802.11 and 802.3 frames, power manage- ment, BSS (infrastructure) and IBSS (ad-hoc) operation modes. The an driver encapsulates all IP and ARP traffic as 802.11 frames, however it can receive either 802.11 or 802.3 frames. Transmit speed is selectable between 1Mbps, 2Mbps, 5.5Mbps, 11Mbps or "auto" (the NIC automati- cally chooses the best speed). By default, the an driver configures the Aironet card for infrastructure operation. For more information on configuring this device, see ifconfig(8). DIAGNOSTICS
an%d: init failed The Aironet card failed to become ready after an initialization command was issued. an%d: failed to allocate %d bytes on NIC The driver was unable to allocate memory for transmit frames in the NIC's on-board RAM. an%d: device timeout The Aironet card failed to generate an interrupt to acknowledge a transmit command. SEE ALSO
altq(4), arp(4), miibus(4), netintro(4), wlan(4), ancontrol(8), ifconfig(8) HISTORY
The an device driver first appeared in FreeBSD 4.0. AUTHORS
The an driver was written by Bill Paul <wpaul@ee.columbia.edu>. BSD
July 16, 2005 BSD
All times are GMT -4. The time now is 06:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy