Re: [Server-devel] AP with fixed IP address

2008-08-20 Thread Jerry Vonau
Martin Langhoff wrote:
> On Wed, Aug 20, 2008 at 10:13 PM, David Leeming
> <[EMAIL PROTECTED]> wrote:
>> To clarify, I am talking about a minimal set up of a school server. Just
> 
> So you are working with a single school server.
> 
>  - Is there an ISP / WAN / Internet connection? That will have a fixed
> IP addr you want to set on eth0
> 
>> I am then using a simple access point device like a D-Link 2100AP, set to
>> get an IP address from a DHCP server, plugged in to the second network card.
>> With this simple configuration, I have found that it then works without any
>> more changes to any config files etc.
> 
> So far so goo.
> 
>> My question is, with a particular type of AP that I am required to use,
>> which uses a fixed IP, what config changes do I need to make in the XS? The
>> AP cannot be set to get an IP address from the XS.
> 
> The AP will self-assign an IP for administration, and that IP is in a
> different range (often 10.x.x.x or 192.168.x.x). If that is your
> problem, then what I tend to do is to take the AP and connect it to my
> non-XO laptop via ethernet, and set my laptop's NIC temporarily to
> have a static IP in the same range.
> 
You can add an ip alias/routing on the XS, by adding an ifcfg-eth1:2, to 
match the AP's layout, just like the eth1:1 file does. You can use the 
ifcfg-eth1:1 file as a template. When your editing the file rename the 
device= line to be eth1:2 and edit the network info to match the AP. 
Once done editing, save it as ifcfg-eth1:2, then do a:
/sbin/ifup eth1:2
Check your work with ping, should be good to go...

If you need help with that, more info would be needed, what does the AP 
use for an ip address?

Jerry
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] AP with fixed IP address

2008-08-20 Thread Martin Langhoff
On Wed, Aug 20, 2008 at 10:13 PM, David Leeming
<[EMAIL PROTECTED]> wrote:
> To clarify, I am talking about a minimal set up of a school server. Just

So you are working with a single school server.

 - Is there an ISP / WAN / Internet connection? That will have a fixed
IP addr you want to set on eth0

> I am then using a simple access point device like a D-Link 2100AP, set to
> get an IP address from a DHCP server, plugged in to the second network card.
> With this simple configuration, I have found that it then works without any
> more changes to any config files etc.

So far so goo.

> My question is, with a particular type of AP that I am required to use,
> which uses a fixed IP, what config changes do I need to make in the XS? The
> AP cannot be set to get an IP address from the XS.

The AP will self-assign an IP for administration, and that IP is in a
different range (often 10.x.x.x or 192.168.x.x). If that is your
problem, then what I tend to do is to take the AP and connect it to my
non-XO laptop via ethernet, and set my laptop's NIC temporarily to
have a static IP in the same range.

This is only needed to configure the AP for the first time - you can
probably set the AP to have an IP in the XS LAN subnet to make things
easier.

There might be a smarter way to do this by setting a static route on the XS too.

cheers,



m
-- 
 [EMAIL PROTECTED]
 [EMAIL PROTECTED] -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] AP with fixed IP address

2008-08-20 Thread Jerry Vonau
John Watlington wrote:
> I think Jerry misunderstood your question.
> 
No, just away for my computer. The next question was to ensure that the 
AP was really for use with the XOs and not for an ISP.

> You can assign the AP an address from the range 172.18.1.1 to  
> 172.18.1.254.
> This is within the address range assigned to eth1 (in /etc/sysconfig/ 
> network-scripts/ifcfg-eth1)
> but outside of the range that DHCP is set to provide on that  
> interface (.0.2 to .0.254)
> 
> Other parameters for machines located statically on the school LAN  
> (eth1):
> NETMASK  255.255.254.0
> GATEWAY 172.18.0.1
> 
Thanks, forgot that there is a range parameter for the 0.0/23 network in 
the dhcp config.


> Cheers,
> John
>
Thanks,
Jerry


