tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: UnixAdmin <jasperh () somchem ! denel ! co ! za>
To: tru64-unix-managers
Subject: SUMMARY: Problem with second IP on one interface
Date: Wed, 13 Jan 1999 12:44:03 +0000	[thread overview]
Message-ID: <96079034715561.tru64-unix-managers.marc@archive.invalid> (raw)


My question was:
> 
> I have configured a second IP for my machine by changing
> /etc/rc.config in the following way:
> 
> NUM_NETCONFIG="2"
> NETDEV_0="tu0"
> NETDEV_1="tu0"
> IFCONFIG_0="aaa.bbb.ccc.ddd netmask 255.255.255.0"
> IFCONFIG_1="alias aaa.bbb.xxx.zzz netmask 255.255.255.0"
> 
> After rebooting, netstat shows that the new address is up and ok,
> but other hosts on the network do not see the new address.
> 
= = = = = = = = = = = = = = = = = = = = = = = = = = =

The following answer came from 
Hannes Wenzel <hannes.wenzel@telekom.at>

If you want to setup a second ip address to one interface, you can't 
configure it in /etc/rc.config. NETDEV_1 is the second physically 
interface.

Better do it as follows:

on the command line issue the command:

# ifconfig tu0 alias <ip-address> netmask 255.255.255.0

then insert a line to the file /etc/inet.local like the above command.

After issuing this command, the second address is immediately 
active. The entry in /etc/inet.local is for the next boot.
In this way you can configure any number of addresses for one 
interface.

now you have to add a static route:

# route add -net aaa.bbb.xxx aaa.bbb.xxx.zzz netmask 
255.255.255.0

and add folowing line to /etc/routes (available after reboot)

-net aaa.bbb.xxx aaa.bbb.xxx.zzz netmask 255.255.255.0


Also thanks to the following:

choonpheng@tdb.gov.sg
"Benjamin Smith" <smith.beno@epamail.epa.gov>
"Stephen Nash" <Stephen_Nash@ssga.statestreet.com>
"Steve Grocott" <sgrocott@macan.com>
"Mark Ray" <Caprica7@aol.com>
"Andrew Johnson" <AJohnson@mail.nbme.org>
Lucien_HERCAUD@paribas.com

= = = = = = = = = = = = = = = = = = = = = =


________________________________________________________
Jasper Hoon, debis IT Services SA.
Phone: +27 21 850-2477 Fax: +27 21 850-3064
e-mail: jasperh@debis.co.za
________________________________________________________

                 reply	other threads:[~1999-01-13 12:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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