Re: Host's IP address can't be found
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.
> > > > /etc/hosts:
> > > >
> > > > 127.0.0.1 localhost
> > > > 192.168.1.1 teufel.localdomain teufel
> [snip standard ipv6 entries]
> > > >
> > >
> > > > $ host hartford-hwp.com
> > > > hartford-hwp.com has address 64.227.154.66
> > > > hartford-hwp.com mail is handled by 5 inbound.registeredsite.com.
> > > >
> > > > $ netstat -rn teufel
> > > > Kernel IP routing table
> > > > Destination Gateway Genmask Flags MSS Window irtt
> > > > Iface
> > > > 192.168.111.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
> > > > 0.0.0.0 192.168.111.1 0.0.0.0 UG 0 0 0 eth1
> What host is this? ^^^ ^
This address is the default address of my hardware firewall, which is
acting as gateway for my one-host LAN.
> > > > 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?
> > # 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]
>
> To summarize what I see:
...
> interfaces configures eth1 using dhcp (the other options are ignored).
> If you wish to use static, change dhcp to static. Dhcp is assigning
> this interface 192.168.111.2
>
> The routing table is routing network 192.168.111.0 to a gateway of
> 192.168.111.1 (I'm assuming that this is the ip of your firewall box).
yes
>
> 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.
Incidentally, shouldn't this be in the form of an e-mail address rather
than, say, just my domain name?
> I've never used a hardware firewall (I've always been on dial-up) nor
> dhcp. I don't know how to have your NIC setup with dhcp but have an
> entry for that NIC in /etc/hosts. A lot of people on this list use dhcp
> so hopefully someone jumps in and tells you how to use it consistantly.
>
> Barring that, I would suggest:
> fix /etc/hosts so that the 192.168.1.1 is changed to
> 192.168.111.2.
>
> fix interfaces to take out the extraneouse options.
>
> Good luck,
>
> Doug.
Thanks Doug.
Haines
Reply to: