# Gateway wrong on BLUE!

**URL:** <https://community.ipfire.org/t/gateway-wrong-on-blue/709>\
**Category:** Network\
**Created:** [20 December 2019 16:11 UTC](https://community.ipfire.org/t/gateway-wrong-on-blue/709 "2019-12-20T16:11:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pycoder](https://community.ipfire.org/user_avatar/community.ipfire.org/pycoder/32/248_2.png) [@pycoder](https://community.ipfire.org/u/pycoder)\
**Post date:** [20 December 2019 16:11 UTC](https://community.ipfire.org/t/gateway-wrong-on-blue/709/1 "2019-12-20T16:11:24Z")

</div>

Hi guys!

I setup today ipfire with red, green and blue!

Everything works fine except for the gateway of BLUE!

RED = dhcp  
GREEN = 192.168.1.0/24  
BLUE = 192.168.2.0/24

green and blue use dhcp and now the problem:

blue is sending the gateway 192.168.2.0 to the clients and the clients show me “no internet connection” BUT when I change the whole thing to static with the gateway 192.168.1.0 everything works fine!!!

Is it possible to change the gateway for blue from 192.168.2.0 to 192.168.1.0 or is there an error in the config?

[[Album] Imgur ![](https://community.ipfire.org/uploads/default/original/1X/8ad5d2eec63bd15d82daef996d0a227bc30f55db.jpeg "Imgur") ](https://imgur.com/a/59V1eXf)
  
[![Imgur](https://community.ipfire.org/uploads/default/original/1X/aa91009225e0ff47da39d1a86fc1a960727805b6.jpeg "Imgur") ](https://imgur.com/UNPmekh)

Cheers!

---

<div class="post-metadata">

**Author:** ![pycoder](https://community.ipfire.org/user_avatar/community.ipfire.org/pycoder/32/248_2.png) [@pycoder](https://community.ipfire.org/u/pycoder)\
**Post date:** [20 December 2019 16:12 UTC](https://community.ipfire.org/t/gateway-wrong-on-blue/709/2 "2019-12-20T16:12:04Z")

</div>

Last screenshot

[![Imgur](https://community.ipfire.org/uploads/default/original/1X/9e83c44b8062f1a03e5b3d76004276076453418d.jpeg "Imgur") ](https://imgur.com/JN8jCTs)

---

<div class="post-metadata">

**Author:** ![ms](https://community.ipfire.org/user_avatar/community.ipfire.org/ms/32/16615_2.png) [@ms](https://community.ipfire.org/u/ms)\
**Post date:** [20 December 2019 16:18 UTC](https://community.ipfire.org/t/gateway-wrong-on-blue/709/3 "2019-12-20T16:18:28Z")

</div>

Hello,

the gateway on BLUE has to be the IP address of the IPFire box on the BLUE interface. You cannot use any addresses from the GREEN subnet, because hosts on BLUE cannot reach it.

But, you cannot use the 192.168.2.0 address when your subnet mask is 255.255.255.0. It is the net address and is unusable. You probably want to use 192.168.2.1.

---

<div class="post-metadata">

**Author:** ![bbitsch](https://community.ipfire.org/user_avatar/community.ipfire.org/bbitsch/32/7420_2.png) [@bbitsch](https://community.ipfire.org/u/bbitsch)\
**Post date:** [21 December 2019 11:34 UTC](https://community.ipfire.org/t/gateway-wrong-on-blue/709/4 "2019-12-21T11:34:26Z")

</div>

BTW: This also true for the GREEN network!

---

<div class="post-metadata">

**Author:** ![pycoder](https://community.ipfire.org/user_avatar/community.ipfire.org/pycoder/32/248_2.png) [@pycoder](https://community.ipfire.org/u/pycoder)\
**Post date:** [28 December 2019 09:44 UTC](https://community.ipfire.org/t/gateway-wrong-on-blue/709/5 "2019-12-28T09:44:11Z")

</div>

Sorry for the late response.

It’s working now.

Thank you guys 🙂
