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外部網絡