anupindi007
October 28th, 2009, 10:04 PM
Hi,
Problem: Not able to ping( www.google.com (http://www.google.com) (but resolves ip 72.14.213.147) or Browse any external sites.
a. able to ping from pc to Server - eth0
b. able to ping from pc to Server - eth1
c. able to browse Internet from Server
d. while trying to ping www.google.com (http://www.google.com)
--says: pinging www.1.google.com (http://www.1.google.com)[72.14.213.103] with 32 bytes of data: Request time out.
Setup:
PC --> Router > Server(eth1(internal) ->eth0(external), DNS/firewall --> Internet
Study Notes:
Server eth0 IP: 10.10.10.95 subnet 255.255.255.0
Server eth1 IP: 10.5.5.1 subnet 255.255.255.224
Router ip external: 10.5.5.10
Router ip internal: 172.16.2.1
Router Default GW : 10.5.5.1
PC IP: 172.16.2.10
# route -n
Kernel IP routing table
Destination ---- Gateway ----Genmask ------------Flags Metric Ref Use ----Iface
10.5.5.0 ------ 0.0.0.0 ----255.255.255.224 ----U 0 0 0 ----------------------- eth1
10.1.10.0 ------ 0.0.0.0 ----255.255.255.0 --------U 0 0 0 ----------------------- eth0
169.254.0.0 - 0.0.0.0 -----255.255.0.0 -----------U 1000 0 0 ------------------ eth0
0.0.0.0 --------10.1.10.1---0.0.0.0 ------------------UG 100 0 0 ------------------ eth0
#cat /etc/resolv.conf
nameserver 10.1.10.1
# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 10.5.5.1
netmask 255.255.255.224
#cat /etc/dhcp3/dhcpd.conf
...
A slightly different configuration for an internal subnet.
subnet 10.5.5.0 netmask 255.255.255.224 {
range 10.5.5.10 10.5.5.15;
option domain-name-servers 10.10.10.1;
# option domain-name "internal.example.org";
# option routers ;
# option broadcast-address 10.5.5.31;
default-lease-time 864600;
max-lease-time 60480;
}
any help is very much appreciated.
Thanks,
Srinivas
Problem: Not able to ping( www.google.com (http://www.google.com) (but resolves ip 72.14.213.147) or Browse any external sites.
a. able to ping from pc to Server - eth0
b. able to ping from pc to Server - eth1
c. able to browse Internet from Server
d. while trying to ping www.google.com (http://www.google.com)
--says: pinging www.1.google.com (http://www.1.google.com)[72.14.213.103] with 32 bytes of data: Request time out.
Setup:
PC --> Router > Server(eth1(internal) ->eth0(external), DNS/firewall --> Internet
Study Notes:
Server eth0 IP: 10.10.10.95 subnet 255.255.255.0
Server eth1 IP: 10.5.5.1 subnet 255.255.255.224
Router ip external: 10.5.5.10
Router ip internal: 172.16.2.1
Router Default GW : 10.5.5.1
PC IP: 172.16.2.10
# route -n
Kernel IP routing table
Destination ---- Gateway ----Genmask ------------Flags Metric Ref Use ----Iface
10.5.5.0 ------ 0.0.0.0 ----255.255.255.224 ----U 0 0 0 ----------------------- eth1
10.1.10.0 ------ 0.0.0.0 ----255.255.255.0 --------U 0 0 0 ----------------------- eth0
169.254.0.0 - 0.0.0.0 -----255.255.0.0 -----------U 1000 0 0 ------------------ eth0
0.0.0.0 --------10.1.10.1---0.0.0.0 ------------------UG 100 0 0 ------------------ eth0
#cat /etc/resolv.conf
nameserver 10.1.10.1
# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 10.5.5.1
netmask 255.255.255.224
#cat /etc/dhcp3/dhcpd.conf
...
A slightly different configuration for an internal subnet.
subnet 10.5.5.0 netmask 255.255.255.224 {
range 10.5.5.10 10.5.5.15;
option domain-name-servers 10.10.10.1;
# option domain-name "internal.example.org";
# option routers ;
# option broadcast-address 10.5.5.31;
default-lease-time 864600;
max-lease-time 60480;
}
any help is very much appreciated.
Thanks,
Srinivas