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外部网络