Date: Sat, 20 Jan 2001 00:23:25 +0000 From: slamdunk <slamdunk@neophile.net> To: questions@FreeBSD.ORG Subject: Re: Multiple IPs and domains on the same box Message-ID: <4.3.2.7.2.20010120001442.026c1200@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
--=====================_91596609==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
OK
I have added the following to the rc.local :-
ifconfig_fxp0_alias0="inet 195.224.237.17 netmask 255.225.255.255"
And have run the command from the command line
netstat -nr gives :-
Internet:
Destination Gateway Flags Netif Expire
default 195.224.237.1 UGSc fxp0
127.0.0.1 127.0.0.1 UH lo0
195.224.237/26 link#1 UC fxp0 =>
195.224.237.1 0:10:7b:74:5:61 UHLW fxp0 1195
195.224.237.7 0:8:c7:cb:ef:97 UHLW lo0
195.224.237.11 0:40:33:59:cd:49 UHLW fxp0 191
195.224.237.16 0:a0:24:70:cb:12 UHLW fxp0 440
195.224.237.17 0:8:c7:cb:ef:97 UHLWb lo0 =>
195.224.237.17&0xffe1ffff link#1 UC fxp0 =>
195.224.237.63 ff:ff:ff:ff:ff:ff UHLWb fxp0
And ifconfig fxp0 gives :-
root@neophile:/etc >ifconfig fxp0
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::208:c7ff:fecb:ef97%fxp0 prefixlen 64 scopeid 0x1
inet 195.224.237.7 netmask 0xffffffc0 broadcast 195.224.237.63
inet 195.224.237.17 netmask 0xffe1ffff broadcast 195.254.237.17
ether 00:08:c7:cb:ef:97
media: autoselect (100baseTX) status: active
It seems to me that the broadcast address on .17 may be wrong
Also pinging the IP from the same box gives :-
PING 195.224.237.17 (195.224.237.17): 56 data bytes
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
ping: sendto: Can't assign requested address
I have also gone through the discussion at:-
http://www.stl-group.com/4.0/library/kbase/os/5.shtml
which describes exactly what I want to do.
I must be missing something here - But damned if I can figure out what :)
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:
>----------------------------------------
--=====================_91596609==_.ALT
Content-Type: text/html; charset="us-ascii"
<html>
<b>OK <br>
<br>
I have added the following to the rc.local :-<br>
i</b>fconfig_fxp0_alias0="inet 195.224.237.17 netmask
255.225.255.255"<br>
<br>
<b>And have run the command from the command line<br>
<br>
netstat -nr gives :-<br>
</b>Internet:<br>
Destination
Gateway
Flags Netif Expire<br>
default
195.224.237.1
UGSc fxp0<br>
127.0.0.1
127.0.0.1
UH lo0<br>
195.224.237/26
link#1
UC fxp0 =><br>
195.224.237.1
0:10:7b:74:5:61
UHLW fxp0 1195<br>
195.224.237.7
0:8:c7:cb:ef:97
UHLW lo0<br>
195.224.237.11 0:40:33:59:cd:49
UHLW fxp0 191<br>
195.224.237.16 0:a0:24:70:cb:12
UHLW fxp0 440<br>
195.224.237.17 0:8:c7:cb:ef:97
UHLWb lo0 =><br>
195.224.237.17&0xffe1ffff
link#1
UC fxp0 =><br>
195.224.237.63 ff:ff:ff:ff:ff:ff
UHLWb fxp0<br>
<br>
<b>And ifconfig fxp0 gives :-<br>
</b>root@neophile:/etc >ifconfig fxp0<br>
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu
1500<br>
inet6
fe80::208:c7ff:fecb:ef97%fxp0 prefixlen 64 scopeid 0x1 <br>
inet 195.224.237.7 netmask
0xffffffc0 broadcast 195.224.237.63<br>
inet 195.224.237.17 netmask
0xffe1ffff broadcast 195.254.237.17<br>
ether 00:08:c7:cb:ef:97 <br>
media: autoselect (100baseTX)
status: active<br>
<br>
<b>It seems to me that the broadcast address on .17 may be wrong<br>
<br>
Also pinging the IP from the same box gives :-<br>
</b>PING 195.224.237.17 (195.224.237.17): 56 data bytes<br>
ping: sendto: Can't assign requested address<br>
ping: sendto: Can't assign requested address<br>
ping: sendto: Can't assign requested address<br>
<br>
<b>I have also gone through the discussion at:-
<a href="http://www.stl-group.com/4.0/library/kbase/os/5.shtml" eudora="autourl">http://www.stl-group.com/4.0/library/kbase/os/5.</a><a href="http://www.stl-group.com/4.0/library/kbase/os/5.shtml" eudora="autourl">shtml<br>
</a>which describes exactly what I want to do. <br>
<br>
</b>I must be missing something here - But damned if I can figure out
what :)<br>
<br>
Jerry<br>
<br>
<br>
<br>
At 10:50 19/01/2001 -0800, Jeff Soule wrote:<br>
<blockquote type=cite cite>actualy the rc.conf line should look
like:<br>
ifconfig_fxp0_alias0="inet xxx.xxx.xxx.xxx netmask
255.255.255.255"<br>
<br>
if you want to add yet another alias it would be:<br>
ifconfig_fxp0_alias1="inet xxx.xxx.xxx.xxx netmask
255.255.255.255"<br>
<br>
and so on...<br>
<br>
/Jeff<br>
On Friday 19 January 2001 10:00, slamdunk wrote:<br>
<br>
> > Just to clarify Tony<br>
><br>
> Are you saying that the only change I need to make is to is to the
rc.local<br>
> 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>
> NameTypeIP AddressNetmaskStatus<br>
> fxp0Ethernet195.224.237.7255.255.255.192Up<br>
> lo0Loopback127.0.0.1255.0.0.0Up<br>
> Add a new interface<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<br>
> 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<br>
> 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>
> At 10:43 19/01/2001 -0600, Tony Wells wrote:<br>
> >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>
> ><br>
> >something like this:<br>
> > > 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>
> > > Hi<br>
> > ><br>
> > > I am new to list and have a couple of questions that I
hope someone<br>
> > > might help me with - If this is not appropriate for this
list please<br>
> > > let me know, 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<br>
> > > to xxxxxxxxx.net - I am also the owner of xxxxxxxxx.org
and have been<br>
> > > assigned xxx.xxx.xxx.17 for use with it. I also do my own
DNS and have<br>
> > > friends box do secondary DNS.<br>
> > ><br>
> > > I can use both the domains from the same box (with a
single IP) using<br>
> > > the 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<br>
> > > in 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<br>
<br>
----------------------------------------<br>
Content-Type: text/html; charset="us-ascii";
name="Attachment: 1"<br>
Content-Transfer-Encoding: 7bit<br>
Content-Description: <br>
----------------------------------------</blockquote></html>
--=====================_91596609==_.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.20010120001442.026c1200>
