Skip to content

Instantly share code, notes, and snippets.

@umardx
Last active August 13, 2019 12:15
Show Gist options
  • Save umardx/f34e9aa8d2cdb863902484015408a804 to your computer and use it in GitHub Desktop.
Save umardx/f34e9aa8d2cdb863902484015408a804 to your computer and use it in GitHub Desktop.

Cisco IOS XE CSR1000v

Configuring NETCONF

Example:

username admin privilege 15 secret admin
!
interface GigabitEthernet1
  ip address 10.10.0.240 255.255.240.0
  no shutdown
!
netconf-yang

Enable SNMP features in IOS.

Example:

configure terminal
logging history debugging
logging snmp-trap emergencies
logging snmp-trap alerts
logging snmp-trap critical
logging snmp-trap errors
logging snmp-trap warnings
logging snmp-trap notifications
logging snmp-trap informational
logging snmp-trap debugging
!
snmp-server community public RW
snmp-server trap link ietf
snmp-server enable traps snmp authentication linkdown linkup snmp-server enable traps syslog
snmp-server manager
exit

Cisco IOS-XRv 9000

Enable SSH and NETCONF Port

crypto key generate rsa

hostname kuya.com

interface MgmtEth0/0/CPU0/0
 ipv4 address dhcp

domain name-server 167.205.3.1

router static
 address-family ipv4 unicast
  0.0.0.0/0 10.10.0.1

ssh server v2
netconf-yang agent ssh
ssh server netconf
ssh server netconf port 830

Juniper VMX

[edit]
system {
  services {
    netconf {
      ssh;
      traceoptions {
        file netconf-ops.log size 3m files 20 world-readable;
        flag all;
       }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment