You are not logged in.
Pages: 1
Topic closed
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 ![]()
thanks for your help
Last edited by phoenixpb (2011-02-05 13:33:00)
Offline
Hi,
Incorrect gateway setting in rc.conf ?
Carpe Diem
Offline
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
thanks
Offline
Remove the ! .
Offline
i have tried
same thing
doesn't work ![]()
Offline
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 -arouteCarpe Diem
Offline
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
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 ![]()
Carpe Diem
Offline
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
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
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
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
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
Offline
Pages: 1
Topic closed