> On Aug 20, 2008, at 6:13 AM, David Leeming wrote:
>> Hi Martin,
>>
>> To clarify, I am talking about a minimal set up of a school server.  
>> Just
>> burning the image on a computer that has two network cards  
>> installed, and
>> following the instructions on the school server wiki page to change  
>> the
>> domain name and register an ejabberd admin account.
>>
>> I am then using a simple access point device like a D-Link 2100AP,  
>> set to
>> get an IP address from a DHCP server, plugged in to the second  
>> network card.
>> With this simple configuration, I have found that it then works  
>> without any
>> more changes to any config files etc.
>>
>> My question is, with a particular type of AP that I am required to  
>> use,
>> which uses a fixed IP, what config changes do I need to make in the  
>> XS? The
>> AP cannot be set to get an IP address from the XS.
>>
>> Is this clear enough?
>>
>>
>> David Leeming
>> OLPC Coordinator, SPC and Technical Advisor, People First Network
>> Honiara, Solomon Islands
>>
>>
>> -Original Message-
>> From: Martin Langhoff [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, 20 August 2008 10:18 a.m.
>> To: David Leeming
>> Cc: server-devel
>> Subject: Re: [Server-devel] AP with fixed IP address
>>
>> 2008/8/20 David Leeming <[EMAIL PROTECTED]>:
>>> I am setting up a server using a outdoor access point from Rural Link
>>> (www.rurallink.co.nz) at our Patukae OLPC trial school site in  
>>> Solomon
>>> Islands. It's a type that can't get an IP address from a DHCP  
>>> server and
>> on
>>> the LAN side needs to be fixed.
>> Jerry's answer is correct. Edit ifcfg-eth0
>>
>>> Normally I have found, when setting up the XS, that if I attach a  
>>> simple
>> AP
>>> to a second NIC using eth1, with DHCP, there is no additional
>> configuration
>>> required. It works by default.
>> That sounds wrong. Maybe I'm misunderstanding what you've done but
>>
>>  - eth0 is the WAN address. Attaching something to eth1 does not solve
>> anything unless you've got eth0 and eth1 mixed up...
>>
>>  - On the LAN side (eth1) don't let the AP act as a router or give
>> DHCP leases. Set it to be a vanilla AP, no DHCP, routing or NAT'ting.
>> It is up to the XS to do routing, NAT'ting, handing out DHCP leases
>> and providing DNS services.
>>
>>> In the case of my Rural Link access point, I need to fix an IP  
>>> address
>>> within the range given by the server - which presumably it also  
>>> uses to
>>> allocate addresses to the XOs.
>> So you are talking about 2 XSs and want one of the servers to be
>> 'downstream' of the other? That'll need a bit of routing glue
>> methinks. Tell us more about the network topology you're setting up...
>>
>> cheers,
>>
>>
>> m
>> -- 
>>  [EMAIL PROTECTED]
>>  [EMAIL PROTECTED] -- School Server Architect
>>  - ask interesting questions
>>  - don't get distracted with shiny stuff - working code first
>>  - http://wiki.laptop.org/go/User:Martinlanghoff
>>
>> ___
>> Server-devel mailing list
>> Server-devel@lists.laptop.org
>> http://lists.laptop.org/listinfo/server-devel
> 
> ___
> Server-devel mailing list
> Server-devel@lists.laptop.org
> http://lists.laptop.org/listinfo/server-devel
> 

___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] AP with fixed IP address

2008-08-20 Thread John Watlington

I think Jerry misunderstood your question.

You can assign the AP an address from the range 172.18.1.1 to  
172.18.1.254.
This is within the address range assigned to eth1 (in /etc/sysconfig/ 
network-scripts/ifcfg-eth1)
but outside of the range that DHCP is set to provide on that  
interface (.0.2 to .0.254)

Other parameters for machines located statically on the school LAN  
(eth1):
NETMASK  255.255.254.0
GATEWAY 172.18.0.1

