Visit The New, Modern Unix Linux Community


Static IP address works on Ethernet but not Wireless


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Static IP address works on Ethernet but not Wireless
# 1  
Question Static IP address works on Ethernet but not Wireless

Hi all,

I have literally spent all day trying dozens of different combinations, re-installs and tweaks to try and resolve this problem. I would be EXTREMELY grateful if anyone can help/point me in the right direction.

I am using OpenBSD 4.6 and am trying to connect to my wireless network with a static IP address and router combination (DHCP works fine with both the wireless card and router when it is set up. I am using static IPs as my SOHO Belkin router cannot handle more than about 3 DHCP connections without re-issuing duplicate IP addresses).

In /etc/hostname.bge0 (my Ethernet connection) I have:
Code:
inet 192.168.2.2 255.255.255.0

...which works fine:
Code:
$ ifconfig bge0
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:08:02:d6:57:12
priority: 0
groups: egress
media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause)
status: active
inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255
inet6 fe80::208:2ff:fed6:5712%bge0 prefixlen 64 scopeid 0x1
$ lynx 192.168.2.2
/* loads webpage from Apache */
$ lynx www.google.com
/* loads Google fine */

I then turn bge0 off, and get bwi0 (my wireless interface) on:
Code:
# ifconfig bge0 down
ifconfig bwi0 inet 192.168.2.2 255.255.255.0 nwid NETWORKID wpa wpapsk `wpa-psk NETWORKID PASSWORD`
# ifconfig bwi0
bwi0: flags=8843<UP,BROADCAST, RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:07:40:dc:5d:1b
priority: 4
groups: wlan
media: IEEE802.11 autoselect (OFDM36 mode 11g)
status: active
ieee80211: nwid NETWORKID chan 1 bssid 00:17:3f:b6:bf:f8 39dB wpapsk PRESHAREDKEY wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip
inet6 fe80::207:40ff:fedc:5d1b%bwi0 prefixlen 64 scopeid 0x5
inet 192.168.2.2 netmask 0xffffff00 broadcast 255.255.255.0

Yet to my dismay, the following happens:
Code:
$ lynx www.google.com

Looking up www.google.com first
Looking up www.google.com.com, guessing...
Looking up www.google.com.edu, guessing...
Looking up www.google.com.net, guessing...
Looking up www.google.com.org, guessing...
Can't Access `file://localhost/home/USERNAME/www.google.com'
Alert!: Unable to access document.

lynx: Can't access startfile

Now in /etc/resolv.conf I have:
Code:
nameserver 192.168.2.1 # IP address of router itself

and this works perfectly fine when I connect with the Ethernet cable (when /etc/resolv.conf is a blank file the Ethernet fails). However I am totally confused as to why it would fail with a wireless interface. Ifconfig appears to 'prove' that both connections to the router are successful yet only the Ethernet connection (bge0) works.

I would be really greatful if someone could point out where I've gone wrong and give my a helpful nudge in the right direction. Thanks in advance for any help/tips/pointers Smilie
# 2  
Hi, I noticed that for the wireless interface you are using:
Code:
broadcast 255.255.255.0

instead of
Code:
broadcast 192.168.2.255

 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #719
Difficulty: Medium
Alan Minsky wrote the book Artificial Neural Networks, attacking the work of Frank Rosenblatt, which became the foundational work in the analysis of artificial intelligence applications in machine learning.
True or False?

10 More Discussions You Might Find Interesting

1. Linux

Unable to set static ip address

Hi All, Am using centos 7 in my vmware workstatio with the bridged network. when run the ifconfig cmd its not at all showing the ip address and pls advise how to set static ip address in my linux box. (1 Reply)
Discussion started by: sarathkumar s
1 Replies

2. IP Networking

Free subdomain to my IP Address and Static IP

Hi all, I would need to register a random free subdomain address and associate that to my IP Address. Any suggestion of a good service? Also I don't have a static IP but i remember that there are services that automatically reset the right IP address behind the subdomain but i don't remember... (1 Reply)
Discussion started by: Tameto
1 Replies

3. UNIX for Advanced & Expert Users

C program to detect duplicate ip address if any after assigning ip address to ethernet interface

Hi , Could someone let me know how to detect duplicate ip address after assigning ip address to ethernet interface using c program (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies

4. Red Hat

Purpose of Static IP address through DHCP

Hi All, Could you please explain the purpose of assigning the static IP by using the DHCP Concept. Like by using the clients MAC address we assign the static IP Address. Waiting for your reply. Thanks in Advance. (6 Replies)
Discussion started by: Sharath Kumar
6 Replies

5. Solaris

Get ethernet address

Hi, How do I get ethernet (mac) address of all the interfaces (including the unplumbed interfaces) ? I do not want to use ifconfig -a plumb and unplumb. Looking for some other ways. Even c program will help. I am looking for S9 as well as S10. So dladm also wont work as it is only for S10 ... (2 Replies)
Discussion started by: patjones
2 Replies

6. Hardware

Wireless works, then dies requiring a reboot

Hello, I am having a problem with my wireless. Seems to be a relatively new problem over the past few weeks. I have an intel wireless. It seems like it can be fine for days, then in will quite working to the point a reboot is necessary. It may happen once and be fine, or may happen several times... (0 Replies)
Discussion started by: Narnie
0 Replies

7. Solaris

How to Configure a Static Ip Address

Hello friend, I am new in UNIX, but I want to learn a lot Well I have a problem to try to configure my PC with a static IP Address (IP 192.168.1.39, Mask 255.255.255.0, gateway 192.168.1.1) (DNS 200.48.225.130 and 200.48.225.146). where are the file that I must be change? The SO is Sun Solaris... (15 Replies)
Discussion started by: andresguillen
15 Replies

8. UNIX for Dummies Questions & Answers

How to apply static ip address

Hi there, I have a Debian 5.0 server newly installed. By default, the ip address is given by dhcp. pegase:~# grep '^' /etc/network/interfaces auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet dhcp pegase:~# head -2 /etc/hosts 127.0.0.1 localhost 127.0.1.1 ... (1 Reply)
Discussion started by: chebarbudo
1 Replies

9. IP Networking

How to Achive IP address through MAC(Ethernet) address

Hi sir, i want to make such programe which takes MAC(Ethernet) address of any host & give me its IP address....... but i'm nt getting that how i can pass the MAC address to Frame........ Please give me an idea for making such program... Thanks & regards Krishna (3 Replies)
Discussion started by: krishnacins
3 Replies

10. UNIX for Dummies Questions & Answers

Ethernet Address?

How do I find my ethernet address (HostID) under OS X in the terminal? (2 Replies)
Discussion started by: Dimyas
2 Replies

Featured Tech Videos