I86bi-linuxl2-adventerprisek9-m-152-may-2018.bin — Download
Configure QEMU options (Advanced)
In the node config, add these parameters to avoid crashes:
-serial mon:stdio -nographic -enable-kvm
Start and test
Boot the node. You should see the Cisco boot sequence ending with the prompt Switch>.
After boot, you’ll see a classic IOS CLI. Here’s a basic Layer 2 config: i86bi-linuxl2-adventerprisek9-m-152-may-2018.bin download
enable configure terminal hostname Virtual-SW1! Create VLANs vlan 10 name Sales vlan 20 name Engineering
! Configure trunk interface GigabitEthernet0/0 switchport mode trunk switchport trunk allowed vlan 10,20 Compare to Cisco-provided checksum
! Configure access ports interface GigabitEthernet0/1 switchport mode access switchport access vlan 10 spanning-tree portfast
interface GigabitEthernet0/2 switchport mode access switchport access vlan 20 spanning-tree portfast Ensure sufficient free flash space:
! Enable SSH crypto key generate rsa modulus 1024 ip domain-name lab.local username cisco secret cisco line vty 0 4 login local transport input ssh
end write memory
The switch will behave almost identically to a physical Catalyst 2960/3560 (without L3).