RESTCONF | Obtener información de un Cisco Switch con RESTCONF
El objetivo es ejecutar el comando show interface status Cisco Switch con IOS-XE de una forma más "programática" en este caso usariamos RESTCONF que está basado en HTTPS para obtener dicha configuración.
1. Habilitar RESTCONF en el Cisco Switch
SW1(config)#restconf
2. Habilitar HTTPS en el Cisco Switch
SW1(config)#ip http secure-server
3. Desde una máquina virtual Linux, ejecutar los siguientes comandos para realizar un comando GET para obtener información del switch (en este ejemplo queremos realizar un show interface status en el Cisco switch)
root@angel-pc:~# curl -k https://192.168.1.10/restconf/data/Cisco-IOS-XE-native:native/interface/ -u "usuario_ssh:contraseña_ssh"
OUTPUT
<interface xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native" xmlns:ios="http://cisco.com/ns/yang/Cisco-IOS-XE-native">
<GigabitEthernet>
<name>0/0</name>
<vrf>
<forwarding>Mgmt-vrf</forwarding>
</vrf>
<negotiation xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-ethernet">
<auto>true</auto>
</negotiation>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/1</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
<channel-group xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-ethernet">
<number>1</number>
<mode>on</mode>
</channel-group>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/10</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/11</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/12</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/13</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/14</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/15</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/16</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/17</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/18</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/19</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/2</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
<channel-group xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-ethernet">
<number>2</number>
<mode>on</mode>
</channel-group>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/20</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/21</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/22</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/23</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/24</name>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/3</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
<channel-group xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-ethernet">
<number>3</number>
<mode>on</mode>
</channel-group>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/4</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
<channel-group xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-ethernet">
<number>4</number>
<mode>on</mode>
</channel-group>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/5</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
<channel-group xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-ethernet">
<number>5</number>
<mode>active</mode>
</channel-group>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/6</name>
<description></description>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>99</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/7</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/8</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/0/9</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/1/1</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/1/2</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/1/3</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>1/1/4</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/1</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
<channel-group xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-ethernet">
<number>1</number>
<mode>on</mode>
</channel-group>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/10</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/11</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/12</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/13</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/14</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/15</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/16</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/17</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/18</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/19</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/2</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
<channel-group xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-ethernet">
<number>2</number>
<mode>on</mode>
</channel-group>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/20</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/21</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/22</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/23</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/24</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/3</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
<channel-group xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-ethernet">
<number>3</number>
<mode>on</mode>
</channel-group>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/4</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
<channel-group xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-ethernet">
<number>4</number>
<mode>on</mode>
</channel-group>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/5</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
<channel-group xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-ethernet">
<number>5</number>
<mode>active</mode>
</channel-group>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/6</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/7</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/8</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/0/9</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/1/1</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/1/2</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/1/3</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<GigabitEthernet>
<name>2/1/4</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</GigabitEthernet>
<TenGigabitEthernet>
<name>1/1/1</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</TenGigabitEthernet>
<TenGigabitEthernet>
<name>1/1/2</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</TenGigabitEthernet>
<TenGigabitEthernet>
<name>1/1/3</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</TenGigabitEthernet>
<TenGigabitEthernet>
<name>1/1/4</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</TenGigabitEthernet>
<TenGigabitEthernet>
<name>2/1/1</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</TenGigabitEthernet>
<TenGigabitEthernet>
<name>2/1/2</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</TenGigabitEthernet>
<TenGigabitEthernet>
<name>2/1/3</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</TenGigabitEthernet>
<TenGigabitEthernet>
<name>2/1/4</name>
<switchport>
<access xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<vlan>
<vlan>111</vlan>
</vlan>
</access>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<access>
</access>
</mode>
</switchport>
<shutdown/>
</TenGigabitEthernet>
<Port-channel>
<name>1</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
</Port-channel>
<Port-channel>
<name>2</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
</Port-channel>
<Port-channel>
<name>3</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
</Port-channel>
<Port-channel>
<name>4</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
</Port-channel>
<Port-channel>
<name>5</name>
<description></description>
<switchport>
<mode xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-switch">
<trunk>
</trunk>
</mode>
</switchport>
</Port-channel>
<Vlan>
<name>1</name>
<shutdown/>
</Vlan>
<Vlan>
<name>10</name>
<description>Management</description>
<ip>
<address>
<primary>
<address>192.168.10.1</address>
<mask>255.255.255.0</mask>
</primary>
</address>
</ip>
</Vlan>
<Vlan>
<name>20</name>
<description>Data</description>
<ip>
<address>
<primary>
<address>192.168.20.0</address>
<mask>255.255.255.0</mask>
</primary>
</address>
<helper-address>
<address>192.168.100.1</address>
</helper-address>
<helper-address>
<address>192.168.200.2</address>
</helper-address>
</ip>
</Vlan>
root@angel-pc:~#
Comentarios
Publicar un comentario