[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFC: new network config



Hi !

This is the second beta <g> of the 
/etc/interfaces
/etc/init.d/interfaces
/etc/routes
/etc/inid.d/routes
scripts.

For those who did not read this thread: These scripts should come into
netbase to provide a common place where network devices can be inserted
and get started. 

The following things are yet provided or still missing:
+ loopback interfaces
+ ethernet interfaces
	+ inet
	+ dhcp
	- inet6
	- ipx
- packet radio stuff (ehh, help me !)	
+ reading all kindes of routes from /etc/routes


read you,

  -christian-

-- 
Linux - the choice of the GNU generation.          Join the Debian Project 
                                                     http://www.debian.org 
Christian Hammers * Oberer Heidweg 35 * D-52477 Alsdorf * Tel: 02404-25624
50 3C 52 26 3E 52 E7 20  D2 A1 F5 16 C4 C9 D4 D3  1024/925BCB55 1997/11/01

Attachment: interfaces.sh
Description: Bourne shell script

# /etc/interfaces 
#
# This file lists all network interfaces that gets started at boot time.
# 
# The format is as follows: interface option1=value1 option2=value2 option3=value3
# * Long lines can be split in the common way by adding a '\' as last
#   character of the split line.
# * The value can be put in quotation marks e.g. noauto="yes"
# * Comments are everything from a '#' to the end of line
# * Additional strings are appended to the commandline without further processing
#
# The following interface classes are recognised:
# lo			The loopback device
#	noauto=yes	do NOT start at boottime
#
# eth[n]		The ethernet devices
#	ip		Internet address or one of the following
#			dhcp, bootp, dhcpv6, external
#	cidr=24		specify the "netbits" instead of a netmask		
#	netmask		netmask (will override cidr!)
#	command		override ifconfig (resp. dhcpcd for DHCP)
#	noauto=yes	do NOT start at boottime
#	startscript	a script that is run when starting the interface
#	stopscript	a script that is run when stopping the interface
#
# Interfaces with the noauto=yes flag set can be [de]activated
# manually by "/etc/interfaces [start|stop] <interface>" 
#
lo

eth0 \
	ip=192.168.1.2 \
	cidr=19 \
	startscript="/tmp/test.sh" 
	

eth1 \
	ip=194.77.132.133 \
	cidr=28

eth2 \
	ip=dhcp \
	--my-own-option \
	gugu=gaga \		# such options should be commented
	noauto=yes	 

eth3 \
	ip=192.168.130.150 \
	netmask=255.255.224.0

Attachment: routes.sh
Description: Bourne shell script

# /etc/routes
#
# This file lists all the routes /etc/routes will setup or shut down when
# invoked as /etc/routes [start|stop].
#
# The format is rather simple. It is just like the route(8) command like
# syntax except of the following points:
# * you have to write the address family as first word (inet,inet6...)
# * you have to omit the add or del statement
# * long lines can be split in the common way by adding a '\' as last
#   character of the split line.
# * comments are everything from a '#' to the end of line
#
# Examples:
# inet -host 192.168.0.1 netmask 255.255.255.0 eth0
# inet default gw 192.168.1.2
# inet -net 192.168.2.3 netmask 255.255.255.0 reject
#
inet -host 194.77.132.136 eth0
inet -net 194.77.150.0 netmask 255.255.255.224 mss 1024 eth0
inet -net 192.168.0.0 netmask 255.255.0.0 reject

Reply to: