From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,93ea0cc055024226 X-Google-Attributes: gidfa528,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!e9g2000prf.googlegroups.com!not-for-mail From: Doesnt Compute Newsgroups: comp.unix.tru64 Subject: Re: Virtual IP adresses Date: Tue, 21 Aug 2007 12:44:06 -0700 Organization: http://groups.google.com Message-ID: <1187725446.049169.167880@e9g2000prf.googlegroups.com> References: <1187349176.200115.59830@r34g2000hsd.googlegroups.com> NNTP-Posting-Host: 24.217.153.168 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1187725446 12222 127.0.0.1 (21 Aug 2007 19:44:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 21 Aug 2007 19:44:06 +0000 (UTC) In-Reply-To: <1187349176.200115.59830@r34g2000hsd.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: e9g2000prf.googlegroups.com; posting-host=24.217.153.168; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.unix.tru64:58 On Aug 17, 6:12 am, Norbert wrote: > Hi! > How to add/modify/remove virtula IP adresses? > Tnx in advance In case no one sent you info, if you are wanting additional IP on top of one interface, such that you have a primary IP and (many) secondary IPs, then in Tru64 you would use "alias" or "aliaslist:" (from "man ifconfig") 8. To add alias 132.50.40.35 with a netmask of 255.255.255.0 in CIDR for- mat to interface tu0, enter: # ifconfig tu0 alias 132.50.40.35/24 9. To add network addresses 40 through 50, inclusive, to subnets 18.240.32, 18.240.33, 18.240.34, 18.240.35, and 18.240.36 with a net- mask of 255.255.255.0 in CIDR format to the tu0 interface, enter: # ifconfig tu0 aliaslist 132.240.32-36.40-50/24 10. To add network addresses 40 through 50, inclusive, to subnets 18.240.32, 18.240.64, and 18.240.96 with a netmask of 255.255.255.0 in CIDR format to the tu0 interface, enter: # ifconfig tu0 aliaslist 132.240.32,64,96.40-50/24 This forms the SECONDARY addressing. Primary is added the normal way. I find it easier to setup the primary using the rc files as normal, and then in /sbin/rc3.d/S99secondary_ip (a file I create) add the above entries for any/all adapters and secondary IP. Note you may need to make changes to Apache/Samba/Squid configs, as well as others when adding IPs. Hope this helps. -robert