Re: absurdly simple LAN problem
On 15 Sep 2005, Alvin Oga wrote:
>
>
> On Thu, 15 Sep 2005, Anthony Campbell wrote:
>
> > > > firewall (shorewall) does not help.
>
> ping localhost is 100% guaranteed to work ... as long as 127.0.0.1 is in
> /etc/hosts and you do use /etc/hosts in your /etc/resolv.conf
>
> - ping of it's own ip# will always work evenwith the ethernet
> cable disconnected
>
> what is your contents of /etc/hosts and /etc/resolv.conf
>
desktop:
/etc/hosts:
127.0.0.1 localhost loopback
192.168.0.20 arcadia.acampbell.org.uk arcadia arcadia.acupuncturecourse.org.uk accampbell.uklinux.net
192.168.0.22 thinkpad ibm
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
/etc/resolv.conf
search
nameserver 80.84.64.20
nameserver 80.84.72.20
laptop:
/etc/resolv.conf
search acampbell.org.uk
nameserver 80.84.64.20
nameserver 80.84.72.20
/etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.22 ibm.acampbell.org.uk ibm thinkpad
192.168.0.20 arcadia
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
>
> > ac:~:$ route -n
> > Kernel IP routing table
> > Destination Gateway Genmask Flags Metric Ref Use Iface
> > 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> > 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
>
> 192.168.0.1 is presumably your router thru which you expect to get out
>
> > ifconfig -a:
> >
> > eth0 Link encap:Ethernet HWaddr 00:0B:2B:02:32:FB
> > inet addr:192.168.0.20 Bcast:192.168.0.255 Mask:255.255.255.0
>
> good ... your ip# is *.20
>
> > For laptop:
> >
> > Destination Gateway Genmask Flags Metric Ref Use Iface
> > 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
> > 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth1
>
> good ... your gateway is the same *.1
>
> > ac:/usr/share/doc/shorewall:$ ifconfig -a
> > eth0 Link encap:Ethernet HWaddr 00:06:1B:DE:4B:CF
>
> bad .. this does NOT have an ip# assigned to it ...
> ===================================================
>
> > eth1 Link encap:Ethernet HWaddr 00:40:96:44:B5:A6
> > inet addr:192.168.0.22 Bcast:192.168.0.255 Mask:255.255.255.0
>
> good ... this is *.22
>
> > wifi0 Link encap:UNSPEC HWaddr 00-40-96-44-B5-A6-00-00-00-00-00-00-00-00-00-00
> > BROADCAST MULTICAST MTU:2312 Metric:1
>
> bad ... this does NOT have an ip# assigned to it
> /////////////////////////////////////////////////
>
How can I correct these?
--
ac@acampbell.org.uk || http://www.acampbell.org.uk for
using Linux GNU/Debian || blog, book reviews, electronic
Microsoft-free zone || books and skeptical articles
Reply to: