Date: Tue, 18 Sep 2001 08:32:14 -0700 (PDT) From: "Brent N. Hunter" <brentnhunter@yahoo.com> To: Matt Finlay <matt@ipperformance.com>, Brent@SpiritRising.TV Cc: Brent <misterb@cybertours.com>, questions@FreeBSD.ORG Subject: Re: Adding IP Addresses to a FreeBSD box Message-ID: <20010918153214.54944.qmail@web20507.mail.yahoo.com> In-Reply-To: <3BA767F8.8AE7DC@ipperformance.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks, Matt. I cannot ping it either on that machine or on any other machine I have access to. Is the netmask setting I mentioned in my previous email OK? Does anything else need to be changed or is the /etc/rc.conf file the only place where IP address info is stored and configured? Also is it OK for me to have a different range of IP addresses on the same machine? For example, here is what I have in /etc/rc.conf now: #New addresses: ifconfig_xl0_alias0="inet 208.184.116.19 netmask 255.255.255.192" ifconfig_xl0_alias1="inet 208.184.116.48 netmask 255.255.255.192" ifconfig_xl0_alias2="inet 208.184.116.21 netmask 255.255.255.192" ifconfig_xl0_alias3="inet 208.184.116.22 netmask 255.255.255.192" ifconfig_xl0_alias4="inet 208.184.116.23 netmask 255.255.255.192" ifconfig_xl0_alias5="inet 208.184.116.24 netmask 255.255.255.192" ifconfig_xl0_alias6="inet 208.184.116.25 netmask 255.255.255.192" ifconfig_xl0_alias7="inet 208.184.116.26 netmask 255.255.255.192" ifconfig_xl0_alias8="inet 208.184.116.27 netmask 255.255.255.192" ifconfig_xl0_alias9="inet 208.184.116.28 netmask 255.255.255.192" ifconfig_xl0_alias10="inet 208.184.116.29 netmask 255.255.255.192" ifconfig_xl0_alias11="inet 208.184.116.30 netmask 255.255.255.192" ifconfig_xl0_alias12="inet 208.184.116.31 netmask 255.255.255.192" ifconfig_xl0_alias13="inet 208.184.116.32 netmask 255.255.255.192" ifconfig_xl0_alias14="inet 208.184.116.33 netmask 255.255.255.192" ifconfig_xl0_alias15="inet 208.184.116.44 netmask 255.255.255.192" ifconfig_xl0_alias16="inet 208.184.116.45 netmask 255.255.255.192" ifconfig_xl0_alias17="inet 208.184.116.46 netmask 255.255.255.192" ifconfig_xl0_alias18="inet 208.184.116.20 netmask 255.255.255.192" ifconfig_xl0_alias19="inet 208.184.116.49 netmask 255.255.255.192" ifconfig_xl0_alias20="inet 208.184.116.50 netmask 255.255.255.192" ifconfig_x10_alias21="inet 207.126.103.75 netmask 255.255.255.192" The entry I added (and that is not responding to pings) is the last entry. Brent --- Matt Finlay <matt@ipperformance.com> wrote: > have you tried to ping the ip from another machine? > or are you doing it > from the same machine with all of the interfaces? > > if you are trying to ping from the machine(with the > network interface) > than what will happen is the interface will send out > an arp request to > the network trying to get the interface's MAC > address. interfaces are > not allowed to send out and recieve packets to > itself... that is what > loopback is for. so you need to let the machine > know that it owns the > interface. > > you can do this by manipulating the arp table. > > arp -a... should show all entries in the table. > francis (10.0.17.150) at 0:b0:99:99:99:0 permanent > [ethernet] > > if the alias address is 10.0.17.151 > what you need to do is > arp -s 10.0.17.151 0:b0:99:99:99:0 > > once the alias address is in the arp table you > should be able to ping > from the host machine. > > "Brent N. Hunter" wrote: > > > I did this already, reset the machine and the new > IP > > address still does not respond to pings. > > > > I noticed, however, that I have a different > netmask > > setting. Instead of 255.255.255.0 , what's in > there > > for all my other IP addresses (that my Unix admin > set > > up while he was still around!) is 255.255.255.192. > Is > > this correct? The IP address range is also > different; > > my ISP gave me a new range of IP addresses. > > > > Are there any other file or files or settings that > > need to be changed in addition to the /etc/rc.conf > > file? > > > > Thank you for all of your help! > > > > Brent > > > > --- Matt Finlay <matt@ipperformance.com> wrote: > > > if you are trying to get one interface to handle > > > multiple ip addresses > > > than you need to configure each additional ip > > > address as an alias. > > > > > > you can do this by the command line or in > > > /etc/rc.conf: > > > by the command line: > > > ifconfig ed1 10.0.1.150 netmask > 255.255.255.0 > > > alias > > > in /etc/rc.conf: > > > if this is your first interface... > > > ifconfig_ed1="inet 192.168.0.5 netmask > > > 255.255.255.0" > > > this is how you can create an alias. > > > ifconfig_ed1_alias0="inet 192.168.0.6 > netmask > > > 255.255.255.0" > > > > > > if you do a 'man rc.conf' you can get more > > > information > > > > > > Brent wrote: > > > > > > > go to /etc/rc.conf you can change the IP > > > there by doing something > > > > > > > > ifconfig_ed1="inet 192.168.0.5 netmask > > > 255.255.255.0" > > > > > > > > ed1 is what your ethernet device name is. > > > > > > > > B > > > > > > > > ----- Original Message ----- > > > > From: "Brent N. Hunter" > <brentnhunter@yahoo.com> > > > > To: <questions@FreeBSD.ORG> > > > > Sent: Tuesday, September 18, 2001 10:39 AM > > > > Subject: Adding IP Addresses to a FreeBSD box > > > > > > > > > Do you know what file or files need to be > > > changed to > > > > > get a new IP address onto a FreeBSD box? (to > > > host web > > > > > pages on multiple domains) > > > > > > > > > > Thank you! > > > > > > > > > > Brent > > > > > > > > > > > > > > > ===== > > > > > Brent N. Hunter, President > > > > > Spirit Rising Productions > > > > > http://www.spiritrising.tv > > > > > Email: Brent@SpiritRising.TV > > > > > Personal Web: > http://www.the-park.com/brent.htm > > > > > Office: 415-701-7779, FAX: 415-626-9989 > > > > > > > > > > > > > > > > > > > __________________________________________________ > > > > > Terrorist Attacks on U.S. - How can you > help? > > > > > Donate cash, emergency relief information > > > > > > > > > > > http://dailynews.yahoo.com/fc/US/Emergency_Information/ > > > > > > > > > > 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 > > > > > > > ===== > > Brent N. Hunter, President > > Spirit Rising Productions > > http://www.spiritrising.tv > > Email: Brent@SpiritRising.TV > > Personal Web: http://www.the-park.com/brent.htm > > Office: 415-701-7779, FAX: 415-626-9989 > > > > __________________________________________________ > > Terrorist Attacks on U.S. - How can you help? > > Donate cash, emergency relief information > > > http://dailynews.yahoo.com/fc/US/Emergency_Information/ > ===== Brent N. Hunter, President Spirit Rising Productions http://www.spiritrising.tv Email: Brent@SpiritRising.TV Personal Web: http://www.the-park.com/brent.htm Office: 415-701-7779, FAX: 415-626-9989 __________________________________________________ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ 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?20010918153214.54944.qmail>
