grml netcardconfig

Hi, I found something annoying (dunno if it is intended or not, but it doesn't work for m at least. I've got 2 NIC's and I use this box to forward internet to another one/whole network. I use eth0 as internet connection, eth1 wit� a static IP and dnsmasq as DNS/DHCP server. Now if I configure eth1 with the netcardconfig, networking doesn't work any longer. now I found in the home-router-howto at gentoo that the network and gateway option aren't used, so that solved the problem. Maybe this is intentional, or the script should make a difference between an interface which 'receives' internet or one that forwards it. BTW i've written a little script to enable routing with iptables, if you want it, drop me a note. JP

* Jan-Pieter Jacobs janpieter.jacobs@gmail.com [20060828 17:15]:
Hi, I found something annoying (dunno if it is intended or not, but it doesn't work for m at least. I've got 2 NIC's and I use this box to forward internet to another one/whole network. I use eth0 as internet connection, eth1 witþ a static IP and dnsmasq as DNS/DHCP server. Now if I configure eth1 with the netcardconfig, networking doesn't work any longer. now I found in the home-router-howto at gentoo that the network and gateway option aren't used, so that solved the problem. Maybe this is intentional, or the script should make a difference between an interface which 'receives' internet or one that forwards it.
grml-network (and therefore netcardconfig too) is meant for simple and basic setup of networking. For special setups like yours (which isn't just a simple client anymore) you should configure /etc/network/interfaces on your own. Take a look at /etc/network/interfaces.examples for some usual configuration examples.
But maybe I can find a solution for your problem for netcardconfig anyway. What do you exactly expect from netcardconfig? You want to be able to get something like:
iface eth1 inet static address 192.168.9.253 netmask 255.255.255.0 broadcast 192.168.0.255 nameserver 195.58.160.194
instead of:
iface eth1 inet static address 192.168.9.253 netmask 255.255.255.0 network 192.168.9.0 broadcast 192.168.0.255 gateway 192.168.9.1 nameserver 195.58.160.194
?
BTW i've written a little script to enable routing with iptables, if you want it, drop me a note.
If it might be useful for grml - for sure, just mail it to me.
regards, -mika-

* Michael Prokop mika@grml.org [060830 17:14]:
- Jan-Pieter Jacobs janpieter.jacobs@gmail.com [20060828 17:15]:
This is more or less the problem:
Now if I configure eth1 with the netcardconfig, networking doesn't work any longer.
So the eth0 link (configured by dhcp works, but when eth1 (static, configured with netcardconfig) comes up , eth0 stops working. This Isn't what it is supposed to do I think.
But maybe I can find a solution for your problem for netcardconfig anyway.
The problem has already been solved by commenting out the 'network' and 'broadcast' line.
What do you exactly expect from netcardconfig? You want to be able to get something like:
iface eth1 inet static address 192.168.9.253 netmask 255.255.255.0 broadcast 192.168.0.255 nameserver 195.58.160.194
instead of:
iface eth1 inet static address 192.168.9.253 netmask 255.255.255.0 network 192.168.9.0 broadcast 192.168.0.255 gateway 192.168.9.1 nameserver 195.58.160.194
?
Exactly, i think this solves the problem (I've suspect the gateway thing to 'steal' the acces to eth0)
BTW i've written a little script to enable routing with iptables, if you want it, drop me a note.
If it might be useful for grml - for sure, just mail it to me.
It's on its way! JP

* Jan-Pieter Jacobs janpieter.jacobs@gmail.com [20060830 18:15]:
- Michael Prokop mika@grml.org [060830 17:14]:
- Jan-Pieter Jacobs janpieter.jacobs@gmail.com [20060828 17:15]:
This is more or less the problem:
Now if I configure eth1 with the netcardconfig, networking doesn't work any longer.
So the eth0 link (configured by dhcp works, but when eth1 (static, configured with netcardconfig) comes up , eth0 stops working. This Isn't what it is supposed to do I think.
Oh, than it's a bug, yes. :)
But maybe I can find a solution for your problem for netcardconfig anyway.
The problem has already been solved by commenting out the 'network' and 'broadcast' line.
^^^^^^^^^ I assume you mean gateway here.
Are you sure the network line causes any problems if it's present?
What do you exactly expect from netcardconfig? You want to be able to get something like:
iface eth1 inet static address 192.168.9.253 netmask 255.255.255.0 broadcast 192.168.0.255 nameserver 195.58.160.194
instead of:
iface eth1 inet static address 192.168.9.253 netmask 255.255.255.0 network 192.168.9.0 broadcast 192.168.0.255 gateway 192.168.9.1 nameserver 195.58.160.194
?
Exactly, i think this solves the problem (I've suspect the gateway thing to 'steal' the acces to eth0)
Ok. I'll check and make sure that providing empty values for network and gateway is possible by netcardconfig.
BTW i've written a little script to enable routing with iptables, if you want it, drop me a note.
If it might be useful for grml - for sure, just mail it to me.
It's on its way!
Already got it, thanks! Looks promising, I'll check it out in detail with other grml-devs and integrate it in grml-scripts.
regards, -mika-

On Mon, Aug 28, 2006 at 04:53:56PM +0200, Jan-Pieter Jacobs wrote:
Hi, I found something annoying (dunno if it is intended or not, but it doesn't work for m at least.
hi all,
i had similar problems resp. 'strange behaviour' wiith my network settings. after removing/purging the zeroconf package everything was fine again.
maybe that might also help in your or any other's case
tube
Teilnehmer (3)
-
Jan-Pieter Jacobs
-
Michael Prokop
-
Tube