[NTLUG:Discuss] can't ping to 2 NIC box
MadHat
madhat at unspecific.com
Sat Aug 19 21:19:40 CDT 2000
m m wrote:
>
> >From: MadHat <madhat at unspecific.com>
>
> >m m wrote:
> > >
> > > Hi all:
> > > I have a linux box (say, SA) with 2 NICs, use RH 6.2 os.
> > > etho w/ public IP (64.100.100.100) connect to the network switch.
> > > eth1 w/ non-routeable IP (192.168.0.1) connect to ahother pc (say, SB)
> >w/ IP
> > > (192.168.0.2).
> > > I have is it physical connected, problems are:
> > > ping from SA to SB, the error message is: destination Host Unreachable
> > > ping from SB to SA, it hang on there.
> > >
> > > /etc/hosts on SA has all the hosts information.
> > >
> > > any suggestions?
> >
> >routes? (run 'netstat -rn' and let us see).
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt
> Iface
> 192.168.100.1 0.0.0.0 255.255.255.255 UH 0 0 0
> eth1
> 64.100.100.100 0.0.0.0 255.255.255.255 UH 0 0 0
> eth0
> 64.0.0.0 64.100.100.100 255.255.255.248 UG 0 0 0
> eth0
> 192.168.100.0 192.168.100.1 255.255.255.0 UG 0 0 0
> eth1
> 192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0
> eth1
> 64.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
> eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 64.100.100.100 0.0.0.0 UG 0 0 0
> eth0
Something looks wrong here. Like the external IP is 64.100.100.100, but
the default route is the same (not that this would cause the problem
you describe, but.... )
What was the exact error you receive when you try a pig, Or was there an
error? Also, do you have IPchains working? Have you reset... damn,
/proc/ somethign... hold on
I want to say /proc/sys/net/ipv4/ip_forward, but I am not on the right
machine right now.... anyway, this is supposed to be reset to one when
ipchains is started for it to work.
echo 1 > /proc/sys/net/ipv4/ip_forward
someone want to verify this for me, or I can do it monday.
>
> >is IP forwarding turned on (enabled in the kernel)?
> yes
>
> >Are you using this like a firewall/router?
> yes
>
> >What distro, or have you rebuilt the kernel?
> redhat 6.2 original kernel.
--
MadHat at unspecific.com
"The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris."
--Larry Wall
More information about the Discuss
mailing list