# Cannot access the internet using a default gateway virtual server

**URL:** <https://community.f5.com/t/cannot-access-the-internet-using-a-default-gateway-virtual-server/6925>\
**Category:** Technical Forums\
**Tags:** deployment, big-ip-access-policy-manager-apm, security, application-delivery, ltm\
**Created:** [November 27, 2014, 3:03pm UTC](https://community.f5.com/t/cannot-access-the-internet-using-a-default-gateway-virtual-server/6925 "2014-11-27T15:03:43Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Linda\_01\_162621](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@Linda\_01\_162621](https://community.f5.com/u/Linda_01_162621)\
**Post date:** [November 27, 2014, 3:03pm UTC](https://community.f5.com/t/cannot-access-the-internet-using-a-default-gateway-virtual-server/6925/1 "2014-11-27T15:03:43Z")

</div>

I am newbie, I am using a BIG-IP 2000 (11.6.0) version.

As a start, I want to create a simple network:

1. Client PC

2. BIG-IP System

I can ping the ext router (172.16.100.17) but when I try to ping the internet, its says destination network unreachable. I did a tracert and found that, the gateway (10.0.0.254) does not know how to forward the packets when pinging the internet. Also on the statistics, no connections are shown to the virtual server, even though I can ping the ext router. I want to access the internet through the client PC

Is there any configuration that I am missing here?

---

<div class="post-metadata">

**Author:** ![VernonWells](https://avatars.discourse-cdn.com/v4/letter/v/dec6dc/32.png) [@VernonWells](https://community.f5.com/u/VernonWells)\
**Post date:** [November 28, 2014, 8:19am UTC](https://community.f5.com/t/cannot-access-the-internet-using-a-default-gateway-virtual-server/6925/2 "2014-11-28T08:19:21Z")

</div>

You must disable address and port translation on your Virtual Server. These are under the “Advanced” configuration. Without that, all traffic will be forwarded to the pool member using it’s IP address as the destination. Moreover, assuming you want to forward more than TCP traffic, you must change the Protocol to “\*All Protocols”. You almost certainly want to limit the VS to just your internal VLAN (change “VLAN and Tunnel Traffic” to “Enabled on…” and move the internal VLAN to the “Selected” box).

Incidentally, this can be achieved a different way. If you set the BIG-IP default route to 172.16.100.17, you could then use a “Forwarding (IP)” Virtual Server type, which uses the BIG-IP route table to forward traffic.

---

<div class="post-metadata">

**Author:** ![Linda\_01\_162621](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@Linda\_01\_162621](https://community.f5.com/u/Linda_01_162621)\
**Post date:** [November 28, 2014, 12:25pm UTC](https://community.f5.com/t/cannot-access-the-internet-using-a-default-gateway-virtual-server/6925/3 "2014-11-28T12:25:55Z")

</div>

Thank for the response.

However, I tried all the suggestions mentioned here.

1. Disabling the address and port translation
2. Defining a default route using the route object in configuration utility
3. Use a Forwarding IP virtual server
4. Enabled all protocols on the virtual server
5. Enabled the virtual server ONLY on the internal VLAN (as suggested)

None of them are working. Should I be able to ping the Self IPs? How can I troubleshoot to see where the problem is? Tracert shows that the default gateway set in the test PC (self IP address on the internal VLAN - 10.0.0.254) does not know where to forward packets destined for a network that is not directly connected to the system. i.e. does not forward the traffic to the default gateway through the virtual server and the pool members (destination net unreachable).

---

<div class="post-metadata">

**Author:** ![nitass](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/nitass/32/2270_2.png) [@nitass](https://community.f5.com/u/nitass)\
**Post date:** [November 28, 2014, 12:28pm UTC](https://community.f5.com/t/cannot-access-the-internet-using-a-default-gateway-virtual-server/6925/4 "2014-11-28T12:28:47Z")

</div>

have you tried snat automap under virtual server configuration?

---

<div class="post-metadata">

**Author:** ![Linda\_01\_162621](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@Linda\_01\_162621](https://community.f5.com/u/Linda_01_162621)\
**Post date:** [November 28, 2014, 12:43pm UTC](https://community.f5.com/t/cannot-access-the-internet-using-a-default-gateway-virtual-server/6925/5 "2014-11-28T12:43:01Z")

</div>

Thank you for the help.

I was able to sort out the problem, well at least its working now. I can ping google from the test PC.

Virtual server: source 0.0.0.0/0, destination: 0.0.0.0. Source address translation (auto map).

Port and address translation (disable).

Re-created a default gateway route to use the pool that contains the external router. (Destination and Mask: 0.0.0.0).

I am not sure why it was not working, but it is working now.

THANKS

---

<div class="post-metadata">

**Author:** ![VernonWells](https://avatars.discourse-cdn.com/v4/letter/v/dec6dc/32.png) [@VernonWells](https://community.f5.com/u/VernonWells)\
**Post date:** [November 29, 2014, 9:37am UTC](https://community.f5.com/t/cannot-access-the-internet-using-a-default-gateway-virtual-server/6925/6 "2014-11-29T09:37:50Z")

</div>

Since you enabled automap SNAT, then when the traffic egresses the BIG-IP (toward the router), the BIG-IP changes the source address from that of the client to a self IP (of the BIG-IP) on the egress VLAN. This suggests that the router either does not have a route back to the client netblock, or that its route to the client netblock is not forwarded through the BIG-IP. In this case, the application of automap SNAT would make traffic work because the router and the BIG-IP share IP addresses in a common netblock on a common VLAN. Naturally, the router will have a route to a directly connected network.

---

<div class="post-metadata">

**Author:** ![Jessica\_42876](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jessica\_42876](https://community.f5.com/u/Jessica_42876)\
**Post date:** [July 2, 2015, 12:04am UTC](https://community.f5.com/t/cannot-access-the-internet-using-a-default-gateway-virtual-server/6925/7 "2015-07-02T00:04:08Z")

</div>

Hi

I have a similar issue, could you please helpe, I can solve it.

[https://community.f5.com/t5/technical-forum/destination-net-unreachable/m-p/137356](https://community.f5.com/post/137356)

Jessy

---

<div class="post-metadata">

**Author:** ![Yaree\_263546](https://avatars.discourse-cdn.com/v4/letter/y/b3f665/32.png) [@Yaree\_263546](https://community.f5.com/u/Yaree_263546)\
**Post date:** [May 12, 2016, 8:49am UTC](https://community.f5.com/t/cannot-access-the-internet-using-a-default-gateway-virtual-server/6925/8 "2016-05-12T08:49:34Z")

</div>

I had the same problem and I found the solution by changing the vmnet0 bridge from automatic to the associated Network Ethernet Adapter. Vmware\>Edit\>Virtual Network Adapter\>vmnet0

---

<div class="post-metadata">

**Author:** ![martinxgarrix\_3](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@martinxgarrix\_3](https://community.f5.com/u/martinxgarrix_3)\
**Post date:** [March 12, 2018, 5:15pm UTC](https://community.f5.com/t/cannot-access-the-internet-using-a-default-gateway-virtual-server/6925/9 "2018-03-12T17:15:14Z")

</div>

Hey thanks a lot bro. Changing the vmnet0 solved the problem for me. i was not able to access internet using the [default gateway (10.0.0.1)](https://10-0-0-0-1.org/10-0-0-1/) virtual server but now i can. Just follow the steps: Vmware\>Edit\>Virtual Network Adapter\>vmnet0.

Thanks again

---

<div class="post-metadata">

**Author:** ![Hamza](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@Hamza](https://community.f5.com/u/Hamza)\
**Post date:** [January 16, 2023, 8:57pm UTC](https://community.f5.com/t/cannot-access-the-internet-using-a-default-gateway-virtual-server/6925/10 "2023-01-16T20:57:41Z")

</div>

Hello&nbsp; @Linda\_01\_162621 ,

Could you please tell me why you created a default route in BIG-IP.

---

<div class="post-metadata">

**Author:** ![Hamza](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@Hamza](https://community.f5.com/u/Hamza)\
**Post date:** [January 16, 2023, 11:39pm UTC](https://community.f5.com/t/cannot-access-the-internet-using-a-default-gateway-virtual-server/6925/11 "2023-01-16T23:39:40Z")

</div>

Also @Linda\_01\_162621 &nbsp;if “ip address translation” is disabled, the pool will be useful if the virtual server and pool memeber have the same ip address. so in your case it’s not necessary to create a pool for ex router.

You need just configure a default route with the gateway&nbsp; (172.16.100.17).
