From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079034715561.tru64-unix-managers.marc@archive.invalid> From: UnixAdmin Date: Wed, 13 Jan 1999 12:44:03 +0000 To: tru64-unix-managers Subject: SUMMARY: Problem with second IP on one interface X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079034715561 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 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 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" "Stephen Nash" "Steve Grocott" "Mark Ray" "Andrew Johnson" 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 ________________________________________________________