SUMMARY: Problem with second IP on one interface

From: UnixAdmin <jasperh_at_somchem.denel.co.za>
Date: Wed, 13 Jan 1999 14:44:03 +0200

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_at_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_at_tdb.gov.sg
"Benjamin Smith" <smith.beno_at_epamail.epa.gov>
"Stephen Nash" <Stephen_Nash_at_ssga.statestreet.com>
"Steve Grocott" <sgrocott_at_macan.com>
"Mark Ray" <Caprica7_at_aol.com>
"Andrew Johnson" <AJohnson_at_mail.nbme.org>
Lucien_HERCAUD_at_paribas.com

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


________________________________________________________
Jasper Hoon, debis IT Services SA.
Phone: +27 21 850-2477 Fax: +27 21 850-3064
e-mail: jasperh_at_debis.co.za
________________________________________________________
Received on Thu Jan 14 1999 - 16:30:37 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT