如何在虚拟机上安装的VyOS路由器(版本1.1.5)中启用接口? 我使用OpenStack来部署虚拟机。在分离其中一个端口并将其再次连接到另一个网络后,相应的接口处于管理状态。
我尝试使用ubuntu虚拟机进行相同的分离/附加实验,我必须通过脚本启用界面才能使其正常工作。
vyos@vyos# run show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address S/L Description
--------- ---------- --- -----------
eth0 10.0.3.108/24 u/u
eth1 - u/u
eth2 - A/D
eth3 - u/u
lo 127.0.0.1/8 u/u
::1/128
[edit]
我似乎只找到了禁用命令。
vyos@vyos# set interfaces ethernet eth2
Possible completions:
+ address IP address
bond-group Assign interface to bonding group
> bridge-group Add this interface to a bridge group
description Description
> dhcpv6-options
DHCPv6 options
disable Disable interface
disable-flow-control
Disable Ethernet flow control (pause frames)
disable-link-detect
Ignore link state changes
duplex Duplex mode
> firewall Firewall options
hw-id Media Access Control (MAC) address
> ip IPv4 routing parameters
> ipv6 IPv6 routing parameters
mac Media Access Control (MAC) address
mirror Incoming packet mirroring destination
mtu Maximum Transmission Unit (MTU)
> policy Policy route options
+> pppoe PPPOE unit number
redirect Incoming packet redirection destination
smp_affinity CPU interrupt affinity mask
speed Link speed
> traffic-policy
Traffic-policy for interface
+> vif Virtual Local Area Network (VLAN) ID
+> vif-s QinQ TAG-S Virtual Local Area Network (VLAN) ID
> vrrp Virtual Router Redundancy Protocol (VRRP)
答案 0 :(得分:0)
我重新启动VyOS并重新启动后所有接口都启动了,因为我还没有发现设置接口的命令。