From owner-freebsd-questions Fri Jan 19 10:52:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from stinky.scraprap.com (scraprap.com [64.0.151.116]) by hub.freebsd.org (Postfix) with ESMTP id 52FB537B401 for ; Fri, 19 Jan 2001 10:52:07 -0800 (PST) Received: from localhost (localhost [[UNIX: localhost]]) by stinky.scraprap.com (8.11.0/8.11.0) id f0JIomB08314; Fri, 19 Jan 2001 10:50:48 -0800 From: Jeff Soule Organization: WebCrossing Inc Date: Fri, 19 Jan 2001 10:50:48 -0800 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="iso-8859-1" Cc: questions@FreeBSD.ORG To: slamdunk , Tony Wells References: <4.3.2.7.2.20010119135954.026d0008@mail.btinternet.com> <4.3.2.7.2.20010119175020.00b8df08@pop3.neophile.net> In-Reply-To: <4.3.2.7.2.20010119175020.00b8df08@pop3.neophile.net> Subject: Re: Multiple IPs and domains on the same box MIME-Version: 1.0 Message-Id: <0101191050480I.04750@stinky.scraprap.com> Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG actualy the rc.conf line should look like: ifconfig_fxp0_alias0=3D"inet xxx.xxx.xxx.xxx netmask 255.255.255.255" if you want to add yet another alias it would be: ifconfig_fxp0_alias1=3D"inet xxx.xxx.xxx.xxx netmask 255.255.255.255" and so on... /Jeff On Friday 19 January 2001 10:00, slamdunk wrote: > > Just to clarify Tony > > Are you saying that the only change I need to make is to is to the rc.l= ocal > by adding a command similar to:- > ifconfig fxp0 inet 195.224.237.17 netmask 255.255.255.192 alias > > And run the command to start it off without a reboot? > > The output from the relevent module of webmin shows :- > NameTypeIP AddressNetmaskStatus > fxp0Ethernet195.224.237.7255.255.255.192Up > lo0Loopback127.0.0.1255.0.0.0Up > Add a new interface > > This is the output of ifconfig -a > > fxp0: flags=3D8843 mtu 1500 > inet 195.224.237.7 netmask 0xffffffc0 broadcast 195.224.237.63 > inet6 fe80::208:c7ff:fecb:ef97%fxp0 prefixlen 64 scopeid 0x1 > ether 00:08:c7:cb:ef:97 > media: autoselect (100baseTX) status: active > supported media: autoselect 100baseTX 100baseTX > 10baseT/UTP 10baseT/UTP > lp0: flags=3D8810 mtu 1500 > sl0: flags=3Dc010 mtu 552 > ppp0: flags=3D8010 mtu 1500 > lo0: flags=3D8049 mtu 16384 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 > gif0: flags=3D8010 mtu 1280 > inet6 fe80::208:c7ff:fecb:ef97%gif0 prefixlen 64 scopeid 0x6 > gif1: flags=3D8010 mtu 1280 > inet6 fe80::208:c7ff:fecb:ef97%gif1 prefixlen 64 scopeid 0x7 > gif2: flags=3D8010 mtu 1280 > inet6 fe80::208:c7ff:fecb:ef97%gif2 prefixlen 64 scopeid 0x8 > gif3: flags=3D8010 mtu 1280 > inet6 fe80::208:c7ff:fecb:ef97%gif3 prefixlen 64 scopeid 0x9 > stf0: flags=3D8000 mtu 1280 > inet6 fe80::208:c7ff:fecb:ef97%stf0 prefixlen 64 scopeid 0xa > faith0: flags=3D8000 mtu 1500 > > One bit I dont understand is the alias - can you give an example or poi= nt > me in the right direction for some docs on this matter perhaps? > > Do I not need to make further changes to named.conf? > > I appreciate the help so far > > Jerry > > At 10:43 19/01/2001 -0600, Tony Wells wrote: > >Once the DNS records are correct, you just need to get your machine > >listening to those IP's. You can do this through the 'ifconfig' > >command and setting up aliases for your NIC. The command will look > > > >something like this: > > > ifconfig ep0 inet xxx.xxx.xxx.17 netmask 255.255.255.255 al= ias > > > >Your network device might be different, if you don't know what it is > >named just do an 'ifconfig -a' and that will show you all your > >interfaces. > > > >Don't forget to add the command to rc.local or such to make it > >permanent at boot-time. > > > >slamdunk wrote: > > > Hi > > > > > > I am new to list and have a couple of questions that I hope someone > > > might help me with - If this is not appropriate for this list pleas= e > > > let me know, or advise me off list. > > > > > > Background > > > I have a hosted box where I work which is xxx.xxx.xxx.17 which reso= lves > > > to xxxxxxxxx.net - I am also the owner of xxxxxxxxx.org and have be= en > > > assigned xxx.xxx.xxx.17 for use with it. I also do my own DNS and h= ave > > > friends box do secondary DNS. > > > > > > I can use both the domains from the same box (with a single IP) usi= ng > > > the following entry from named.conf :- > > > > > > zone "." { > > > type hint; > > > file "named.root"; > > > }; > > > > > > zone "0.0.127.IN-ADDR.ARPA" { > > > type master; > > > file "localhost.rev"; > > > }; > > > > > > zone "neophile.net" { > > > type master; > > > file "pri/net/neo.net"; > > > }; > > > > > > zone "darkcyde.org" { > > > type master; > > > file "pri/org/dark.org"; > > > }; > > > > > > I now wish to use each domain using diffierent IPs (the current .7 = for > > > neophile.net and the new .17 for darkcyde.org) on the same box. I > > > understand this is possible (and in fact this is how "bouncers" wor= k) I > > > have asked our service provider to update their RDNS records to ref= lect > > > that .17 should resolve to "the.darkcyde.org" > > > > > > Can anyone advise me please how to set this up - or at least point = me > > > in the right direction for further info. > > > > > > Much appreciated > > > > > > Jerry > > > slamdunk@neophile.net > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message ---------------------------------------- Content-Type: text/html; charset=3D"us-ascii"; name=3D"Attachment: 1" Content-Transfer-Encoding: 7bit Content-Description:=20 ---------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message