Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 600

Advertising
background image

568

Network OS NETCONF Operations Guide

53-1003231-02

Configuring DHCP Relay

39

1. Issue the <edit-config> RPC to configure the <interface> node in the

urn:brocade.com:mgmt:brocade-interface namespace.

2. Under the <interface> node, include the <gigabitethernet>, <tengigabitethernet>,

<fortygigabitethernet>, <hundredgigabitethernet>, or <port-channel> node element.

3. Under the <gigabitethernet>, <tengigabitethernet>, <fortygigabitethernet>,

<hundredgigabitethernet>, or <port-channel> node, include the <name> element and set its
value to the name of the interface for which you want to configure user-priority mappings.

4. Under the <gigabitethernet>, <tengigabitethernet>, <fortygigabitethernet>,

<hundredgigabitethernet>, or <port-channel> node, include the <dhcp> element located in
the urn:brocade.com:mgmt:brocade-dhcp namespace.

5. Set the <relay-ip-addr> node to the IP address for the DHCP server.

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

<edit-config>

<target>

<running/>

</target>

<config>

<interface xmlns="urn:brocade.com:mgmt:brocade-interface">

<tengigabitethernet>

<name>1/3/1</name>

<dhcp xmlns=”urn:brocade.com:mgmt:brocade-dhcp”>

<dhcp>

<relay>

<relay-ip-addr>100.1.1.2</relay-ip-addr>

</fabric-isl>

</fabric>

</tengigabitethernet>

</interface>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

The following is an example of configuring the same IP DHCP Relay address, except this time on VE
interface 100.

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

<edit-config>

<target>

<running/>

</target>

<config>

<interface xmlns="urn:brocade.com:mgmt:brocade-interface">

<ve>

<name>100</name>

<dhcp xmlns=”urn:brocade.com:mgmt:brocade-dhcp”>

<dhcp>

<relay>

<relay-ip-addr>100.1.1.2</relay-ip-addr>

</fabric-isl>

</fabric>

Advertising