Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: peter@abbnm.com (Peter da Silva)
Subject: Re: 2 IP's on 1 NIC ?
Date: Fri, 31 Oct 2003 16:48:39 +0000 (UTC)	[thread overview]
Message-ID: <bnu3p7$28bs$1@jeeves.eng.abbnm.com> (raw)
In-Reply-To: 3544997.1067601360@dbforums.com

In article <3544997.1067601360@dbforums.com>,
sung min cho  <member46343@dbforums.com> wrote:
> Is that possible, have 2 IP's on same NIC (Interface) ?

The option to ifconfig is alias, eg:

# ifconfig tu0 alias 192.168.0.101 netmask 255.255.255.0

To make it permanent... in the rc.config file, before:

NUM_NETCONFIG="2"
MAX_NETDEVS="24"
NETDEV_0="tu0"
NETDEV_1="tu1"
NETDEV_2=
IFCONFIG_0="10.0.0.150 netmask 255.255.255.0 speed 100 broadcast 10.0.0.255"
IFCONFIG_1="192.168.0.150 netmask 255.255.255.0 speed 200"
IFCONFIG_2=

After:

NUM_NETCONFIG="3"
MAX_NETDEVS="24"
NETDEV_0="tu0"
NETDEV_1="tu1"
NETDEV_2="tu1"
IFCONFIG_0="10.0.0.150 netmask 255.255.255.0 speed 100 broadcast 10.0.0.255"
IFCONFIG_1="192.168.0.150 netmask 255.255.255.0 speed 200"
IFCONFIG_2="alias 192.168.0.101 netmask 255.255.255.0"

-- 
I've seen things you people can't imagine. Chimneysweeps on fire over the roofs
of London. I've watched kite-strings glitter in the sun at Hyde Park Gate.  All
these things will be lost in time, like chalk-paintings in the rain.   `-_-'
Time for your nap.  | Peter da Silva | Har du kramat din varg, idag?    'U`


      parent reply	other threads:[~2003-10-31 16:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-31 11:56 2 IP's on 1 NIC ? sung min cho
2003-10-31 12:57 ` [Sauron De Mordor]
2003-10-31 16:48 ` Peter da Silva [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox