how to add ifconfig option to /etc/network/interfaces

2008-04-04 Thread Serena Cantor
I want to add command below to /etc/network/interfaces:

ifconfig eth1:0 192.168.1.100

Below is my /etc/network/interfaces file:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0
#   gateway 192.168.0.100


I use sarge! Thanks!




  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to add ifconfig option to /etc/network/interfaces

2008-04-04 Thread Johannes Wiedersich
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Serena Cantor wrote on 2008-04-04 12:59:
 I want to add command below to /etc/network/interfaces:
 
 ifconfig eth1:0 192.168.1.100
 
 Below is my /etc/network/interfaces file:
 
 auto lo
 iface lo inet loopback
 
 auto eth0
 iface eth0 inet dhcp
 
 auto eth1
 iface eth1 inet static
   address 192.168.0.1
   netmask 255.255.255.0
 # gateway 192.168.0.100
 

Try:

/etc/network/interfaces:

/===
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth1 eth1:0
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0
#   gateway 192.168.0.100

iface eth1:0 inet static
address 192.168.0.100
netmask 255.255.255.0
\===

make sure that you 'auto' eth1:0 as well to enable it on boot. I'm not
sure, if the additional netmask line is required or not.

HTH,

Johannes

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH9jgRC1NzPRl9qEURAuGlAJkBp9gLFOhlwHtFmsc5XZvTw6aPRgCfan6z
qlaxVqGVXlqZrSc8f2puBu4=
=9MVs
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]