# How to setup the static roots?

**URL:** <https://forums.suse.com/t/how-to-setup-the-static-roots/35277>\
**Category:** SLES Networking\
**Created:** [September 14, 2020, 2:47am UTC](https://forums.suse.com/t/how-to-setup-the-static-roots/35277 "2020-09-14T02:47:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daishi](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@Daishi](https://forums.suse.com/u/Daishi)\
**Post date:** [September 14, 2020, 2:47am UTC](https://forums.suse.com/t/how-to-setup-the-static-roots/35277/1 "2020-09-14T02:47:44Z")

</div>

Hello,

There is SUSE Linux Enterprise Server 15 SP1 server which has following network interface  
**eth0 171.16.10.10  
eth1 171.16.20.10  
eth2 171.16.30.10  
eth3 171.16.40.10**

I want to setup the static root as following.  
**171.16.130.0/24 via 171.16.0.1 dev eth0  
171.16.140.0/24 via 171.16.0.1 dev eth1  
171.16.150.0/24 via 171.16.0.1 dev eth2  
171.16.160.0/24 via 171.16.0.1 dev eth3**

I referred to the Administration Guide([https://documentation.suse.com/sles/15-SP1/html/SLES-all/cha-network.html](https://documentation.suse.com/sles/15-SP1/html/SLES-all/cha-network.html)) “19.4.1.5 Configuring Routing”,  
and setup as following.  
 ![](https://forums.suse.com/uploads/editor/t5/8p0ww2w53w6t.png)

After rebooting the machine I checked the route. But the static roots donÂt reflect as following.  
**ip-171-16-10-10:~ # ip r  
default via 171.16.0.1 dev eth0 proto dhcp  
default via 171.16.0.1 dev eth1 proto dhcp metric 10100  
default via 171.16.0.1 dev eth2 proto dhcp metric 10200  
default via 171.16.0.1 dev eth3 proto dhcp metric 10300  
171.16.0.0/17 dev eth2 proto kernel scope link src 171.16.20.10  
171.16.0.0/17 dev eth0 proto kernel scope link src 171.16.10.10  
171.16.0.0/17 dev eth3 proto kernel scope link src 171.16.40.10  
171.16.0.0/17 dev eth1 proto kernel scope link src 171.16.30.10**

Next I referred to the same Guid “19.5.2.7 /etc/sysconfig/network/routes and /etc/sysconfig/network/ifroute-”, and setup as following.  
\*\*\*\*ip-171-16-10-10:~ # cat /etc/sysconfig/network/routes  
default 171.16.0.1 - eth0  
171.16.130.0 171.16.0.1 255.255.255.0 eth0  
171.16.140.0 171.16.0.1 255.255.255.0 eth1  
171.16.150.0 171.16.0.1 255.255.255.0 eth2  
171.16.160.0 171.16.0.1 255.255.255.0 eth3

ip-171-16-10-10:~ # cat /etc/sysconfig/network/ifroute-eth0  
171.16.130.0/24 171.16.0.1 - eth0  
default 171.16.0.1 - eth0  
ip-171-16-10-10:~ #  
ip-171-16-10-10:~ # cat /etc/sysconfig/network/ifroute-eth1  
171.16.140.0/24 171.16.0.1 - eth1  
ip-171-16-10-10:~ #  
ip-171-16-10-10:~ # cat /etc/sysconfig/network/ifroute-eth2  
171.16.150.0/24 171.16.0.1 - eth2  
ip-171-16-10-10:~ #  
ip-171-16-10-10:~ # cat /etc/sysconfig/network/ifroute-eth3  
171.16.160.0/24 171.16.0.1 - eth3\*\*\*\*

After rebooting the machine I checked the route. But the static roots donÂt reflect as following.  
**ip-171-16-10-10:~ # ip r  
default via 171.16.0.1 dev eth0 proto dhcp  
default via 171.16.0.1 dev eth1 proto dhcp metric 10100  
default via 171.16.0.1 dev eth2 proto dhcp metric 10200  
default via 171.16.0.1 dev eth3 proto dhcp metric 10300  
171.16.0.0/17 dev eth0 proto kernel scope link src 171.16.10.10  
171.16.0.0/17 dev eth2 proto kernel scope link src 171.16.20.10  
171.16.0.0/17 dev eth1 proto kernel scope link src 171.16.30.10  
171.16.0.0/17 dev eth3 proto kernel scope link src 171.16.40.10**

Could you tell me how to setup the static roots?

Thanks.

---

<div class="post-metadata">

**Author:** ![Daishi](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@Daishi](https://forums.suse.com/u/Daishi)\
**Post date:** [September 18, 2020, 12:07am UTC](https://forums.suse.com/t/how-to-setup-the-static-roots/35277/2 "2020-09-18T00:07:59Z")

</div>

I found another problem.  
I set the routing in YaST.  
 ![](https://forums.suse.com/uploads/editor/di/a505jxotoal0.png)

It seems to be set, but unreachable.  
 ![](https://forums.suse.com/uploads/editor/oc/2wzjrqaaofby.png)

---

<div class="post-metadata">

**Author:** ![Daishi](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@Daishi](https://forums.suse.com/u/Daishi)\
**Post date:** [September 23, 2020, 7:29am UTC](https://forums.suse.com/t/how-to-setup-the-static-roots/35277/3 "2020-09-23T07:29:45Z")

</div>

Hello,

If the static route is set, is it impossible to communicate to other subnets?  
Now it seems to be impossible to communicate 171.16.10.0/24 to 171.16.130.0/24, and so on.
