PDA

View Full Version : routing problem



wollmersdorfer
02-18-2004, 03:03 PM
Hi,

my Version is Knoppix 3.3 2003-11-19-DE, knx-hdinstall.

My notebook is used at home in a LAN (192.168.0.x) and a gateway 192.168.0.y without problems.

At office in a very paranoid network I have, besides 2 desktops in different subnets, an additional cable with following interface specification:
IP 192.168.47.11
Gateway 81.8.15.253

No Problem with WinXP and AFAIR this was also no problem with Debian-Testing to configure.

But with Knoppix 3.3 I had problems to connect to the large world of WAN.
Here is my /etc/network/interfaces
------snip------
auto lo eth0
iface lo inet loopback

iface eth0 inet static
address 192.168.47.11
netmask 0.0.0.0
network 0.0.0.0
broadcast 192.168.47.255
gateway 81.8.15.253
-----snip----

After boot no route is visible with route -n

So I do
# route add -net 0.0.0.0 netmask 0.0.0.0 eth0
# route add default gw81.8.15.253 eth0
and everything is ok.

Questions:
1) Is my /etc/network/interfaces wrong configured?
2) What are the relevant scripts to inspect for bugs?
3) Are the scripts original Debian or Knoppix modified? (To whom report errors?)
4) Is there a convenient way/utility to switch per "click" between different network configurations (@home, @office, @wlan, @dhcp ...)?

TIA

Helmut Wollmersdorfer

Stephen
02-18-2004, 07:21 PM
Hi,


Here is my /etc/network/interfaces
------snip------
auto lo eth0
iface lo inet loopback

iface eth0 inet static
address 192.168.47.11
netmask 255.255.255.0
network 192.168.47.0
broadcast 192.168.47.255
gateway 81.8.15.253
-----snip----





Questions:
1) Is my /etc/network/interfaces wrong configured?
2) What are the relevant scripts to inspect for bugs?
3) Are the scripts original Debian or Knoppix modified? (To whom report errors?)
4) Is there a convenient way/utility to switch per "click" between different network configurations (@home, @office, @wlan, @dhcp ...)?

TIA

Helmut Wollmersdorfer

1) Yes see the changes I made above.
2) There are no bugs you put the settings in incorrectly.
3) See answer to 2 for errors and that is a standard file to both.
4) Yes you can have different stanzas in the /etc/network/interfaces for different connections you should take a look at man interfaces and maybe a search of the Debian user mailing list is in order I have seen a few post on there on this topic.

wollmersdorfer
02-19-2004, 08:16 AM
@stephen:

sorry, but your configuration will not work.

What you suggest is the same, what I tried first and what is the way I usally configure. But this way you get "network not reachable" for the gateway.

Your answer 4): Yes, I know. I have half a dozen servers running @home, most of them with more than one network interface.

Helmut Wollmersdorfer