Cheers,
John

On Aug 20, 2008, at 6:13 AM, David Leeming wrote:
> Hi Martin,
>
> To clarify, I am talking about a minimal set up of a school server.  
> Just
> burning the image on a computer that has two network cards  
> installed, and
> following the instructions on the school server wiki page to change  
> the
> domain name and register an ejabberd admin account.
>
> I am then using a simple access point device like a D-Link 2100AP,  
> set to
> get an IP address from a DHCP server, plugged in to the second  
> network card.
> With this simple configuration, I have found that it then works  
> without any
> more changes to any config files etc.
>
> My question is, with a particular type of AP that I am required to  
> use,
> which uses a fixed IP, what config changes do I need to make in the  
> XS? The
> AP cannot be set to get an IP address from the XS.
>
> Is this clear enough?
>
>
> David Leeming
> OLPC Coordinator, SPC and Technical Advisor, People First Network
> Honiara, Solomon Islands
>
>
> -Original Message-
> From: Martin Langhoff [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 20 August 2008 10:18 a.m.
> To: David Leeming
> Cc: server-devel
> Subject: Re: [Server-devel] AP with fixed IP address
>
> 2008/8/20 David Leeming <[EMAIL PROTECTED]>:
>> I am setting up a server using a outdoor access point from Rural Link
>> (www.rurallink.co.nz) at our Patukae OLPC trial school site in  
>> Solomon
>> Islands. It's a type that can't get an IP address from a DHCP  
>> server and
> on
>> the LAN side needs to be fixed.
>
> Jerry's answer is correct. Edit ifcfg-eth0
>
>> Normally I have found, when setting up the XS, that if I attach a  
>> simple
> AP
>> to a second NIC using eth1, with DHCP, there is no additional
> configuration
>> required. It works by default.
>
> That sounds wrong. Maybe I'm misunderstanding what you've done but
>
>  - eth0 is the WAN address. Attaching something to eth1 does not solve
> anything unless you've got eth0 and eth1 mixed up...
>
>  - On the LAN side (eth1) don't let the AP act as a router or give
> DHCP leases. Set it to be a vanilla AP, no DHCP, routing or NAT'ting.
> It is up to the XS to do routing, NAT'ting, handing out DHCP leases
> and providing DNS services.
>
>> In the case of my Rural Link access point, I need to fix an IP  
>> address
>> within the range given by the server - which presumably it also  
>> uses to
>> allocate addresses to the XOs.
>
> So you are talking about 2 XSs and want one of the servers to be
> 'downstream' of the other? That'll need a bit of routing glue
> methinks. Tell us more about the network topology you're setting up...
>
> cheers,
>
>
> m
> -- 
>  [EMAIL PROTECTED]
>  [EMAIL PROTECTED] -- School Server Architect
>  - ask interesting questions
>  - don't get distracted with shiny stuff - working code first
>  - http://wiki.laptop.org/go/User:Martinlanghoff
>
> ___
> Server-devel mailing list
> Server-devel@lists.laptop.org
> http://lists.laptop.org/listinfo/server-devel

___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] AP with fixed IP address

2008-08-20 Thread David Leeming
Hi Jerry,

I am just using the XS "out of the box". All settings are as default. My
question concerns the effect of fixing an IP address for the AP, which
should still work, but is there any possible effect on the XOs that will
connect to it, through IP address conflicts that might occur?

To give my context, I am involved in trial deployments in the Pacific
islands region, and although I am obviously not up to speed as you guys are
on the XS and network configuration for Linux systems, I need to know how to
have a reliable system with no nasty surprises as I will be the one that
discovers it in the middle of a teacher training session during an OLPC
trials deployment when things go weird! 

I am trying to get this information before I head out in a couple of days
into a remote area of Solomon Islands where the said access point CPE device
awaits me, and if I don't have full information it could be a partly wasted
trip!

David Leeming
OLPC Coordinator, SPC and Technical Advisor, People First Network
Honiara, Solomon Islands


