All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] network scripts debian
@ 2004-08-03 21:40 John McMonagle
  2004-08-05  3:07 ` Glen Mabey
  0 siblings, 1 reply; 2+ messages in thread
From: John McMonagle @ 2004-08-03 21:40 UTC (permalink / raw)
  To: lartc

Working at setting up some new firewalls with multi-path routing over 2 
isps. Doing it with debian sarge.

Problem is the normal network scripts use ifconfig and route.

In my tests I did a simple setup script.

Feel like I am reinventing the wheel :-)

Is it OK to use the network scripts to setup the interface and then 
remove the routes ifconfig created and add any needed routes with ip 
commands?

Or am I best setting up the connections from scratch?

Also related is some of interfaces are dynamic.
I ran rewrite dhclient-script or just rebuild routes in 
dhclient-exit-hooks.d.

Also dhcpd-script gives
new_subnet_mask=.........
new_ip_address=....
new_network_number=......
interface=eth2

But for ip route need the length part of new_network_number/length

Is there a simple way to calculate length from new_subnet_mask ?

Thanks

John
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] network scripts debian
  2004-08-03 21:40 [LARTC] network scripts debian John McMonagle
@ 2004-08-05  3:07 ` Glen Mabey
  0 siblings, 0 replies; 2+ messages in thread
From: Glen Mabey @ 2004-08-05  3:07 UTC (permalink / raw)
  To: lartc

On Tue, Aug 03, 2004 at 04:40:06PM -0500, John McMonagle wrote:
> Working at setting up some new firewalls with multi-path routing over 2 
> isps. Doing it with debian sarge.
> 
> Problem is the normal network scripts use ifconfig and route.
> 
> In my tests I did a simple setup script.
> 
> Feel like I am reinventing the wheel :-)
> 
> Is it OK to use the network scripts to setup the interface and then 
> remove the routes ifconfig created and add any needed routes with ip 
> commands?
> 
> Or am I best setting up the connections from scratch?

After struggling with exactly this same issue myself, I simply created
everything from scratch.  Otherwise, I couldn't ever get it to work.

> Also related is some of interfaces are dynamic.
> I ran rewrite dhclient-script or just rebuild routes in 
> dhclient-exit-hooks.d.
> 
> Also dhcpd-script gives
> new_subnet_mask=.........
> new_ip_address=....
> new_network_number=......
> interface=eth2
> 
> But for ip route need the length part of new_network_number/length
> 
> Is there a simple way to calculate length from new_subnet_mask ?

dunno about that one.

Glen

-- 
******************************************************************
Glen W. Mabey
Glen.Mabey@usu.edu
http://mabeys.homelinux.com/glen/
******************************************************************
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-05  3:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-03 21:40 [LARTC] network scripts debian John McMonagle
2004-08-05  3:07 ` Glen Mabey

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.