Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jan 2001 21:08:41 +0000
From:      slamdunk <slamdunk@neophile.net>
To:        Jeff Soule <jsoule@webcrossing.com>, Tony Wells <awells@journalstar.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Multiple IPs and domains on the same box
Message-ID:  <4.3.2.7.2.20010119210811.02718ca8@pop3.neophile.net>
In-Reply-To: <0101191050480I.04750@stinky.scraprap.com>
References:  <4.3.2.7.2.20010119175020.00b8df08@pop3.neophile.net> <4.3.2.7.2.20010119135954.026d0008@mail.btinternet.com> <4.3.2.7.2.20010119175020.00b8df08@pop3.neophile.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Any clarification on the "aliases" bit please?

Jerry

At 10:50 19/01/2001 -0800, Jeff Soule wrote:
>actualy the rc.conf line should look like:
>ifconfig_fxp0_alias0="inet xxx.xxx.xxx.xxx netmask 255.255.255.255"
>
>if you want to add yet another alias it would be:
>ifconfig_fxp0_alias1="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.local
> > 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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex> 100baseTX
> > 10baseT/UTP <full-duplex> 10baseT/UTP
> > lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
> > sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
> > ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
> >          inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
> >          inet6 ::1 prefixlen 128
> >          inet 127.0.0.1 netmask 0xff000000
> > gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> >          inet6 fe80::208:c7ff:fecb:ef97%gif0 prefixlen 64 scopeid 0x6
> > gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> >          inet6 fe80::208:c7ff:fecb:ef97%gif1 prefixlen 64 scopeid 0x7
> > gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> >          inet6 fe80::208:c7ff:fecb:ef97%gif2 prefixlen 64 scopeid 0x8
> > gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> >          inet6 fe80::208:c7ff:fecb:ef97%gif3 prefixlen 64 scopeid 0x9
> > stf0: flags=8000<MULTICAST> mtu 1280
> >          inet6 fe80::208:c7ff:fecb:ef97%stf0 prefixlen 64 scopeid 0xa
> > faith0: flags=8000<MULTICAST> mtu 1500
> >
> > One bit I dont understand is the alias - can you give an example or point
> > 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 alias
> > >
> > >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 please
> > > > let me know, or advise me off list.
> > > >
> > > > Background
> > > > I have a hosted box where I work which is xxx.xxx.xxx.17 which resolves
> > > > to xxxxxxxxx.net - I am also the owner of xxxxxxxxx.org and have been
> > > > assigned xxx.xxx.xxx.17 for use with it. I also do my own DNS and have
> > > > friends box do secondary DNS.
> > > >
> > > > I can use both the domains from the same box (with a single IP) using
> > > > 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" work) I
> > > > have asked our service provider to update their RDNS records to reflect
> > > > 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="us-ascii"; name="Attachment: 1"
>Content-Transfer-Encoding: 7bit
>Content-Description:
>----------------------------------------
>
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-questions" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.3.2.7.2.20010119210811.02718ca8>