magistral-medium-2506 LMArena Human Preference 140K
can you create .yml file with labs for cisco cml?
- User
can you create .yml file with labs for cisco cml?
- Assistant
Here's a YAML file for a basic Cisco CML lab with two routers and one switch:
lab: title: 'Basic Network Lab' description: 'A simple lab with two routers and a switch' version: 1.0 nodes: - id: n0 label: R1 node_definition: iosv x: -200 y: 0 configuration: | hostname R1 interface GigabitEthernet0/0 ip address 192.168.1.1 255.255.255.0 no shutdown - id: n1 label: R2 node_definition: iosv x: 0 y: 0 configuration: | hostname R2 interface GigabitEthernet0/0 ip address 192.168.1.2 255.255.255.0 no shutdown - id: n2 label: SW1 node_definition: iosv-l2 x: 100 y: 0 configuration: | hostname SW1 interface GigabitEthernet0/0 switchport mode access no shutdown interface GigabitEthernet0/1 switchport mode access no shutdown links: - id: l0 source: n0 target: n2 source_label: GigabitEthernet0/0 target_label: GigabitEthernet0/0 - id: l1 source: n1 target: n2 source_label: GigabitEthernet0/0 target_label: GigabitEthernet0/1This YAML file defines a lab with two routers (R1 and R2) and one switch (SW1). The routers are connected to the switch via Ethernet links. The routers are configured with IP addresses in the same subnet (192.168.1.0/24), and the switch is configured with access ports. This setup allows the routers to communicate with each other through the switch.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.