OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: Moreno on May 22, 2005, 11:05:13 am

Title: Permanent Routing Table
Post by: Moreno on May 22, 2005, 11:05:13 am
Does anyone know how tu make routing table entries permanent in OZ 3.5.3 (collie)?

Thanks in advance.
Title: Permanent Routing Table
Post by: CoreDump on May 24, 2005, 01:31:33 pm
Quote
Does anyone know how tu make routing table entries permanent in OZ 3.5.3 (collie)?

Thanks in advance.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=80941\"][{POST_SNAPBACK}][/a][/div]

I'd think like on real Linux box. Never needed that though so I can't comment on this one. However, I'm curious why you would need that at all. The routing schould be automatically configured when you insert a WLAN card or plug the Z into the craddle.
Title: Permanent Routing Table
Post by: Moreno on May 25, 2005, 05:28:32 am
Quote
I'd think like on real Linux box.

Every distro has its own method to do this. Of course, you can write an ad-hoc script to make the table permanent, but I'm interested in an "official" way to do it in OpenZaurus.

Quote
Never needed that though so I can't comment on this one. However, I'm curious why you would need that at all. The routing schould be automatically configured when you insert a WLAN card or plug the Z into the craddle.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=81286\"][{POST_SNAPBACK}][/a][/div]

It can automatically detect which networks I have and configure the gateways I want to use??? Wow! Definitively OpenZaurus is ahead of its time..
Title: Permanent Routing Table
Post by: lardman on May 25, 2005, 06:12:46 am
Quote
It can automatically detect which networks I have and configure the gateways I want to use??? Wow! Definitively OpenZaurus is ahead of its time..

Isn't this part of what the dhcp server does?

I certainly have my gateway and routing table setup for me automatically when I connect to my wifi network at uni.


Si
Title: Permanent Routing Table
Post by: koen on May 25, 2005, 06:35:17 am
Quote
Quote
I'd think like on real Linux box.

Every distro has its own method to do this. Of course, you can write an ad-hoc script to make the table permanent, but I'm interested in an "official" way to do it in OpenZaurus.

[div align=\"right\"][a href=\"index.php?act=findpost&pid=81392\"][{POST_SNAPBACK}][/a][/div]

OZ is debian based, so the "official" debian way should work on OZ.
Title: Permanent Routing Table
Post by: Moreno on May 25, 2005, 06:54:46 am
Quote
Quote
It can automatically detect which networks I have and configure the gateways I want to use??? Wow! Definitively OpenZaurus is ahead of its time..

Isn't this part of what the dhcp server does?

I certainly have my gateway and routing table setup for me automatically when I connect to my wifi network at uni.


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=81396\"][{POST_SNAPBACK}][/a][/div]

I'm not using DHCP.

I have two subnetworks, and the devices in these subnetworks have fixed IPs.
Title: Permanent Routing Table
Post by: CoreDump on May 25, 2005, 11:28:57 am
Quote
I'm not using DHCP.

I have two subnetworks, and the devices in these subnetworks have fixed IPs.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=81401\"][{POST_SNAPBACK}][/a][/div]

Then maybe create two different PCMCIA "schemes". Google can tell you more about it.

Each scheme may contain an IP (static or dhcp); netmask, gateway etc.
You could even hack the scripts to do whatever you want during "ifup".
Title: Permanent Routing Table
Post by: CoreDump on May 25, 2005, 11:39:22 am
Quote
It can automatically detect which networks I have and configure the gateways I want to use??? Wow! Definitively OpenZaurus is ahead of its time..
[div align=\"right\"][a href=\"index.php?act=findpost&pid=81392\"][{POST_SNAPBACK}][/a][/div]

Yep, that's exactly how it works for me....since I'm using DHCP at home.

Anyways, if you would have spent some time actually looking for an answer to your problem (multiple networks w/ multiple configurations), you'd soon have found out
that the setup is trivial and switching between configurations a breeze.

This is a common problem for notebook users and has been solved a long time ago.
And there's extensive documentation available from google.
Title: Permanent Routing Table
Post by: Moreno on May 26, 2005, 06:54:32 am
Quote
Quote
It can automatically detect which networks I have and configure the gateways I want to use??? Wow! Definitively OpenZaurus is ahead of its time..
[div align=\"right\"][a href=\"index.php?act=findpost&pid=81392\"][{POST_SNAPBACK}][/a][/div]

Yep, that's exactly how it works for me....since I'm using DHCP at home.

Anyways, if you would have spent some time actually looking for an answer to your problem (multiple networks w/ multiple configurations), you'd soon have found out
that the setup is trivial and switching between configurations a breeze.

This is a common problem for notebook users and has been solved a long time ago.
And there's extensive documentation available from google.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=81450\"][{POST_SNAPBACK}][/a][/div]

In fact, this setup is working perfectly on my network since day one. I've just asked for the best way to make the routing tables permanent in OZ.
I described my network topology just to make clear that dhcp solutions are not applicable.
Probably, the best solution is what Koen pointed out: look at the Debian way to do this.
Title: Permanent Routing Table
Post by: Moreno on May 28, 2005, 10:44:59 am
Just in case anyone is interested.
The configuration file /etc/network/interfaces seems to be the right place to make routing table permanent.
The relevant lines in my configuration file look like this:
Code: [Select]
iface usbd0 inet static
        netmask 255.255.255.0
        address 192.168.129.201

up route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.129.1 dev usbd0
up route add default gw 192.168.129.1
down route del -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.129.1 dev usbd0
down route del default