[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Host's IP address can't be found



On 4/29/07, Gloria Brown <Gloria@artistsunitedforchristministries.org> wrote:
On Sat, 2007-04-28 at 19:25 -0400, Douglas Allan Tutty wrote:

> > > On Sat, Apr 28, 2007 at 02:35:03PM -0400, Gloria Brown wrote:
> > > > I installed Etch on a stand-alone workstation which is the sole host on
> > > > a local network and has Internet access through a hardware firewall.

> > > > In /etc/network/interfaces:
> > > >
> > > > auto lo
> > > > iface lo inet loopback
> > > >
> > > > auto eth1
> > > > allow-hotplug eth1
> > > > iface eth1 inet dhcp
> > > >         address 192.168.1.1
> > > >         netmask 255.255.255.0
> > > >         network 192.168.1.0
> > > >         broadcast 192.168.1.255
> > > >
> Why both dhcp _and_ static entries?

Dunno ;-(. Years ago, when I set up the firewall, I needed to use dhcp
in the interface, and for some reason I carried the pre-firewall
addresses over. If I drop them, how do I define IP addresses on my local
LAN should I add other local hosts to it? In otherwords, how do I define
the 192.168.1.1 address for the local host if I remove these static
addresses?

Your DHCP server will assign the correct address. If you want the box to get the same address every time, you'll need to configure the DHCP server to give a reserved address to this box based on this box's MAC layer (hardware) address.

> > # ifconfig
> > eth1      Link encap:Ethernet  HWaddr 00:A0:C9:B4:D5:A8
> > inet addr:192.168.111.2       Bcast:192.168.111.255
> > Mask:255.255.255.0
> > inet6 addr: fe80::2a0:c9ff:feb4:d5a8/64 Scope:Link
> > UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> > RX packets:13510 errors:0 dropped:0 overruns:0 frame:0
> > TX packets:8205 errors:0 dropped:0 overruns:0 carrier:0
> > collisions:0 txqueuelen:1000
> > RX bytes:18629272 (17.7 MiB)  TX bytes:601099 (587.0 KiB)
> >
> > lo        Link encap:Local Loopback
> [snip]
>
>
> Your hosts file contains your hostname at 192.168.1.1 and I think this
> is the crux of the problem.

Didn't help. Changed to 192.168.111.2 in /etc/hosts and removed the
static addresses in /etc/network/interfaces. Messages out still generate
the error: No IP address found for host brownh@hartford-hwp.com.


Did you then restart networking (/etc/init.d/networking restart)?

Does "ifconfig" still report the same as above?

Can you ping external devices successfully? If so, then I suspect (as you do) that something's amiss in your mail setup rather than your networking setup.

--
Kent West
Westing Peacefully - http://kentwest.blogspot.com
Reply to: