Sub: cannot ping internal network
Hello
I am a new user to Linux but in the last couple of months gained some Idea about it,
I am trying to set up a small network in my office having 3 windows xp PCs, two fedora10 PCs
I have an adsl router with 4-port hub connecting to the internet,
one switch (say sw1) and one linux PC (say linux1) is connected directly to the router, the three win xp PCs are connected to switch sw1.
all the above is working fine, I am able to get connected to Internet In all the systems, and able to network among all the above four.
Now I want to make the linux1 as a proxy server for, hence I added another network card into it connected it to another switch sw2, which is connected to another linux pc (say linux2).
I have tried a hundred things, and googled an equal no. and finally posting it here.
In order to reduce confusion I have disabled DHCP in all machines, and given static ips instead
NetworkManager was not happy about it, hence to fix my static IP i disabled NetworkManager ('chkconfig NetworkManager off')
____________________________________________________________________
|--winxp3
|---winxp2
|---winxp1
|
sw1
|
router--(eth0)linux1(eth1)--sw2--(eth0)linux2 <--problem here
|
internet
______________________________________________________________________
the above is a schematic of my network, sw1 and sw2 are 8 port-switches
all is well except there is no visibility between the two linux systems linux1 and linux2,
this is the /etc/sysconfig/network-scripts/ifcfg-eth0, of linux1
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255
HWADDR=00:e0:27:21:01:17
IPADDR=192.168.1.3
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
GATEWAY=192.168.1.1
TYPE=Ethernet
NM_CONTROLLED=no
USERCTL=no
PEERDNS=yes
MII_NOT_SUPPORTED=yes
DNS1=192.168.1.1 # where i found in /etc/resolv.conf
this is the -------/etc/sysconfig/network-scripts/ifcfg-eth1, of linux1-------
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
HWADDR=00:1f:d0:32:29:a7
IPADDR=192.168.1.31
NETMASK=255.255.255.0
TYPE=Ethernet
USERCTL=no
PEERDNS=no
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
------------this is the ifconfig of linux1--------------
eth0 Link encap:Ethernet HWaddr 00:E0:27:21:01:17
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:27ff:fe21:117/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8021 errors:0 dropped:0 overruns:0 frame:0
TX packets:9165 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4855236 (4.6 MiB) TX bytes:1716932 (1.6 MiB)
Interrupt:16 Memory:fa000000-fa0000ff
eth1 Link encap:Ethernet HWaddr 00:1F
0:32:29:A7
inet addr:192.168.1.31 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21f:d0ff:fe32:29a7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3759 errors:0 dropped:0 overruns:0 frame:0
TX packets:152 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:225540 (220.2 KiB) TX bytes:26787 (26.1 KiB)
Interrupt:20
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:95 errors:0 dropped:0 overruns:0 frame:0
TX packets:95 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:18290 (17.8 KiB) TX bytes:18290 (17.8 KiB)
--------- this is interface from linux1 ---------
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.255.255.0
auto eth0
iface eth0 inet static
address 192.168.1.3
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
auto eth1
iface eth1 inet static
address 192.168.1.31
netmask 255.255.255.0
broadcast 192.168.1.255
----------this is iptables -L from linux1--------
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
----------this is the /etc/sysconfig/network-scripts/ifcfg-eth0, of linux2-------
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255
HWADDR=00:IF
0:42:0D:90
IPADDR=192.168.1.7
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
GATEWAY=192.168.1.31
TYPE=Ethernet
NM_CONTROLLED=no
USERCTL=no
PEERDNS=yes
MII_NOT_SUPPORTED=yes
DNS1=192.168.1.1
-------this is interface from linux2--------
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.255.255.0
auto eth0
iface eth0 inet static
address 192.168.1.7
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.31
------this is the "nmap -sP 192.168.1.0-255" from linux1 I can see all the systems except linux2
Host 192.168.1.1 appears to be up.------------ [router]
MAC Address: 00:1B:57:FC:90:C7 (Semindia Systems Private Limited)
Host localhost.server1 (192.168.1.3) appears to be up.--------------- [linux1 eth0]
Host 192.168.1.9 appears to be up. -----------[winxp1]
MAC Address: 00:1F
0:32:29:07 (Giga-byte Technology Co.)
Host 192.168.1.12 appears to be up. -----------[winxp2]
MAC Address: 00:1F
0:32:61:E3 (Giga-byte Technology Co.)
Host 192.168.1.55 appears to be up. ----------[winxp3]
MAC Address: 00:1F
0:32:29:63 (Giga-byte Technology Co.)
Nmap done: 256 IP addresses (5 hosts up) scanned in 1.920 seconds
[for the sake of clarity i added the machine ref. in square brackets]
This is to inform you i have disabled Firewall through GUI "Administration--> Firewall--> disabled"
i tried ping from linux1 to linux2 and vice versa with no success
setting up of this proxy server is key to me, once this works I want to setup a firewall in linux1 and transfer all winxp systems from sw1 to sw2.
I WOULD BE VERY GLAD IF SOMEONE CAN GUIDE ME WITH THIS.
Best Regards
G S Reddy