Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 1998 14:10:31 -0500
From:      "David L. Aldridge" <dlac@aldridge.com>
To:        "Randall D. DuCharme" <randy@microxp.com>, freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Virtual Hosts
Message-ID:  <35632AA7.66058BA@aldridge.com>
References:  <Pine.BSF.3.96.980520130647.11072B-100000@egyptian.microxp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Randall,
Actually, I have the ipconfig entries established as you do.  I am not using the
new scripts, but the function equates.

network_interfaces="lo0 ep0"
ifconfig_ep0="inet 209.113.58.1 netmask 0xffffff80"
ifconfig_lo0="inet localhost"

echo -n ' address aliases'

ifconfig ep0 209.113.58.2 netmask 0xffffffff alias
ifconfig ep0 209.113.58.3 netmask 0xffffffff alias
ifconfig ep0 209.113.58.4 netmask 0xffffffff alias
ifconfig ep0 209.113.58.5 netmask 0xffffffff alias

netstat -r yields:
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            wall-aldridge-gw.h UGSc       79      341       ep0
localhost          localhost          UH          0      241       lo0
base.vsbw.com/25   link#2             UC          0        0
TripleCrown        0:a0:24:23:8f:24   UHLW        2      173       lo0
www                www                UH          0       14       ep0 =>
www/32             link#2             UC          0        0
www.spinneret.com  www.spinneret.com  UH          0        0       ep0 =>
www.spinneret.com/ link#2             UC          0        0
www.gensys.com     www.gensys.com     UH          0        0       ep0 =>
www.gensys.com/32  link#2             UC          0        0
demo               demo               UH          0        0       ep0 =>
demo/32            link#2             UC          0        0
www.boldcreative.c www.boldcreative.c UH          0        0       ep0 =>
www.boldcreative.c link#2             UC          0        0
www.burnskopatic.c www.burnskopatic.c UH          0        0       ep0 =>
www.burnskopatic.c link#2             UC          0        0

Can you traceroute to a virtual host from the server hosting the virtual host?

Regards
Dave

Randall D. DuCharme wrote:
> 
> David L. Aldridge wrote:
> >
> > This question has been asked many times in the archives, but I have
> > not been successful in finding an answer.
> >
> > I have virtual ip's on my system.
> >
> > My problem is that I can't reach the virtual IP's from the machine
> > itself.  When trying to connect from other hosts, it works!
> >
> > I can reach the server from other boxes on the network and the
> > world, but can't lynx, traceroute, or ping them from the server
> > itself.
> >
> > I have bound the IP addresses to the interface, configured DNS
> > to advertise each name on a different IP address, and configured
> > the web,ftp, etc. software to correlate the host to the IP address
> mapping and
> > use different document trees.
> >
> > It worked prior to a recent upgrade to 2.2.6.
> 
> Have you aliased the ethernet or locahost interface?
> 
> (snip from /etc/rc.conf)
> hostname="egyptian.microxp.com" # Set this!
> nisdomainname="NO"              # Set to NIS domain if using NIS (or NO).
> firewall_enable="NO"            # Set to YES to enable firewall
> functionality
> firewall_type="UNKNOWN"         # Firewall type (see /etc/rc.firewall)
> firewall_quiet="NO"             # Set to YES to suppress rule display
> natd_enable="NO"                # Enable natd (if firewall_enable == YES).
> natd_interface="fxp0"           # Public interface to use with natd.
> natd_flags=""                   # Additional flags for natd.
> tcp_extensions="YES"            # Allow RFC1323 & RFC1644 extensions (or
> NO).
> network_interfaces="vx0 lo0"    # List of network interfaces (lo0 is
> loopback).
> ifconfig_vx0="inet 209.207.52.33 netmask 255.255.255.224"
> ifconfig_lo0="inet 127.0.0.1"   # default loopback device configuration.
> #ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias
> entry.
> ifconfig_vx0_alias0="inet 209.207.52.46 netmask 0xffffffff"
> ifconfig_vx0_alias1="inet 209.207.52.47 netmask 0xffffffff"
> ifconfig_vx0_alias2="inet 209.207.52.48 netmask 0xffffffff"
> ifconfig_vx0_alias3="inet 209.207.52.49 netmask 0xffffffff"
> ifconfig_vx0_alias4="inet 209.207.52.50 netmask 0xffffffff"
> ifconfig_vx0_alias5="inet 209.207.52.51 netmask 0xffffffff"
> 
> This works great for me.
> 
> ---
> Randall D DuCharme
> Systems Engineer         Novell, Microsoft, and UNIX Networking Support
> Computer Specialists                  BSDI Internet Success Partners
> 414-253-9998   414-253-9919 (fax)     BSD/OS Authorized Resellers

--
David L. Aldridge
The Aldridge Company 281.368.0166 (fax: 281.368.0381)
http://www.aldridge.com/
Powered by Pentium/FreeBSD/Apache - Because it works.

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?35632AA7.66058BA>