Author Topic: Permanent Routing Table  (Read 3700 times)

Moreno

  • Newbie
  • *
  • Posts: 15
    • View Profile
Permanent Routing Table
« 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.

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Permanent Routing Table
« Reply #1 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.
Webmaster of hentges.net & Embedded Linux Developer.

Moreno

  • Newbie
  • *
  • Posts: 15
    • View Profile
Permanent Routing Table
« Reply #2 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..

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Permanent Routing Table
« Reply #3 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Permanent Routing Table
« Reply #4 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.
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

Moreno

  • Newbie
  • *
  • Posts: 15
    • View Profile
Permanent Routing Table
« Reply #5 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.

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Permanent Routing Table
« Reply #6 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".
Webmaster of hentges.net & Embedded Linux Developer.

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Permanent Routing Table
« Reply #7 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.
Webmaster of hentges.net & Embedded Linux Developer.

Moreno

  • Newbie
  • *
  • Posts: 15
    • View Profile
Permanent Routing Table
« Reply #8 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.

Moreno

  • Newbie
  • *
  • Posts: 15
    • View Profile
Permanent Routing Table
« Reply #9 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