User Tools

Site Tools


network_stuff:eveng

This is an old revision of the document!




Skip to end of metadata Created by Jaime Santos Amandi, last modified on Mar 19, 2021Go to start of metadata Installed eve-ng installed as vm under KVM and “Virtual Network (NAT)”

To access KVM via my laptop's virtual-manager (while in ocna), we just use ssh and the ssh proxy settings in .ssh/config:

## us-ashburn-1 V2 Host 10.195.* 10.197.* *iad1.oracledatacloud.com *iadshared1.oracledatacloud.com !bastion-62-* *ash.oci.grapeshot.co.uk *iad.oci.grapeshot.co.uk ProxyCommand ssh bastion-iad.oracledatacloud.com -W %h:%p

To access the UI interface on http://192.168.122.174/#/login : e do to socks tunnel to the end host (networklab). That ssh flow is directed to the proxy settings in .ssh/config and it just works (set FF settings to socks on 1084)

ssh -CAD 1084 user@networklab01.iad.oci.grapeshot.co.uk

CSR:

https://www.eve-ng.net/index.php/documentation/howtos/howto-add-cisco-csrv1000-16-x-denali-everest-fuji/

Alternative versions in networklab01:/home/jaime.santos.amandi/Downloads

THIS CSR VERSION WORKS /opt/qemu/bin/qemu-img create -f qcow2 virtioa.qcow2 8G

/opt/qemu-2.2.0/bin/qemu-system-x86_64 -nographic -drive file=virtioa.qcow2,if=virtio,bus=0,unit=0,cache=none -machine type=pc-1.0,accel=kvm -serial mon:stdio -nographic -nodefconfig -nodefaults -rtc base=utc -cdrom csr1000v-universalk9.16.03.09.iso -boot order=dc -m 4096

[.Takes some time to boot ~10min.] mkdir /opt/unetlab/addons/qemu/csr1000vng-universalk9.16.03.09 mv virtioa.qcow2 /opt/unetlab/addons/qemu/csr1000vng-universalk9.16.03.09/

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions [% Failed to initialize nvram but it finally boots]

1 vcpu and 4096 ram (defaults). 4 interfaces work ok and numbering correct

MANAGEMENT HOST AUTOMATION:

Install this image following the eve-ng howto : linux-ubuntu-server-18.04-pfne.tar.gz . See https://ipnet.xyz/2018/06/ubuntu-image-for-eve-ng-python-for-network-engineers/ cpu: 2 ; ram 8192 ethernets 2 ; qemu ver 2.12.0 x86_64 e1000 Create a cloud object (Management(Cloud0)) so we create a tun/tap interface to connect to the vms inside eve-ng to access the linux bastion host: root@192.168.122.160 Using eve-ng html-5 console, access the host and enable root login in sshd CISCO IOS BASELINE CONFIGURATION

The below is to be run manually in each of the CSR routers when they boot:

Link

This is to allow the automation tool to talk to the routers

conf t username ansible privilege 15 password 0 ansible line vty 0 8 exec-timeout 720 0 password ansible login local transport input ssh ! use this command when copying the public key from the users' workstation to the router: fold -b -w 72 /home/ubuntu/.ssh/id_rsa.pub conf t username jaime privilege 15 ip ssh pubkey-chain username jaime key-string ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVewvRcYNMK7e88mCs5clB5G6ItBuOP8xgZhYbvVQDboXdNbrWlnokGdIOBQY1 M8K5bbTDdVeHf8mXgfVxWGrcd0uigO+VDxcRL5tFPcx7rJQVhsVaTbnIzmNmRpqihRUHvVN2yxNHEwLZa2fuzFqghcJOJLCCY+kh px4uq2D7ILX/NBggSm0mXTJJ+9ebBP2MLbJItwwnmdAhaUUbgMNNPp218SpK1Bjbv57/gDi+4Kgzu8ojJgqcvAq4gK0T4RVPjbSH NTXFkGkbmF9XHQYibrHeOOLKuhGNzdNGLAPO/S/JvKI94WdnUMfxdOFlbMolmKijFGCy6YzWcMVoHaQT root@ubuntu1804-pfn e exit exit exit wr !

network_stuff/eveng.1629725394.txt.gz · Last modified: (external edit)