Unix and Linux Tips and Stuff

Your Ad Here

Tuesday, June 27, 2006

SETTING TWO IP ADDRESS in ONE LAN card or NIC

SETTING TWO IP ADDRESS in ONE LAN card or NIC.

Two options either you add it at /etc/netword/interfaces or you set using ifconfig


1. TO set using IFCONFIG (temporary)

ifconfig eth1:1 netmask 255.255.255.0


2. TO add permanently

for debian flavors:

edit
/etc/network/interfaces

iface eth1:1 inet static
address
netmask
broadcast
gateway

7 Comments:

Post a Comment

<< Home