- Posts: 177
- Thank you received: 0
linux help!!
18 years 11 months ago #11592
by monsky
linux help!! was created by monsky
i installed another NIC in my FC4 unit for the purpose of learning squid. the eth0 to the internet and the eth1 to the private network.
the eth0 to the internet works fine but with the eth1 i cant even ping the other workstation (station1) connected to it and vice-versa (station1 to eth1)
eth0 is 192.168.1.11 255.255.255.0
eth1 is 192.168.0.254 255.255.255.0
station1 is 192.168.0.69 255.255.255.0
i checked the cables and connectors and im sure it has no problem.
when i pinged from the network of eth0 (192.168.1.x) it works fine. but when i pinged from the eth1 (192.168.0.x) to the station1 (192.168.0.69) it says "Destination Host Unreachable".
do i missing something? is it with the ipchains or iptables stuff? i tried to google these 2 but seems its still confusing to me.
your help guys greatly appreciated.
thanks in advance
the eth0 to the internet works fine but with the eth1 i cant even ping the other workstation (station1) connected to it and vice-versa (station1 to eth1)
eth0 is 192.168.1.11 255.255.255.0
eth1 is 192.168.0.254 255.255.255.0
station1 is 192.168.0.69 255.255.255.0
i checked the cables and connectors and im sure it has no problem.
when i pinged from the network of eth0 (192.168.1.x) it works fine. but when i pinged from the eth1 (192.168.0.x) to the station1 (192.168.0.69) it says "Destination Host Unreachable".
do i missing something? is it with the ipchains or iptables stuff? i tried to google these 2 but seems its still confusing to me.
your help guys greatly appreciated.
thanks in advance
18 years 11 months ago #11594
by reaper
Replied by reaper on topic Re: linux help!!
Hmm, are you sure you could ping from 192.168.1.x to station? They are on a different subnet, do you have a default gateway set? How are they connected, please describe the connection and the products you use. Also some output from ping would be good. Also some output from ifconfig would be nice.
18 years 11 months ago #11597
by monsky
Replied by monsky on topic Re: linux help!!
no i mean i can ping from eth0 (192.168.1.11) to the modem/router which is 192.168.1.1, so i could be able to use internet.
modem/router(192.168.1.1)
|
|
eth0 (192.168.1.11)
FC4
eth1(192.68.0.254)
|
|
switch (linksys ef3124)
|
station1 (192.168.0.69)
iptables list?
[root@localhost monsky]# /sbin/iptables -L
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere
anywhere
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere
anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere
icmp any
ACCEPT ipv6-crypt-- anywhere anywhere
ACCEPT ipv6-auth-- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251
udp dpt:5353
ACCEPT udp -- anywhere anywhere
udp dpt:ipp
ACCEPT all -- anywhere anywhere
state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere
state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere
reject-with icmp-host-prohibited
i am using linksys switch so that i could be able to connect more stations
modem/router(192.168.1.1)
|
|
eth0 (192.168.1.11)
FC4
eth1(192.68.0.254)
|
|
switch (linksys ef3124)
|
station1 (192.168.0.69)
iptables list?
[root@localhost monsky]# /sbin/iptables -L
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere
anywhere
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere
anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere
icmp any
ACCEPT ipv6-crypt-- anywhere anywhere
ACCEPT ipv6-auth-- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251
udp dpt:5353
ACCEPT udp -- anywhere anywhere
udp dpt:ipp
ACCEPT all -- anywhere anywhere
state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere
state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere
reject-with icmp-host-prohibited
i am using linksys switch so that i could be able to connect more stations
18 years 11 months ago #11598
by monsky
Replied by monsky on topic Re: linux help!!
the iptables i posted was the default setup, no changes made yet
patience pls. :oops:
patience pls. :oops:
18 years 11 months ago #11599
by monsky
Replied by monsky on topic Re: linux help!!
and how would the ping command know that you have 2 NICs and the 192.168.0.x network exists or you have had setup more than 1 networks on that FC4 unit. what the the stuffs involved.
18 years 11 months ago #11605
by DaLight
Replied by DaLight on topic Re: linux help!!
As reaper noted earlier, do you have a default gateway set? It's probably set to eth0. You will need to add a static route so that your local network is accessible.
Time to create page: 0.150 seconds