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) “19.4.1.5 Configuring Routing”,
and setup as following.
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.