From owner-freebsd-questions Fri Jan 19 16:23:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.neophile.net (neophile.net [195.224.237.7]) by hub.freebsd.org (Postfix) with ESMTP id 36A4D37B400 for ; Fri, 19 Jan 2001 16:23:07 -0800 (PST) Received: from host213-121-120-178.btopenworld.com ([213.121.120.178] helo=celly.neophile.net) by mail.neophile.net with esmtp (Exim 3.15 #1) id 14JlZd-00092z-00 for questions@FreeBSD.ORG; Sat, 20 Jan 2001 00:08:05 +0000 Message-Id: <4.3.2.7.2.20010120001442.026c1200@pop3.neophile.net> X-Sender: slamdunk@pop3.neophile.net X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Sat, 20 Jan 2001 00:23:25 +0000 To: questions@FreeBSD.ORG From: slamdunk Subject: Re: Multiple IPs and domains on the same box 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> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_91596609==_.ALT" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --=====================_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 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 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=8810 mtu 1500 > > sl0: flags=c010 mtu 552 > > ppp0: flags=8010 mtu 1500 > > lo0: flags=8049 mtu 16384 > > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 > > inet6 ::1 prefixlen 128 > > inet 127.0.0.1 netmask 0xff000000 > > gif0: flags=8010 mtu 1280 > > inet6 fe80::208:c7ff:fecb:ef97%gif0 prefixlen 64 scopeid 0x6 > > gif1: flags=8010 mtu 1280 > > inet6 fe80::208:c7ff:fecb:ef97%gif1 prefixlen 64 scopeid 0x7 > > gif2: flags=8010 mtu 1280 > > inet6 fe80::208:c7ff:fecb:ef97%gif2 prefixlen 64 scopeid 0x8 > > gif3: flags=8010 mtu 1280 > > inet6 fe80::208:c7ff:fecb:ef97%gif3 prefixlen 64 scopeid 0x9 > > stf0: flags=8000 mtu 1280 > > inet6 fe80::208:c7ff:fecb:ef97%stf0 prefixlen 64 scopeid 0xa > > faith0: flags=8000 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" OK

I have added the following to the rc.local :-
i
fconfig_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-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message