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/04/25 11:49] 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 117: Line 119:
  
 ---- ----
-  # netlab is nortmally in /usr/local/lib/python3.10/dist-packages/netsim     do 'locate netlab' to be sure+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   # Default loopback, LAN, and P2P prefixes
   loopback:   loopback:
Line 135: Line 146:
   vrf_loopback:   vrf_loopback:
     ipv6: 2001:db8:3ea::/48     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.1682423379.txt.gz · Last modified: (external edit)