# how to add default gateway?

**URL:** <https://forums.suse.com/t/how-to-add-default-gateway/32054>\
**Category:** SLES Networking\
**Created:** [February 22, 2018, 4:53pm UTC](https://forums.suse.com/t/how-to-add-default-gateway/32054 "2018-02-22T16:53:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oz42](https://avatars.discourse-cdn.com/v4/letter/o/5e9695/32.png) [@oz42](https://forums.suse.com/u/oz42)\
**Post date:** [February 22, 2018, 4:53pm UTC](https://forums.suse.com/t/how-to-add-default-gateway/32054/1 "2018-02-22T16:53:33Z")

</div>

I have added my default gateway during the system setup, and Yast shows it. But the system does not have a default route. What is wrong here?

Olaf

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [February 23, 2018, 5:53pm UTC](https://forums.suse.com/t/how-to-add-default-gateway/32054/2 "2018-02-23T17:53:39Z")

</div>

99% of the time that happens because the bound network addresses do not  
match with that gateway. A default gateway must be one accessible by one  
of the configured IP addresses, taking into consideration the subnet mask  
of that configured network device. As a result, if you have a configured  
IP address of 192.168.1.1, and a subnet mask of 255.255.255.0 (/24), and  
you try to set a default route of 192.168.2.2 (when you maybe meant to  
type 192.168.1.2), you will end up with no default route because it cannot  
be reached.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the  
forum as I do not use the web interface often.
