2.279. openstack router set


usage: openstack router set [-h] [--name <name>] [--enable | --disable]
                            [--distributed | --centralized]
                            [--route destination=<subnet>,gateway=<ip-address> | --no-route]
                            <router>
Copy to Clipboard Toggle word wrap
Set router properties

Positional arguments

<router>


        Router to modify (name or ID)

Optional arguments

-h, --help


        show this help message and exit

--name <name>


        Set router name

--enable


        Enable router

--disable


        Disable router

--distributed


        Set router to distributed mode (disabled router only)

--centralized


        Set router to centralized mode (disabled router only)

--route


        destination=<subnet>,gateway=<ip-address>
      Routes associated with the router destination:
      destination subnet (in CIDR notation) gateway: nexthop
      IP address (repeat option to set multiple routes)

--no-route


        Clear routes associated with the router

Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat