Date: Fri, 19 Jan 2001 18:00:29 +0000 From: slamdunk <slamdunk@neophile.net> To: 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.20010119175020.00b8df08@pop3.neophile.net> In-Reply-To: <3A686EB0.838B6992@journalstar.com> References: <4.3.2.7.2.20010119135954.026d0008@mail.btinternet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=====================_68624828==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
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
--=====================_68624828==_.ALT
Content-Type: text/html; charset="us-ascii"
<html>
Just to clarify Tony<br>
<br>
Are you saying that the only change I need to make is to is to the
rc.local by adding a command similar to:-<br>
ifconfig fxp0 inet 195.224.237.17 netmask 255.255.255.192 alias<br>
<br>
And run the command to start it off without a reboot?<br>
<br>
The output from the relevent module of webmin shows :-<br>
<table border=1>
<tr><th width=58><b>Name</b><td width=109><b>Type</b></td><td width=174><b>IP
Address</b></td><td width=199><b>Netmask</b></td><td width=83><b>Status</b></td></tr>
<tr><td width=58><font color="#0000FF"><u>fxp0</u></font><td width=109>Ethernet</td><td width=174>195.224.237.7</td><td width=199>255.255.255.192</td><td width=83>Up</td></tr>
<tr><td width=58><font color="#0000FF"><u>lo0</u></font><td width=109>Loopback</td><td width=174>127.0.0.1</td><td width=199>255.0.0.0</td><td width=83>Up</td></tr>
</table>
<font color="#0000FF"><u>Add a new interface</u></font> <br>
<br>
This is the output of ifconfig -a<br>
<br>
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu
1500<br>
inet 195.224.237.7 netmask
0xffffffc0 broadcast 195.224.237.63<br>
inet6
fe80::208:c7ff:fecb:ef97%fxp0 prefixlen 64 scopeid 0x1 <br>
ether 00:08:c7:cb:ef:97 <br>
media: autoselect (100baseTX)
status: active<br>
supported media: autoselect
100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex>
10baseT/UTP<br>
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500<br>
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552<br>
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500<br>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384<br>
inet6 fe80::1%lo0 prefixlen 64
scopeid 0x5 <br>
inet6 ::1 prefixlen 128 <br>
inet 127.0.0.1 netmask
0xff000000 <br>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280<br>
inet6
fe80::208:c7ff:fecb:ef97%gif0 prefixlen 64 scopeid 0x6 <br>
gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280<br>
inet6
fe80::208:c7ff:fecb:ef97%gif1 prefixlen 64 scopeid 0x7 <br>
gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280<br>
inet6
fe80::208:c7ff:fecb:ef97%gif2 prefixlen 64 scopeid 0x8 <br>
gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280<br>
inet6
fe80::208:c7ff:fecb:ef97%gif3 prefixlen 64 scopeid 0x9 <br>
stf0: flags=8000<MULTICAST> mtu 1280<br>
inet6
fe80::208:c7ff:fecb:ef97%stf0 prefixlen 64 scopeid 0xa <br>
faith0: flags=8000<MULTICAST> mtu 1500<br>
<br>
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?<br>
<br>
Do I not need to make further changes to named.conf?<br>
<br>
I appreciate the help so far<br>
<br>
Jerry<br>
<br>
<br>
At 10:43 19/01/2001 -0600, Tony Wells wrote:<br>
<blockquote type=cite cite>Once the DNS records are correct, you just
need to get your machine<br>
listening to those IP's. You can do this through the
'ifconfig'<br>
command and setting up aliases for your NIC. The command will
look<br>
something like this:<br>
<br>
<x-tab> </x-tab>>
ifconfig ep0 inet xxx.xxx.xxx.17 netmask 255.255.255.255 alias<br>
<br>
Your network device might be different, if you don't know what it
is<br>
named just do an 'ifconfig -a' and that will show you all your<br>
interfaces.<br>
<br>
Don't forget to add the command to rc.local or such to make it<br>
permanent at boot-time.<br>
<br>
slamdunk wrote:<br>
> <br>
> Hi<br>
> <br>
> I am new to list and have a couple of questions that I hope someone
might<br>
> help me with - If this is not appropriate for this list please let
me know,<br>
> or advise me off list.<br>
> <br>
> Background<br>
> I have a hosted box where I work which is xxx.xxx.xxx.17 which
resolves to<br>
> xxxxxxxxx.net - I am also the owner of xxxxxxxxx.org and have been
assigned<br>
> xxx.xxx.xxx.17 for use with it. I also do my own DNS and have
friends box<br>
> do secondary DNS.<br>
> <br>
> I can use both the domains from the same box (with a single IP)
using the<br>
> following entry from named.conf :-<br>
> <br>
> zone "." {<br>
> type
hint;<br>
> file
"named.root";<br>
> };<br>
> <br>
> zone "0.0.127.IN-ADDR.ARPA" {<br>
> type
master;<br>
> file
"localhost.rev";<br>
> };<br>
> <br>
> zone "neophile.net" {<br>
> type
master;<br>
> file
"pri/net/neo.net";<br>
> };<br>
> <br>
> zone "darkcyde.org" {<br>
> type
master;<br>
> file
"pri/org/dark.org";<br>
> };<br>
> <br>
> I now wish to use each domain using diffierent IPs (the current .7
for<br>
> neophile.net and the new .17 for darkcyde.org) on the same box.
I<br>
> understand this is possible (and in fact this is how
"bouncers" work) I<br>
> have asked our service provider to update their RDNS records to
reflect<br>
> that .17 should resolve to "the.darkcyde.org"<br>
> <br>
> Can anyone advise me please how to set this up - or at least point
me in<br>
> the right direction for further info.<br>
> <br>
> Much appreciated<br>
> <br>
> Jerry<br>
> slamdunk@neophile.net<br>
> <br>
> To Unsubscribe: send mail to majordomo@FreeBSD.org<br>
> with "unsubscribe freebsd-questions" in the body of the
message</blockquote></html>
--=====================_68624828==_.ALT--
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.20010119175020.00b8df08>
