Advertisement
moneron

NAT lab: INTERNET

Sep 3rd, 2017
1,039
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. # Config of INTERNET in NAT lab
  2. #
  3. # Management in EVE-NG:
  4. /ip dhcp-client
  5. add dhcp-options=hostname,clientid disabled=no interface=ether1
  6. /system identity
  7. set name=INTERNET
  8. /tool romon
  9. set enabled=yes
  10.  
  11. # Addresses:
  12. /ip address
  13. add address=10.1.0.1/30 interface=ether2 network=10.1.0.0
  14. add address=10.1.0.5/30 interface=ether3 network=10.1.0.4
  15. add address=10.2.0.1/24 interface=ether4 network=10.2.0.0
  16.  
  17. # DHCP for PC2
  18. /ip pool
  19. add name=dhcp_pool0 ranges=10.2.0.2-10.2.0.254
  20. /ip dhcp-server
  21. add address-pool=dhcp_pool0 disabled=no interface=ether4 name=dhcp1
  22. /ip dhcp-server network
  23. add address=10.2.0.0/24 gateway=10.2.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement