关于修改eveng的ip地址的操作
修改vi etc\network\interfaces文件,这个vi怎么操作呀,怎么修改呀,网上说是i就进入修改模式,可是很难操作啊。。。好打击,第一步就卡住了按字母 i 进入插入修改模式,修改完后按esc,输入:wq保存退出。vi是个编辑器,建议网上看一看文档。 给你看我的配置,这里eth0是我插网线的端口,pnet0实际上是linux bridge,web访问http://192.20.1.100或者终端ssh 192.20.1.100 都可以
root@eve-ng:/opt/unetlab/addons/qemu# 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 192.20.1.100
netmask 255.255.255.0
gateway 192.20.1.254
dns-nameserver 10.2.2.2
pre-up ip link set dev eth0 up
bridge_ports eth0
bridge_stp off
# Cloud devices
a410721570 发表于 2023-5-25 15:11
给你看我的配置,这里eth0是我插网线的端口,pnet0实际上是linux bridge,web访问http://192.20.1.100或 ...
这个配置可以,牛:hug:
页:
[1]