UNSOLVED

Dan36

updated

9 years ago

D

Dan36

1 Rookie

1 Message

0

3238

August 1st, 2017 03:00

Configuring Static Routes

Hi,

I am trying to configure a static route on an ECS appliance.  I have found the following white paper: https://www.emc.com/collateral/white-paper/h15718-ecs-networking-bp-wp.pdf and created a file ifroute-public.repl:

admin@provo-blue:/etc/sysconfig/network> cat ifroute-public.repl

192.168.0.0 10.240.223.100 255.255.255.0 public.repl

I've also run sudo service network restart and yet the route is not in the local host routing table:

admin@provo-blue:/etc/sysconfig/network> netstat -rn

Kernel IP routing table

Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface

0.0.0.0         10.241.172.1    0.0.0.0         UG        0 0          0 public

10.241.172.0    0.0.0.0         255.255.255.0   U         0 0          0 public

127.12.7.0      0.0.0.0         255.255.255.0   U         0 0          0 docker0

169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 private.4

192.168.219.0   0.0.0.0         255.255.255.0   U         0 0          0 private

Could someone please let me know how I can add a persistent static route to an ECS appliance?

  • benschumacher

    1 Rookie

    75 Posts

    2248

    0

    Posted August 7th, 2017 07:00

    Can you try running this command after you complete modifying your ifroute-public.repl file: sudo systemctl restart wicked wickedd


    Then, you can run: sudo wicked ifstatus public


    That should tell you if the route persisted.

  • girijb

    1 Message

    855

    0

    Posted June 27th, 2022 21:00

    you can modify routes file under /etc/sysconfig/network/routes

    sudo vi /etc/sysconfig/network/routes

    172.15.3.33 172.15.6.1 255.255.255.255 -            # adding static route, and a - in the end of the line
    sudo service network reload                                    # restart network service after adding static route

    sudo netstat -rn                                                          # check your new static route