[Voyage-linux] Internet Sharing

Punky Tse (spam-protected)
Thu Sep 24 21:25:15 HKT 2009


Hi,

Make sure dnsmasq is running, /etc/dnsmasq.more.conf has the following 
entries and is being included by /etc/dnsmasq.conf

dhcp-range=wlan0,10.1.10.10,10.1.10.250,24h
dhcp-range=eth1,10.1.20.10,10.1.20.250,24h
dhcp-range=eth2,10.1.30.10,10.1.30.250,24h
dhcp-range=eth3,10.1.40.10,10.1.40.250,24h
dhcp-leasefile=/var/tmp/dnsmasq.leases

Regards,
Punky

Navas Abubacker wrote:
> Hi,
>
> it does works, thanks for your help, but it i not assigning IP address 
> automatically, It only works when I set up the client machine 
> connected to eth0 set manually I guess eth0 needs to be enabled with 
> DHCP, please advice
>
> On Wed, Sep 23, 2009 at 8:45 AM, Kim-man 'Punky' TSE 
> <punkytse at punknix.com <mailto:punkytse at punknix.com>> wrote:
>
>     Hi,
>
>     So, The AP connect to Internet?
>
>     auto eth0
>     iface eth0 inet static
>           address 10.1.20.1
>           netmask 255.255.255.0
>           broadcast 10.1.20.255
>           up nat.sh eth0 ath0 "10.1.20.0/24 <http://10.1.20.0/24>"
>
>
>     You need to setup eth0 and another network (10.1.20.1 /24) and
>     enable NAT, assuming ath0 is the outbound wireless connect to AP.
>      eth0 connects to your switch of course.
>
>     Regards,
>     Punky
>
>     Navas Abubacker wrote:
>
>         I have a alix box (alix 1c) with Atheros AR 5413 wireless card,
>         My wireless card is configured as a client and it is connected
>         to an AP, now I want to configure this box to share internet
>         so that other clients can access inernet, is it possible ?
>
>               WLAN                LAN
>         AP      =>     Alix 1.C   =>  Network Switch / Hub => Other
>         clients
>         Can you guys please guide me ?
>
>         -- 
>         Thanks
>         Navas
>         ------------------------------------------------------------------------
>
>         _______________________________________________
>         Voyage-linux mailing list
>         Voyage-linux at list.voyage.hk <mailto:Voyage-linux at list.voyage.hk>
>         http://list.voyage.hk/mailman/listinfo/voyage-linux
>          
>
>
>
>     -- 
>     Regards,
>     Punky
>
>     Voyage Solutions (http://solution.voyage.hk)
>     * Embedded Solutions and Systems
>      - Mesh Networking, Captive Portal, IP Surveillance, VoIP/PBX
>      - Network Engineering, Development Platform and Consultation
>              
>
>
>
>
> -- 
> Thanks
> Navas





More information about the Voyage-linux mailing list