<html><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1419863931071_2919"><span id="yui_3_16_0_1_1419863931071_3096">Hello All, <br></span></div><div id="yui_3_16_0_1_1419863931071_3747" dir="ltr"><br><span id="yui_3_16_0_1_1419863931071_3096"></span></div><div id="yui_3_16_0_1_1419863931071_3748" dir="ltr"><span id="yui_3_16_0_1_1419863931071_3096">I have openstack instance able to ping compute/controller and other hosts in the network. <br></span></div><div id="yui_3_16_0_1_1419863931071_3749" dir="ltr"><span id="yui_3_16_0_1_1419863931071_3096">Not able to ping google.com <br></span></div><div id="yui_3_16_0_1_1419863931071_3750" dir="ltr">My external network is 10.10.126.xx</div><div id="yui_3_16_0_1_1419863931071_3751" dir="ltr"><br></div><div id="yui_3_16_0_1_1419863931071_3752" dir="ltr">able to ping 10.10.126.1 gateway <br></div><div id="yui_3_16_0_1_1419863931071_3753" dir="ltr"><br></div><div id="yui_3_16_0_1_1419863931071_3754" dir="ltr">able to ping host controller 10.10.126.62 which also nova compute <br></div><div id="yui_3_16_0_1_1419863931071_3755" dir="ltr">able to ping other hosts 10.10.126.54 and other machines in network. <br></div><div id="yui_3_16_0_1_1419863931071_3756" dir="ltr">able to ping br100 and virbr0</div><div id="yui_3_16_0_1_1419863931071_5047" dir="ltr"><br></div><div id="yui_3_16_0_1_1419863931071_5046" dir="ltr">enabled /etc/sysctl.conf to contain the following:
net.ipv4.ip_forward=1</div><div id="yui_3_16_0_1_1419863931071_6382" dir="ltr">and also enabled masquerading in the iptables</div><div id="yui_3_16_0_1_1419863931071_6383" dir="ltr">iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE</div><div id="yui_3_16_0_1_1419863931071_7195" dir="ltr"><br></div><div id="yui_3_16_0_1_1419863931071_3757" dir="ltr">internal IP of instance is 10.4.128.2 and floating IP assigned is 10.10.126.129 <br><span id="yui_3_16_0_1_1419863931071_3096"></span></div><div id="yui_3_16_0_1_1419863931071_3758" dir="ltr">On instance route command <br><span id="yui_3_16_0_1_1419863931071_3096"></span></div><div id="yui_3_16_0_1_1419863931071_3760" dir="ltr"><span id="yui_3_16_0_1_1419863931071_3096">[root@newtry fedora]# route -n<br style="" class="">Kernel IP routing table<br style="" class="">Destination Gateway Genmask Flags Metric Ref Use Iface<br style="" class="">0.0.0.0 10.4.128.3 0.0.0.0 UG 0 0 0 eth0<br style="" class="">10.4.128.0 0.0.0.0 255.255.240.0 U 0 0 0 eth0<br style="" class="">[root@newtry fedora]# <br style="" class=""></span></div><div id="yui_3_16_0_1_1419863931071_4359" dir="ltr"><br><span id="yui_3_16_0_1_1419863931071_3096"></span></div><div dir="ltr"><span id="yui_3_16_0_1_1419863931071_3096">on the controller machine <br></span></div><div id="yui_3_16_0_1_1419863931071_4371" dir="ltr"><span id="yui_3_16_0_1_1419863931071_3096">stack@celestial-PC-1:~$ route -n<br style="" class="">Kernel IP routing table<br style="" class="">Destination Gateway Genmask Flags Metric Ref Use Iface<br style="" class="">0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0<br style="" class="">10.4.128.0 0.0.0.0 255.255.240.0 U 0 0 0 br100<br style="" class="">10.10.126.0 0.0.0.0 255.255.255.0 U 0 0 0 br100<br style="" class="">192.168.1.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0<br style="" class="">192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0<br style="" class="">stack@celestial-PC-1:~$ <br style="" class=""></span></div><div id="yui_3_16_0_1_1419863931071_7953" dir="ltr"><br><span id="yui_3_16_0_1_1419863931071_3096"></span></div><div id="yui_3_16_0_1_1419863931071_7196" dir="ltr"><br><span id="yui_3_16_0_1_1419863931071_3096"></span></div><div dir="ltr"><br><span id="yui_3_16_0_1_1419863931071_3096"></span></div><div dir="ltr"><span id="yui_3_16_0_1_1419863931071_3096">on instance <br></span></div><div id="yui_3_16_0_1_1419863931071_7949" dir="ltr"><span id="yui_3_16_0_1_1419863931071_3096">[root@newtry fedora]# ip addr<br style="" class="">1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default <br style="" class=""> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br style="" class=""> inet 127.0.0.1/8 scope host lo<br style="" class=""> valid_lft forever preferred_lft forever<br style="" class=""> inet6 ::1/128 scope host <br style="" class=""> valid_lft forever preferred_lft forever<br style="" class="">2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000<br style="" class=""> link/ether fa:16:3e:20:e6:e5 brd ff:ff:ff:ff:ff:ff<br style="" class=""> inet 10.4.128.2/20 brd 10.4.143.255 scope global eth0<br style="" class=""> valid_lft forever preferred_lft forever<br style="" class=""> inet6 fe80::f816:3eff:fe20:e6e5/64 scope link <br style="" class=""> valid_lft forever preferred_lft forever<br style="" class="">[root@newtry fedora]# <br style="" class=""></span></div><div dir="ltr"><br><span id="yui_3_16_0_1_1419863931071_3096"></span></div><div dir="ltr"><span id="yui_3_16_0_1_1419863931071_3096"></span></div><div id="yui_3_16_0_1_1419863931071_2920"> </div><div id="yui_3_16_0_1_1419863931071_2922"><div id="yui_3_16_0_1_1419863931071_2921"><div id="yui_3_16_0_1_1419863931071_7950" dir="ltr">what is missing not able to ping google.com from instance <br></div><div id="yui_3_16_0_1_1419863931071_7951" dir="ltr">please help on this with your valuable suggestions <br></div><div id="yui_3_16_0_1_1419863931071_7954" dir="ltr"><br></div><div id="yui_3_16_0_1_1419863931071_7952" dir="ltr">thanks in advance <br>
</div><div id="yui_3_16_0_1_1419863931071_7955"><br></div><div id="yui_3_16_0_1_1419863931071_7956"><br></div>Regards
<br>Neelu</div></div><div id="yui_3_16_0_1_1419863931071_2944" class="y_msg_container"><br></div><div class="qtdSeparateBR"><br><br></div><div id="yui_3_16_0_1_1419863931071_2947" style="display: block;" class="yahoo_quoted"><div id="yui_3_16_0_1_1419863931071_2946" style="font-family: Helvetica Neue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"><div id="yui_3_16_0_1_1419863931071_2945" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 12px;"> </div> </div> </div> </div></body></html>