Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Mar 2013 08:57:56 -0500
From:      Yasir hussan <kolyasir@gmail.com>
To:        Daniel Nebdal <dnebdal@gmail.com>
Cc:        Zaphod Beeblebrox <zbeeble@gmail.com>, Current <freebsd-current@freebsd.org>
Subject:   Re: multi-homing in freebsd
Message-ID:  <CAMwCe3QXarU%2BRh5qJWF-oY9aZiM_%2BY=2EcG02QAHVuq_mkOeuQ@mail.gmail.com>
In-Reply-To: <CA%2Bt49PJ0AarR%2Bdtc3dRfCg=ZmRHA730gCah3ZqBobFdVBmhJCg@mail.gmail.com>
References:  <CAMwCe3T1f8Ze8AnS%2BAXzPxatH522qUH0brGTE5ZmduxazPyivA@mail.gmail.com> <CAMwCe3QgcQeL=yhxAkNLxKLESHJkRrMT=sFKds_Gqa29KQ_Atw@mail.gmail.com> <CACpH0Mf=sxF8eFVeSA9FMBHv-PpreFPD5LKzLE90xQxP2TBAKg@mail.gmail.com> <CAMwCe3SXygBW1seqiJuB9vGTpHJLs1udsPZ2%2B3hjm5dK5du2-g@mail.gmail.com> <CA%2Bt49PJ0AarR%2Bdtc3dRfCg=ZmRHA730gCah3ZqBobFdVBmhJCg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
i want to have differnet ips`s and each should have different interface, it
could be a virtual interface. like u can made it like

*ifconfig arge0.1 create*

but each ip should able to access from differnet machine

On Sat, Mar 9, 2013 at 7:29 AM, Daniel Nebdal <dnebdal@gmail.com> wrote:

> Going by Zaphod's recommendation of using a /32 for each IP, how about
> this?
>
> ifconfig arge0 inet 192.168.1.100/32
> ifconfig arge0 alias 192.169.1.100/32
>
> I wouldn't recommend 192.169, though - only 192.168.x.x is reserved
> for private networks, and 192.169 is a valid IP-routable prefix,
> assigned to some US company.
> To be exact: The ranges from RFC1918 are 10.0.0.0/8, 172.16.0.0 /20
> and 192.168.0.0/24.
>
> On Sat, Mar 9, 2013 at 9:57 AM, Yasir hussan <kolyasir@gmail.com> wrote:
> > Kindly will u give me example with cammand line, which can test on my
> > freebsd machine, i want two ips 192.168.1.100 and 192.169.1.100 to be
> work
> > on single network interface, my default interface for network is arge0
> >
> > On Sat, Mar 9, 2013 at 3:08 AM, Zaphod Beeblebrox <zbeeble@gmail.com>
> wrote:
> >
> >> On Sat, Mar 9, 2013 at 3:04 AM, Yasir hussan <kolyasir@gmail.com>
> wrote:
> >>
> >>> i just want to run multiple IPs for single network card in freebsd
> >>>
> >>>
> >> OK.  A better question.  About the only caution I can give here
> (assuming
> >> you don't mean something more interesting like vlans and whatnot) is
> that
> >> if both IP addresses are on the SAME network, use a /32 as the netmask
> (it
> >> works better).  If they are on different networks, specify the netmask
> as
> >> normal.
> >>
> >> You may, at this point,  need a method to choose which IP address to use
> >> for any particular connection.  There's a pile of documentation waiting
> for
> >> you.
> >>
> >>
> > _______________________________________________
> > freebsd-current@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "
> freebsd-current-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMwCe3QXarU%2BRh5qJWF-oY9aZiM_%2BY=2EcG02QAHVuq_mkOeuQ>