Specifying the next hop gateway, Specifying the egress interface – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 546

514
Network OS NETCONF Operations Guide
53-1003231-02
Configuring static routes
33
Specifying the next hop gateway
To specify the next hop gateway, perform the following steps.
1. Issue the <edit-config> RPC to configure the <rbridge-id> node in the
urn:brocade.com:mgmt:brocade-rbridge namespace.
2. Under the <rbridge-id> node, include the <rbridge-id> leaf node, and specify the ID of the
routing bridge on which you want to configure static routes.
3. Under the <rbridge-id> node, include the <ip>/<rtm-config>/<route>/<static-route-nh>
hierarchy of node elements.
The <rtm-config> and subsequent nodes are located in the
urn:brocade.com:mgmt:brocade-rtm namespace.
4. Under the <static-route-nh> node, include the following leaf nodes.
a. In the <static-route-dest> element, specify the destination IP address.
b. In the <static-route-next-hop> element, specify the next hop IP address.
The following example configures a static route to 207.95.7.0, using 207.95.6.157 as the next-hop
gateway.
<rpc message-id="3300" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<rbridge-id xmlns="urn:brocade.com:mgmt:brocade-rbridge">
<rbridge-id>30</rbridge-id>
<ip>
<rtm-config xmlns="urn:brocade.com:mgmt:brocade-rtm">
<route>
<static-route-nh>
<static-route-dest>207.95.7.0/24</static-route-dest>
<static-route-next-hop>207.95.6.157
</static-route-next-hop>
</static-route-nh/>
</route>
</rtm-config>
</ip>
</rbridge-id>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="3300" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Specifying the egress interface
To configure a static IP route with a physical interface port or port-channel, perform the following
steps.