Quote:
Do you have IP Forwarding enabled on box 1?
|
cat /proc/sys/net/ipv4/ip_forward return 1
Quote:
Also, are you running a firewall on box 1 that would block ICMP requests?
|
I tried out this command earlier on, not too sure what effect this would has on my machine:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
and
iptables -L -nv return nth interesting:
Chain INPUT (policy ACCEPT 32179 packets, 6898K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 7569 packets, 1657K bytes)
pkts bytes target prot opt in out source destination
Quote:
I also noticed that you now listed your gateway for box 1 as being on the 172.19.96.0 network, but the NIC on box 1 as being on the 172.19.97.0 network. These two addresses should be on the same subnet.
|
Yea, it looks like eth1 172.19.97.127 and the gw 172.19.96.1 is on 2 different subnets, the subnet mask is 255.255.254.0. But those addresses are what I got from
ifconfig and
route -n, should be correct.
Quote:
eth0 on the #1 box should be assigned a private static IP address like 192.168.0. The #2 box can either be assigned a static IP address like 192.168.0.2) are configured using DHCP if the server is enabled on #1.
|
I'm not sure how to enable a DHCP server on box1.
Quote:
If using a static IP address on the client you will need to add the DNS nameserver info into the /etc/resolv.conf file.
|
I shall try out the static IP address on the client if I can't enable DHCP on the server.
Thax for the help~
Andrea
****FYI****
$ ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:46:6A:0C:B0
inet addr:169.254.4.217 Bcast:169.254.255.255 Mask:255.255.0.0
inet6 addr: fe80::a00:46ff:fe6a:cb0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16695 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1001700 (978.2 KiB) TX bytes:4716 (4.6 KiB)
eth1 Link encap:Ethernet HWaddr 00:02:2D:6D:C4:65
inet addr:172.19.97.127 Bcast:172.19.97.255 Mask:255.255.254.0
inet6 addr: fe80::202:2dff:fe6d:c465/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:63303 errors:0 dropped:0 overruns:0 frame:0
TX packets:11118 errors:87 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10356019 (9.8 MiB) TX bytes:2813324 (2.6 MiB)
Interrupt:9 Base address:0x3040