Networking issue
Jose Rodriguez
joheiker at gmail.com
Tue Apr 7 23:52:48 UTC 2009
My answer are written below. They begging by "JR"
----------------------------------------------------------------------
> Jose Rodriguez wrote:
> > Hello everyone!
> >
> > Here is my problem, hope someone can help.
> >
> > Im trying to setup a wireless network with my Pc as a wireless router.
> > I have a Broadcom wireless card and im using Ubuntu 8.04.
> >
> > For the configuration of the network i followed these instructions:
> > https://help.ubuntu.com/community/Router
> >
> > For the configuration of a DNS and DHCP i followed these:
> > https://help.ubuntu.com/community/UbuntuWirelessRouter
> >
> > I basically:
> > - Configured /etc/network/interfaces with eth0, which has an IP assigned
> > dinamically by the router/modem; and also configured wlan0 interface with
> an
> > IP static.
>
> It appears that you have a LAN cable connecting your eth0 to your
> modem/router's LAN port. I would assign a static IP to eth0. This
> simplified things and makes debugging for problems easier.
JR: I can do that, but so far the IP it has been assigned without any
problems at all; and i hasnt gived me any problems.
>
> > - I tested connectivity, everything fine.
> > - Then configured a DNS/DHCP server using dnsmasq.
>
> Make sure that it is *not* listening on eth0 (the interface connected to
> your modem/router) for DHCP requests because you must always have only
> one DHCP server on a network. Your modem/router and eth0 is one network,
> and rest of the interfaces on your computer (eth1, wlan0?) are other
> different networks. BTW, it would be a good idea to specify what are all
> these three networks in your case?
>
> Also, is this picture correct?
> -------------------
> ____________ lan cable | eth1|-> to a switch?
> ->|Router/Modem|>--------------|eth0 wlan0|-> wireless clients
> ------------ |_________________|
>
> ^
> |______Ubuntu computer
JR: The pic is not correct. I have a modem connected to a router. From this
router i have a pc wired connected (my bro pc) and my pc (the one i want to
use as a wireless router) which is also connected with a cable.
>
>
> > - Finally NAT with a script as the link above can show you.
> >
> > I dont think the DHCP was working so i deactivated.
>
> Yes, good idea. Just to make sure everything is working, you can always
> give other computers a static IP address.
JR: i know :)
>
> > My problem is, i have internet in my pc/wireless router but when i try to
> > connect my cellphone or another Pc or my Ipod to the wireless network i
> > created i dont have access to internet. I assigned an static IP to every
> > device but i cant navigate.
>
> What about wireless encryption? Are you using any? For now, I would
> suggest you disable all encryption.
>
> Also, what is the output of the following command:
> $> ifconfig -a
>
JR: im using WEP, but the key code is too stupid, for testing issues. So i
dont thik it is the problem.
Here is the display of ifconfig -a
eth0 Link encap:Ethernet direcciónHW 00:1d:72:57:9a:a5
inet dirección:192.168.0.103 Difusión:192.168.0.255
Máscara:255.255.255.0
dirección inet6: fe80::21d:72ff:fe57:9aa5/64 Alcance:Vínculo
ARRIBA DIFUSIÓN CORRIENDO MULTICAST MTU:1500 Métrica:1
RX packets:766 errors:0 dropped:0 overruns:0 frame:0
TX packets:919 errors:0 dropped:0 overruns:0 carrier:0
colisiones:0 txqueuelen:1000
RX bytes:687129 (671.0 KB) TX bytes:165720 (161.8 KB)
Interrupción:27 Dirección base: 0xe000
lo Link encap:Bucle local
inet dirección:127.0.0.1 Máscara:255.0.0.0
dirección inet6: ::1/128 Alcance:Anfitrión
ARRIBA LOOPBACK CORRIENDO MTU:16436 Métrica:1
RX packets:986 errors:0 dropped:0 overruns:0 frame:0
TX packets:986 errors:0 dropped:0 overruns:0 carrier:0
colisiones:0 txqueuelen:0
RX bytes:54173 (52.9 KB) TX bytes:54173 (52.9 KB)
wlan0 Link encap:Ethernet direcciónHW 00:21:00:14:c8:20
inet dirección:192.168.1.1 Difusión:192.168.1.255
Máscara:255.255.255.0
dirección inet6: fe80::221:ff:fe14:c820/64 Alcance:Vínculo
ARRIBA DIFUSIÓN MULTICAST MTU:1500 Métrica:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
colisiones:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupción:21 Memoria:fc000000-fc004000
> From the router i ping every interface and it works but when i try to
> reach
> > other host supposedly connected with ping, i cant reached it. Same if i
> try
> > from a Pc to the router. What am i missing here??? I thought it could be
> a
> > bad assigment of IP address but for my eth0 im using 192.168.0.103/24,
> and
> > for my wlan0 im using 192.168.1.1/24. The hosts then would have
> > 192.168.1.2-254/24.
>
> Correct, your eth0 is on 192.168.0.0 network and wlan0 is on 192.168.1.0
> network. If you wlan0 is assigned 192.168.1.1, then your hosts can have
> any of the 2-254 IP addresses.
>
> I see that you have only one wired interface (no eth1).
>
JR: exactly...no eth1.
>
> >
> > Then only thing i could think of is that when i configured my wireless
> card
> > they recommend to set it as a master mode, but i havent been able to make
> it
>
> What exact card is this?
>
JR: it's a broadcom card
Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01)
>
>
> > support that. I set it in ad-hoc mode which it suppose to work as well.
>
> I think you need it to work in master. What did you try to do so? Also,
> what wireless manager are you using (one is hostapd)?
>
> JR: well, this morning i was checking the 1st reply of this post and i
really that i ve forgotten of Network Manager. When i checked it i saw that
on the wireless configuration there wasnt a gateway address, so i put one
down and voooila...it worked..!! But after that i recompiled my kernel
(2.6.29) to enable Network testing something...and i dont know why but i had
troubles with the sudo commmand...i fixed it but after that i wasnt able to
make it work again. Im gonna keep trying...but so far i dont understand what
happened :S
--
A day without sunshine is like, you know...night.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090408/b42321f9/attachment.html>
More information about the ubuntu-users
mailing list