You are not logged in.

#1 2011-02-04 20:19:52

phoenixpb
Member
Registered: 2011-01-24
Posts: 15

(solved) hostapd no internet in the server

this is my config
laptop & android phone <----> wlan0 (hostapd with br0) <----> server <----> eth0 <----> rooter <----> internet

(wlan0 is an eth5k card madwifi)
(rooter is 192.168.0.1 give 192.168.0.11 to eth0)

rc.conf
eth0="eth0 up"
wlan0="wlan0 up"
br0="br0 192.168.1.2 netmask 255.255.255.0 up"
INTERFACES=(lo eth0 wlan0 br0)

bridges
bridge_br0="eth0 wlan0"
BRIDGE_INTERFACES=(br0)

hostpad.conf
interface=wlan0
bridge=br0
driver=nl80211
bla bla

all this work very well i can browse internet from my laptop and from my phone
but i haven't access to internet with the server

surely i miss comething big_smile
thanks for your help

Last edited by phoenixpb (2011-02-05 13:33:00)

Offline

#2 2011-02-04 23:50:37

NSB-fr
Member
Registered: 2010-01-23
Posts: 45

Re: (solved) hostapd no internet in the server

Hi,

Incorrect gateway setting in rc.conf ?


Carpe Diem

Offline

#3 2011-02-05 09:38:53

phoenixpb
Member
Registered: 2011-01-24
Posts: 15

Re: (solved) hostapd no internet in the server

gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

thanks

Offline

#4 2011-02-05 09:54:51

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: (solved) hostapd no internet in the server

Remove the ! .

Offline

#5 2011-02-05 10:25:00

phoenixpb
Member
Registered: 2011-01-24
Posts: 15

Re: (solved) hostapd no internet in the server

i have tried
same thing
doesn't work smile

Offline

#6 2011-02-05 10:49:05

NSB-fr
Member
Registered: 2010-01-23
Posts: 45

Re: (solved) hostapd no internet in the server

You have to remove the ! in front of gateway if you want it to work. Even if it is not your main problem it won't work with it.

What is the result of the following commands:

ifconfig -a
route

Carpe Diem

Offline

#7 2011-02-05 12:08:16

phoenixpb
Member
Registered: 2011-01-24
Posts: 15

Re: (solved) hostapd no internet in the server

route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 br0

humm should be 192.168.0.1 the adress of the rooter
can i add another route for the server ?
or wrong gateway ??

ifconfig
br0       Link encap:Ethernet  HWaddr 00:02:6F:8A:AE:13 
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:d8ff:febc:588f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:0 dropped:1 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1121 (1.0 Kb)  TX bytes:468 (468.0 b)

eth0      Link encap:Ethernet  HWaddr 00:11:D8:BC:58:8F 
          inet6 addr: fe80::211:d8ff:febc:588f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2175 (2.1 Kb)  TX bytes:1808 (1.7 Kb)
          Interrupt:19 Base address:0xc800

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:256 (256.0 b)  TX bytes:256 (256.0 b)

mon.wlan0 Link encap:UNSPEC  HWaddr 00-02-6F-8A-AE-13-00-00-00-00-00-00-00-00-00-00 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1777 (1.7 Kb)  TX bytes:0 (0.0 b)

wlan0     Link encap:Ethernet  HWaddr 00:02:6F:8A:AE:13 
          inet6 addr: fe80::202:6fff:fe8a:ae13/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1849 (1.8 Kb)  TX bytes:3804 (3.7 Kb)

Last edited by phoenixpb (2011-02-05 12:09:36)

Offline

#8 2011-02-05 13:30:30

NSB-fr
Member
Registered: 2010-01-23
Posts: 45

Re: (solved) hostapd no internet in the server

The results from the commands are totally different from what they should be. Can you post your full rc.conf ?

Hint: usage of code tags around command result and file content would make things a bit more readable wink


Carpe Diem

Offline

#9 2011-02-05 13:32:37

phoenixpb
Member
Registered: 2011-01-24
Posts: 15

Re: (solved) hostapd no internet in the server

solved
in rc.conf

br0="br0 192.168.1.2 netmask 255.255.255.0 up"
correct command is 192.168.0.2 (same than rooter)

!gateway
correct command is gateway without the !

created a /etc/resolv.conf.head with
nameserver 89.2.0.1
nameserver 89.2.0.2
(nameservers of the isp)

Offline

#10 2013-12-03 19:41:27

zlabros
Member
Registered: 2013-12-03
Posts: 2

Re: (solved) hostapd no internet in the server

Hello. I am facing the same problem. Thing is I can't find any rc.conf anywhere on the system that will contain the "!gateway" or anything like what you have posted here. Any suggestions?

Offline

#11 2013-12-03 19:52:06

zlabros
Member
Registered: 2013-12-03
Posts: 2

Re: (solved) hostapd no internet in the server

zlabros wrote:

Hello. I am facing the same problem. Thing is I can't find any rc.conf anywhere on the system that will contain the "!gateway" or anything like what you have posted here. Any suggestions?

Nevermind I found the problem.It was not the rc.conf but the fact that I hadn't installed the "bridge-utils" and hadn't edited the "/etc/network/interfaces" file.

I did :

sudo apt-get install bridge-utils

and

I edited /etc/network/interfaces file like this:
---------------------------------------------------------------------------------------------------------------
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#iface eth0 inet static
#       address 192.168.0.2
#       netmask 255.255.255.0
#       network 192.168.0.0
#       broadcast 192.168.0.255
#       gateway 192.168.0.1

auto br0
iface br0 inet static
        address 192.168.0.2
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
        bridge-ports eth0 wlan0
--------------------------------------------------------------------------------------------------------------

I got those instractions from : http://www.danbishop.org/2011/12/11/usi … tu-server/

Offline

#12 2013-12-03 21:41:26

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,670

Re: (solved) hostapd no internet in the server

Closing this rather old thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#13 2013-12-03 21:42:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: (solved) hostapd no internet in the server

zlabros, you aren't even running an Arch system; why show up here and necrobump a thread with useless information?
Please don't do it again: https://wiki.archlinux.org/index.php/Fo … Bumping.27


Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB