User Tools

Site Tools


virtualization:netsim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
virtualization:netsim [2023/03/27 19:22] jotasandokuvirtualization:netsim [2025/01/26 17:52] (current) jotasandoku
Line 19: Line 19:
   #!/bin/bash   #!/bin/bash
   apt remove needrestart -y    apt remove needrestart -y 
 +  sudo add-apt-repository universe
   apt-get update -y    apt-get update -y 
   apt install python3-pip -y    apt install python3-pip -y 
   python3 -m pip install netsim-tools   python3 -m pip install netsim-tools
 +  ! (consider) python3 -m  pip3 install --upgrade pyopenssl cryptography
   !   !
   ! APPLY THIS MANUALLY   ! APPLY THIS MANUALLY
Line 114: Line 116:
   vagrant box add nexus9300v.9.3.5.box --name cisco/nexus9300v   vagrant box add nexus9300v.9.3.5.box --name cisco/nexus9300v
   vagrant mutate cisco/nexus9300v libvirt   vagrant mutate cisco/nexus9300v libvirt
 +
 +
 +----
 +FOLDERS AND DEV ADVICES:
 +\\
 +See: [[https://netlab.tools/dev/module-attributes/]]
 +  * configuration templates snippets: 
 +    * ..netsim/ansible/templates/{module}/{vendor}.j2
 +      * example: ..netsim/ansible/templates/evpn/eos.j2
 +  * Module attributes for an individual module are stored (together with other module-specific data) in netsim/modules/<modname>.yml file.
 +
 +
 +
 +  # Default loopback, LAN, and P2P prefixes
 +  loopback:
 +    ipv6: 2001:db8:0::/48
 +  router_id:
 +    ipv4: 10.0.0.0/24
 +    prefix: 32
 +  lan:
 +    ipv6: 2001:db8:3e8::/48
 +  p2p:
 +    ipv6: 2001:db8:3e9::/48
 +  mgmt:
 +    ipv4: 192.168.121.0/24
 +    start: 100
 +    mac: 08-4F-A9-00-00-00
 +  l2only:
 +  vrf_loopback:
 +    ipv6: 2001:db8:3ea::/48
 +    
 +TCPDUMP IN NETLAB:
 +[[https://netlab.tools/netlab/capture/]]
 +  netlab up -p libvirt:p2p_bridge    # otherwise impossible to capture in lobvirt p2p links
 +  netlab capture r1 GigabitEthernet0/3 icmp -l
 +  netlab capture r1 GigabitEthernet0/3 -U -s0 -w - | sudo wireshark -k -i -
  
virtualization/netsim.1679944949.txt.gz · Last modified: (external edit)