-Original Message-
From: Jerry Vonau [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 20 August 2008 9:35 a.m.
To: David Leeming
Cc: XS Devel
Subject: Re: [Server-devel] AP with fixed IP address

David Leeming wrote:
> I am setting up a server using a outdoor access point from Rural Link
> (www.rurallink.co.nz) at our Patukae OLPC trial school site in Solomon
> Islands. It's a type that can't get an IP address from a DHCP server and
on
> the LAN side needs to be fixed. 
> 
>  
> 
> Normally I have found, when setting up the XS, that if I attach a simple
AP
> to a second NIC using eth1, with DHCP, there is no additional
configuration
> required. It works by default.
> 
>  
> 
> In the case of my Rural Link access point, I need to fix an IP address
> within the range given by the server - which presumably it also uses to
> allocate addresses to the XOs.
> 
>  
> 
> Can anyone let me know how best to do this.
> 
>  
> 
> David Leeming
> 
> Technical Advisor, People First Network
> 
> P.O. Box 652, Honiara, Solomon Islands, South Pacific
> 

Edit the ifcfg-eth(?) file, for the interface that is connected to the 
AP, that lives in /etc/sysconfig/network-scripts/
From:

BOOTPROTO='dhcp'

To:

BOOTPROTO='none'
BROADCAST='10.3.0.255'  <--
IPADDR='10.3.0.10'<-- adjust these to the xs layout
NETMASK='255.255.255.0' <--
NETWORK='10.3.0.0'  <--

The exact numbers above would depend on what else is set up on the box.
Could a get a better description of your intended layout, perhaps could 
you post the output of "ip route ls" of your current layout.

Thanks,

Jerry










___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] AP with fixed IP address

2008-08-20 Thread David Leeming
Hi Martin,

To clarify, I am talking about a minimal set up of a school server. Just
burning the image on a computer that has two network cards installed, and
following the instructions on the school server wiki page to change the
domain name and register an ejabberd admin account. 

I am then using a simple access point device like a D-Link 2100AP, set to
get an IP address from a DHCP server, plugged in to the second network card.
With this simple configuration, I have found that it then works without any
more changes to any config files etc. 

My question is, with a particular type of AP that I am required to use,
which uses a fixed IP, what config changes do I need to make in the XS? The
AP cannot be set to get an IP address from the XS.

Is this clear enough?


David Leeming
OLPC Coordinator, SPC and Technical Advisor, People First Network
Honiara, Solomon Islands


-Original Message-
From: Martin Langhoff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 20 August 2008 10:18 a.m.
To: David Leeming
Cc: server-devel
Subject: Re: [Server-devel] AP with fixed IP address

2008/8/20 David Leeming <[EMAIL PROTECTED]>:
> I am setting up a server using a outdoor access point from Rural Link
> (www.rurallink.co.nz) at our Patukae OLPC trial school site in Solomon
> Islands. It's a type that can't get an IP address from a DHCP server and
on
> the LAN side needs to be fixed.

Jerry's answer is correct. Edit ifcfg-eth0

> Normally I have found, when setting up the XS, that if I attach a simple
AP
> to a second NIC using eth1, with DHCP, there is no additional
configuration
> required. It works by default.

That sounds wrong. Maybe I'm misunderstanding what you've done but

 - eth0 is the WAN address. Attaching something to eth1 does not solve
anything unless you've got eth0 and eth1 mixed up...

 - On the LAN side (eth1) don't let the AP act as a router or give
DHCP leases. Set it to be a vanilla AP, no DHCP, routing or NAT'ting.
It is up to the XS to do routing, NAT'ting, handing out DHCP leases
and providing DNS services.

> In the case of my Rural Link access point, I need to fix an IP address
> within the range given by the server - which presumably it also uses to
> allocate addresses to the XOs.

So you are talking about 2 XSs and want one of the servers to be
'downstream' of the other? That'll need a bit of routing glue
methinks. Tell us more about the network topology you're setting up...

