EVE模擬器橋接外部網絡


step1:檢查EVE虛擬機的網卡信息

root@eve-ng:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
iface eth0 inet manual
auto pnet0
iface pnet0 inet static
address 10.10.1.100
netmask 255.255.255.0
gateway 10.10.1.254
dns-domain example.com
dns-nameservers 8.8.8.8 8.8.4.4
bridge_ports eth0
bridge_stp off

# Cloud devices
iface eth1 inet manual
auto pnet1
iface pnet1 inet manual
bridge_ports eth1
bridge_stp off

iface eth2 inet manual
auto pnet2
iface pnet2 inet manual
bridge_ports eth2
bridge_stp off

注:本例中eth0為eve管理網卡,eth1為連接外部的linux虛擬機的網卡,eth2為連接外部的cp防火牆的網卡

step2:創建橋接網絡

 連接cp防火牆

連接linux

網絡拓撲如下:

step3:測試

linux ping外部網絡

N9K ping外部網絡


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM