EVE-NG-中文网论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2111|回复: 3

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

[复制链接]
发表于 2023-4-10 03:17:33 | 显示全部楼层 |阅读模式
修改vi   etc\network\interfaces文件,这个vi怎么操作呀,怎么修改呀,网上说是i就进入修改模式,可是很难操作啊。。。好打击,第一步就卡住了
回复

使用道具 举报

发表于 2023-5-10 09:18:07 | 显示全部楼层
按字母 i 进入插入修改模式,修改完后按esc,输入:wq保存退出。vi是个编辑器,建议网上看一看文档。
回复

使用道具 举报

发表于 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
回复

使用道具 举报

发表于 2023-5-29 23:47:52 | 显示全部楼层
a410721570 发表于 2023-5-25 15:11
给你看我的配置,这里eth0是我插网线的端口,pnet0实际上是linux bridge,web访问http://192.20.1.100  或 ...

这个配置可以,牛
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|EVE-NG-中文网论坛

GMT+8, 2024-4-28 01:25 , Processed in 0.035600 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc. Template By 【未来科技】【 www.wekei.cn 】

快速回复 返回顶部 返回列表