single box handling multiple ips, how?
freebsd-questions-local at be-well.ilk.org
Wed Feb 9 10:57:32 PST 2005
Ken Hawkins <ken at rosewoodblues.com> writes:
> Sorry if this is not quite the place to ask however, if it is not can
> someone point me toward the right resource (on the net) for answers. I
> running FreeBSD on a box with an ethernet;
> em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> inet ???.???.???.151 netmask 0xffff0000 broadcast 10.50.255.255
> inet6 fe80::230:48ff:fe2c:76e2%em0 prefixlen 64 scopeid 0x1
> inet ???.???.???.152 netmask 0xffffffff broadcast 10.50.1.152
> inet ???.???.???.153 netmask 0xffffffff broadcast 10.50.1.153
> ether 00:30:48:2c:76:e2
> media: Ethernet 100baseTX <full-duplex>
> status: active
> the <???> are just our ips. you will notice that .152 and .153 are
> and are mapped to external ips via a switch. my question is how can I
> resolve names to the ip aliases on the box? ie
> ???.???.???.152 -> a.net
> ???.???.???.153 -> b.net
> is this a /etc/hosts kind of entry?
> ???.???.???.152 web1.a.net web1
> ???.???.???.152 web1.a.net.
> ???.???.???.153 web1.b.net web1
> ???.???.???.153 web1.b.net.
> any help would be greatly appreciated!
Yes, /etc/hosts will be the place to put those translations (for the
full hostnames -- you don't want the "web1.a.net." entries) if you
want that machine to know about them. If you explained the desired end
result, we might be able to give you more help.
More information about the freebsd-questions