yangfu1003 发表于 2023-4-10 03:17:33

关于修改eveng的ip地址的操作

修改vi   etc\network\interfaces文件,这个vi怎么操作呀,怎么修改呀,网上说是i就进入修改模式,可是很难操作啊。。。好打击,第一步就卡住了

rekerch 发表于 2023-5-10 09:18:07

按字母 i 进入插入修改模式,修改完后按esc,输入:wq保存退出。vi是个编辑器,建议网上看一看文档。

a410721570 发表于 2023-5-25 15:11:35

给你看我的配置,这里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

via-lzm 发表于 2023-5-29 23:47:52

a410721570 发表于 2023-5-25 15:11
给你看我的配置,这里eth0是我插网线的端口,pnet0实际上是linux bridge,web访问http://192.20.1.100或 ...

这个配置可以,牛:hug:
页: [1]
查看完整版本: 关于修改eveng的ip地址的操作