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

Re: network files



On Wed, 22 Nov 2000, James Preece wrote:

> Can someone send me a valid /etc/init.d/network file with the dns entries in
> it.
> 
> I have a customer who needs to change this over and not being to handy at
> debian I would appreciate a hand.

I haven't seen DNS entries in that file.

On a 2.2 machine.  Newer Debians use /etc/init.d/networking instead.

---BEGIN---
#! /bin/sh
ifconfig lo 127.0.0.1
route add -net 127.0.0.0
IPADDR=209.15.112.65
NETMASK=255.255.252.0
NETWORK=209.15.112.0
BROADCAST=209.15.115.255
GATEWAY=209.15.112.254
ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route add -net ${NETWORK}
[ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1
---END---

--
Sanjeev "ghane" Gupta                    Mob: +65 98551208
dotXtra Pte Ltd                          Fax: +65 2275776
Singapore                                email: ghane@dotxtra.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Reply to: