### Network configuration for BFD over RIP: static routes and BFD enablement Source: https://github.com/dtruong46me/h3c/blob/master/05-Layer 3—IP Routing Configuration Guide/03-RIP configuration.md The example setup describes configuring static routes on Switches A and C, enabling RIP redistribution, and enabling BFD on key interfaces. This is a textual description rather than a code block. ```text Configure a static route destined for 100.1.1.0/24 on Switch A. Configure a static route destined for 101.1.1.0/24 on Switch C. Enable static route redistribution into RIP on Switch A and Switch C. Enable BFD on VLAN-interface 100 of Switch A and VLAN-interface 200 of Switch C. ``` -------------------------------- ### Start Chef Client Source: https://github.com/dtruong46me/h3c/blob/master/11-Network Management and Monitoring Configuration Guide/14-Chef configuration.md Commands to start the Chef client process on the network device. ```bash system-view [ChefClient] third-part-process start name chef-client arg --config=flash:/chefclient.rb --runlist recipe[netdev] ``` -------------------------------- ### Dynamic Configuration Example Source: https://github.com/dtruong46me/h3c/blob/master/11-Network Management and Monitoring Configuration Guide/25-VCF fabric configuration.md Example of dynamic configurations that depend on VCF fabric topology information obtained through LLDP. ```text # interface $_underlayIntfDown port link-mode route ip address unnumbered interface LoopBack0 ospf 1 area 0.0.0.0 ospf network-type p2p lldp management-address arp-learning lldp tlv-enable basic-tlv management-address-tlv interface LoopBack0 # ``` -------------------------------- ### Initialize Device C Source: https://github.com/dtruong46me/h3c/blob/master/03-Layer 2—LAN Switching Configuration Guide/06-M-LAG configuration.md Starts the configuration for Device C. ```text # Create Layer 2 dynamic aggregate interface Bridge-Aggregation 100. system-view ``` -------------------------------- ### NETCONF get netconf-state operation Source: https://github.com/dtruong46me/h3c/blob/master/11-Network Management and Monitoring Configuration Guide/11-NETCONF configuration.md Example of retrieving NETCONF monitoring information using the get operation. ```xml ``` ```xml Retrieved NETCONF information ``` -------------------------------- ### Configure startup software upgrade step by step Source: https://github.com/dtruong46me/h3c/blob/master/11-Network Management and Monitoring Configuration Guide/15-SmartMC configuration.md Specifies upgrade files and then upgrades startup software on members. Caution: upgrading startup software may interrupt services. ```cli system-view smartmc tc tc-id boot-loader { ipe-filename | boot boot-filename system system-filename } ``` ```cli smartmc upgrade boot-loader tc tc-id-list ``` -------------------------------- ### NETCONF RPC get operation with index-type valuetype Source: https://github.com/dtruong46me/h3c/blob/master/11-Network Management and Monitoring Configuration Guide/11-NETCONF configuration.md Example of an RPC get request specifying an index-type value for the IfIndex element. ```xml 1 ``` ```xml Device state and configuration data ``` -------------------------------- ### Configure shell banner in multiple lines using start delimiter Source: https://github.com/dtruong46me/h3c/blob/master/01-Fundamentals Configuration Guide/10-Device management configuration.md Example of configuring a shell banner by specifying a start delimiter after the command keyword. ```text system-view [System] header shell A Please input banner content, and quit with the character 'A'. Have a nice day.A ``` -------------------------------- ### Sample configuration file excerpt Source: https://github.com/dtruong46me/h3c/blob/master/01-Fundamentals Configuration Guide/06-Configuration file management configuration.md An example showing the required structure where sections are separated by a pound sign (#). ```text # local-user root class manage password hash $h$6$Twd73mLrN8O2vvD5$Cz1vgdpR4KoTiRQNE9pg33gU14Br2p1VguczLSVyJLO2huV5Syx/LfDIf8ROLtVErJ/C31oq2rFtmNuyZf4STw== service-type ssh telnet terminal authorization-attribute user-role network-admin authorization-attribute user-role network-operator # interface Vlan-interface1 ip address 192.168.1.84 255.255.255.0 # ``` -------------------------------- ### Specify startup images using .bin files Source: https://github.com/dtruong46me/h3c/blob/master/01-Fundamentals Configuration Guide/07-Software upgrade configuration.md Specifies main or backup startup images for all member devices using .bin files. Use the all keyword as a best practice in a multichassis IRF fabric to avoid version inconsistencies. ```cli boot-loader file boot filename system filename [ feature filename&<1-30> ] [ patch filename&<1-16> ] { all | slot slot-number } { backup | main } ``` -------------------------------- ### Enable SFTP or SCP server Source: https://github.com/dtruong46me/h3c/blob/master/11-Network Management and Monitoring Configuration Guide/12-Ansible configuration.md Commands to enable either the SFTP server or SCP server depending on device support, as part of the device setup example. ```cli [Device] sftp server enable [Device] scp server enable ``` -------------------------------- ### Display mDNS relay configuration Source: https://github.com/dtruong46me/h3c/blob/master/04-Layer 3—IP Services Configuration Guide/05-mDNS relay configuration.md Displays the mDNS relay configuration after the example setup. Shows the gateway IP and per-VLAN source IP addresses and probe intervals. ```cli [Switch] display mdns relay mDNS relay configuration: mDNS gateway IP: 192.168.3.2 mDNS relay configuration in VLANs: VLAN ID Source IP address Probe interval (sec) 10 192.168.3.1 -- 20 192.168.3.1 -- ``` -------------------------------- ### Configure FTP server example - create local user and enable FTP Source: https://github.com/dtruong46me/h3c/blob/master/01-Fundamentals Configuration Guide/04-FTP and TFTP configuration.md Commands to create a local user with username abc and password hello12345, assign network-admin role with working directory flash:/, set service type FTP, enable FTP server, and exit system view. ```h3c-cli system-view [Sysname] local-user abc class manage [Sysname-luser-manage-abc] password simple hello12345 [Sysname-luser-manage-abc] authorization-attribute user-role network-admin work-directory flash:/ [Sysname-luser-manage-abc] service-type ftp [Sysname-luser-manage-abc] quit [Sysname] ftp server enable [Sysname] quit ``` -------------------------------- ### Download and execute the Python script Source: https://github.com/dtruong46me/h3c/blob/master/01-Fundamentals Configuration Guide/12-Python configuration.md Commands to download the script test.py via TFTP and execute it on the device. The output shows the startup configuration commands being executed successfully. ```plaintext tftp 192.168.1.26 get test.py ``` ```plaintext python flash:/test.py startup saved-configuration flash:/main.cfg main Please wait...... Done. startup saved-configuration flash:/backup.cfg backup Please wait...... Done. ``` -------------------------------- ### Assign user role and service types for local user Source: https://github.com/dtruong46me/h3c/blob/master/11-Network Management and Monitoring Configuration Guide/12-Ansible configuration.md Commands to assign the network-admin user role to user 'abc' and authorize SSH, HTTP, and HTTPS services. This is part of the device setup example. ```cli [Device-luser-manage-abc] authorization-attribute user-role network-admin [Device-luser-manage-abc] service-type ssh http https [Device-luser-manage-abc] quit ``` -------------------------------- ### Enable RIP on Switch A using network commands Source: https://github.com/dtruong46me/h3c/blob/master/05-Layer 3—IP Routing Configuration Guide/03-RIP configuration.md Enter system view, start RIP process 1, and advertise networks 1.0.0.0, 2.0.0.0, and 3.0.0.0. This is the first step in the basic RIP configuration example. ```h3c-cli system-view [SwitchA] rip [SwitchA-rip-1] network 1.0.0.0 [SwitchA-rip-1] network 2.0.0.0 [SwitchA-rip-1] network 3.0.0.0 [SwitchA-rip-1] quit ``` -------------------------------- ### Configure EPS agent example commands Source: https://github.com/dtruong46me/h3c/blob/master/11-Network Management and Monitoring Configuration Guide/27-EPS agent configuration.md Configuration example: specify EPS server IP 20.1.1.2 and port 4500, then enable EPS agent on slot 1. ```cli system-view ``` ```cli [Sysname] eps server 20.1.1.2 port 4500 ``` ```cli [Sysname] eps agent enable slot 1 ``` -------------------------------- ### Enable RIP on Switch B using interface commands Source: https://github.com/dtruong46me/h3c/blob/master/05-Layer 3—IP Routing Configuration Guide/03-RIP configuration.md Enter system view, start RIP process 1, and enable RIP on VLAN interfaces 100, 101, and 102. This is the second step in the basic RIP configuration example. ```h3c-cli system-view [SwitchB] rip [SwitchB-rip-1] quit [SwitchB] interface vlan-interface 100 [SwitchB-Vlan-interface100] rip 1 enable [SwitchB-Vlan-interface100] quit [SwitchB] interface vlan-interface 101 [SwitchB-Vlan-interface101] rip 1 enable [SwitchB-Vlan-interface101] quit [SwitchB] interface vlan-interface 102 [SwitchB-Vlan-interface102] rip 1 enable [SwitchB-Vlan-interface102] quit ``` -------------------------------- ### Resource File (default.rb) Source: https://github.com/dtruong46me/h3c/blob/master/11-Network Management and Monitoring Configuration Guide/14-Chef configuration.md Example resource file to create a VLAN. ```ruby netdev_vlan 'vlan3' do vlan_id 3 action :create end ``` -------------------------------- ### Display startup configuration files Source: https://github.com/dtruong46me/h3c/blob/master/01-Fundamentals Configuration Guide/12-Python configuration.md Command to display the startup configuration files, showing the current and next startup configuration files. ```plaintext display startup Current startup saved-configuration file: flash:/startup.cfg Next main startup saved-configuration file: flash:/main.cfg Next backup startup saved-configuration file: flash:/backup.cfg ``` -------------------------------- ### Verify startup image settings Source: https://github.com/dtruong46me/h3c/blob/master/01-Fundamentals Configuration Guide/07-Software upgrade configuration.md Displays the current startup image settings to verify the configuration. ```cli display boot-loader ``` -------------------------------- ### Configure device as SSH server: create local user and set password Source: https://github.com/dtruong46me/h3c/blob/master/11-Network Management and Monitoring Configuration Guide/12-Ansible configuration.md Shows CLI commands to enter system view, create local user 'abc', and set its password to '123456TESTplat&!'. This is part of the device setup example for enabling SSH server on an H3C device. ```cli system-view [Device]local-user abc [Device-luser-manage-abc] password simple 123456TESTplat&! ``` -------------------------------- ### Configure Workstation Source: https://github.com/dtruong46me/h3c/blob/master/11-Network Management and Monitoring Configuration Guide/14-Chef configuration.md Commands to set up the workstation directory and configuration. ```bash $ mkdir /chef-repo $ mkdir –p /chef-repo/.chef ``` -------------------------------- ### Static Configuration Example Source: https://github.com/dtruong46me/h3c/blob/master/11-Network Management and Monitoring Configuration Guide/25-VCF fabric configuration.md Example of static configurations that are independent of the VCF fabric topology. ```text #STATICCFG # clock timezone beijing add 08:00:00 # lldp global enable # stp global enable # ```