[1810] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: configuring the net

daemon@ATHENA.MIT.EDU (Elmer Valderrama)
Wed Oct 30 10:08:26 1996

From: Elmer Valderrama <evaldera@quantum.ivic.ve>
To: redhat-list@redhat.com
Date: Wed, 30 Oct 1996 11:05:51 +0000 (GMT)
Cc: evaldera@quantum.ivic.ve (Elmer Valderrama)
In-Reply-To: <Pine.LNX.3.95.961030143835.9188B-100000@galaxy.ce.uevora.pt> from "RHS Linux User" at Oct 30, 96 02:41:29 pm
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com


 Hope the following helps,

------script begins----

 #!/bin/sh
 # in case there is no network available

 ifconfig eth0 150.186.8.19 netmask 255.255.224.0 broadcast 150.186.255.255
 route add -net 150.186.0.0 dev eth0
 route add default gw 150.186.1.18    

------script ends----

 save to file, change to executable ( "chmod +x   "), change the
 numbers to your numbers and run it.

 This is a temporal recipe, the real config goes in the file
  
 /etc/sysconfig/network-scripts/ifcfg-eth0

 and should look like this

------ifcfg-eth0 begins----

 #!/bin/sh

 #>>>Device type: Ethernet. 

 #>>>Variable declarations:
 IPADDR=150.186.8.19
 NETMASK=255.255.224.0
 BROADCAST=150.186.255.255
 NETWORK=150.186.0.0
 GATEWAY=150.186.1.18
 DEVICE=eth0
 ONBOOT=yes                   

------ifcfg-eth0 ends----


 Elmer


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post