Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 547

Advertising
background image

Network OS NETCONF Operations Guide

515

53-1003231-02

Configuring static routes

33

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-oif>

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-oif> node, include the following leaf nodes.

a. In the <static-route-dest> element, specify the destination IP address.

b. In the <static-route-oif-type> element, specify the interface type of the egress interface.

Possible values are “tengigabitethernet”, “gigabitethernet”, “fortygigabitethernet”,
“port-channel”, and “null”.

c. In the <static-route-oif-name> element, specify the name of the interface in

[rbridge-id/]slot/port or port-channel number format.

The following example configures a static IP route for destination network 192.128.2.0/24.
Because an Ethernet port is specified instead of a gateway IP address as the next hop, the Brocade
device forwards traffic for the 192.128.2.0/24 network to the tengigabitethernet port 101/4/1.

<rpc message-id="3301" 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-oif>

<static-route-dest>192.128.2.0/24

</static-route-dest>

<static-route-oif-type>tengigabitethernet

</tengigabitethernet>

<static-route-oif-name>101/4/1

</static-route-oif-name>

</static-route-oif/>

</route>

</rtm-config>

</ip>

</rbridge-id>

</config>

</edit-config>

</rpc>

<rpc-reply message-id="3301" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

Advertising