From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075325006776.tru64-unix-managers.marc@archive.invalid> From: Jim Jones Date: Fri, 24 Nov 1995 15:41:19 +0000 To: tru64-unix-managers Subject: SUMMARY: Multi Homed Host X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075325006776 Thanks all who replied to the multi homed host question. Below are the replies I received. From: Greg Schlabs You can do this with IP alias'ing only if both ip addresses are on the same subnet. an example is: ifconfig ln0 16.140.64.244 netmask 255.255.255.0 ifconfig ln0 alias 16.140.64.240 Your aliases have to be in the same subnet as the primary interface subnet (172.70.101). Otherwise, the results are undefined and I would not be surprised to hear there are ARP and other problems. The system is not designed to work with aliases outside the subnet, which is why it's not supported. ------- From: John Banghart Basically, you have to use 'ifconfig' with the 'alias' command. For example: If I want my DEC to answer to an additional name of host2.my.dom, I would use the command 'ifconfig alias host2.my.dom', where is the interface name determined by your type of ethernet card. Mine is tu0, yours could be different. If you want this to work after a reboot, you have to add the above line somewhere in your startup. I add them to /sbin/init.d/inet and that seems to work just fine. ------ From: Eric Bennett Use the ifconfig command, alias option. I think you can alias only one address at a time. This will work for services started from inetd, which seems to understand about multiple addresses. Since they get an already-opened socket, they don't need to bind a socket to the alternate address. Servers which live on a certain port, like named, probably only bind to the primary address leaving the other unattached. In any event they don't work at the alternate address. ----- From: Sean Watson ifconfig tu0 -alias In general, look at "man ifconfig" ----- From: Roman Gollent Look at the ifconfig man page and search for the heading "alias". It will describe the exact syntax that you need. -------- From: Fritz Kleemann There is an option in command ifconfig: alias Establishes an additional network address for this interface. This is sometimes useful when changing network numbers and one wishes to accept packets addressed to the old interface. Try ifconfig alias ------ From: Pulak Rakshit Try #ifconfig ether_inter alias IP_address You can put this in the /sbin/rc3.d, startup. -------- From: Matt Theriault Jim, You must configure another network interface. I used the /usr/sbin/rcmgr command to configure 'ln0' manually with a second IP address in a different class for our Alpha running 3.0. I believe I remember seeing something in the 'Guide to Network Administration' from our original OSF/1 1.3 manuals. Anyway, here is what I had to do (in /etc/rc.config): /usr/sbin/rcmgr NUM_NETCONFIG="2" /usr/sbin/rcmgr NETDEV_1="" (same as NETDEV_0) /usr/sbin/rcmgr IFCONFIG_1=" netmask " /usr/sbin/rcinet restart to restart the network services or reboot the machine if you can. ------- From: "Lucien HERCAUD"@paribas.com Use ifconfig with the "alias" option. See the man page for ifconfig. ---------