cheers,


m
-- 
 [EMAIL PROTECTED]
 [EMAIL PROTECTED] -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff

___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] AP with fixed IP address

2008-08-19 Thread Martin Langhoff
2008/8/20 David Leeming <[EMAIL PROTECTED]>:
> I am setting up a server using a outdoor access point from Rural Link
> (www.rurallink.co.nz) at our Patukae OLPC trial school site in Solomon
> Islands. It's a type that can't get an IP address from a DHCP server and on
> the LAN side needs to be fixed.

Jerry's answer is correct. Edit ifcfg-eth0

> Normally I have found, when setting up the XS, that if I attach a simple AP
> to a second NIC using eth1, with DHCP, there is no additional configuration
> required. It works by default.

That sounds wrong. Maybe I'm misunderstanding what you've done but

 - eth0 is the WAN address. Attaching something to eth1 does not solve
anything unless you've got eth0 and eth1 mixed up...

 - On the LAN side (eth1) don't let the AP act as a router or give
DHCP leases. Set it to be a vanilla AP, no DHCP, routing or NAT'ting.
It is up to the XS to do routing, NAT'ting, handing out DHCP leases
and providing DNS services.

> In the case of my Rural Link access point, I need to fix an IP address
> within the range given by the server – which presumably it also uses to
> allocate addresses to the XOs.

So you are talking about 2 XSs and want one of the servers to be
'downstream' of the other? That'll need a bit of routing glue
methinks. Tell us more about the network topology you're setting up...

cheers,


m
-- 
 [EMAIL PROTECTED]
 [EMAIL PROTECTED] -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] AP with fixed IP address

2008-08-19 Thread Jerry Vonau
David Leeming wrote:
> I am setting up a server using a outdoor access point from Rural Link
> (www.rurallink.co.nz) at our Patukae OLPC trial school site in Solomon
> Islands. It's a type that can't get an IP address from a DHCP server and on
> the LAN side needs to be fixed. 
> 
>  
> 
> Normally I have found, when setting up the XS, that if I attach a simple AP
> to a second NIC using eth1, with DHCP, there is no additional configuration
> required. It works by default.
> 
>  
> 
> In the case of my Rural Link access point, I need to fix an IP address
> within the range given by the server - which presumably it also uses to
> allocate addresses to the XOs.
> 
>  
> 
> Can anyone let me know how best to do this.
> 
>  
> 
> David Leeming
> 
> Technical Advisor, People First Network
> 
> P.O. Box 652, Honiara, Solomon Islands, South Pacific
> 

Edit the ifcfg-eth(?) file, for the interface that is connected to the 
AP, that lives in /etc/sysconfig/network-scripts/
From:

BOOTPROTO='dhcp'

To:

BOOTPROTO='none'
BROADCAST='10.3.0.255'  <--
IPADDR='10.3.0.10'<-- adjust these to the xs layout
NETMASK='255.255.255.0' <--
NETWORK='10.3.0.0'  <--

The exact numbers above would depend on what else is set up on the box.
Could a get a better description of your intended layout, perhaps could 
you post the output of "ip route ls" of your current layout.

Thanks,

Jerry










___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] AP with fixed IP address

2008-08-19 Thread David Leeming
I am setting up a server using a outdoor access point from Rural Link
(www.rurallink.co.nz) at our Patukae OLPC trial school site in Solomon
Islands. It's a type that can't get an IP address from a DHCP server and on
the LAN side needs to be fixed. 

 

Normally I have found, when setting up the XS, that if I attach a simple AP
to a second NIC using eth1, with DHCP, there is no additional configuration
required. It works by default.

 

In the case of my Rural Link access point, I need to fix an IP address
within the range given by the server - which presumably it also uses to
allocate addresses to the XOs.

 

Can anyone let me know how best to do this.

 

David Leeming

Technical Advisor, People First Network

P.O. Box 652, Honiara, Solomon Islands, South Pacific

 

___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel