
VyOSとCisco機のshowコマンド比較とログの例
はじめに
Cisco機を触ったことあるが、VyOSを触ったことがなかった自分用のメモとして記載します。
コマンド比較
ターミナル設定
VyOS :set ter len 0
Cisco:ter len 0
バージョン確認
VyOS :show version
Cisco:show version
設定確認
VyOS :show conf または show conf commands
Cisco:show run
インターフェース設定
VyOS :show interfaces
Cisco:show interfaces
arp設定
VyOS :show arp
Cisco:show arp
ルーティング確認
VyOS :show ip route
Cisco:show ip route
コマンド結果
Welcome to VyOS!
lqq k
. VyOS 1.5-rolling-202409160007
m qqj current
* Support portal: https://support.vyos.io
* Documentation: https://docs.vyos.io/en/latest
* Project news: https://blog.vyos.io
* Bug reports: https://vyos.dev
You can change this banner using "set system login banner post-login" command.
VyOS is a free software distribution that includes multiple components,
you can check individual component licenses under /usr/share/doc/*/copyright
Last login: Mon Sep 16 11:00:53 2024 from 192.168.11.32
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$ set ter len 0
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$ show version
Version: VyOS 1.5-rolling-202409160007
Release train: current
Release flavor: generic
Built by: autobuild@vyos.net
Built on: Mon 16 Sep 2024 00:07 UTC
Build UUID: e02fedb9-6ba6-45e0-ba4b-c532a72fce15
Build commit ID: 300674c1444d36
Architecture: x86_64
Boot via: livecd
System type: Microsoft Hyper-V guest
Hardware vendor: Microsoft Corporation
Hardware model: Virtual Machine
Hardware S/N: 5970-9660-1083-4747-5363-3754-43
Hardware UUID: f8f5ab39-206d-af41-9367-cd3efa2fe1ef
Copyright: VyOS maintainers and contributors
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$ show conf
interfaces {
ethernet eth0 {
address 10.0.0.254/24
hw-id 00:15:5d:0b:96:08
offload {
gro
gso
sg
tso
}
}
loopback lo {
}
}
protocols {
static {
route 192.168.11.0/24 {
next-hop 10.0.0.1 {
}
}
}
}
service {
ntp {
allow-client {
address 127.0.0.0/8
address 169.254.0.0/16
address 10.0.0.0/8
address 172.16.0.0/12
address 192.168.0.0/16
address ::1/128
address fe80::/10
address fc00::/7
}
server time1.vyos.net {
}
server time2.vyos.net {
}
server time3.vyos.net {
}
}
ssh {
}
}
system {
config-management {
commit-revisions 100
}
console {
device ttyS0 {
speed 115200
}
}
host-name VYOS-RT-02
login {
user vyos {
authentication {
encrypted-password ****************
plaintext-password ****************
}
}
}
syslog {
global {
facility all {
level info
}
facility local7 {
level debug
}
}
}
}
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$ show conf commands
set interfaces ethernet eth0 address '10.0.0.254/24'
set interfaces ethernet eth0 hw-id '00:15:5d:0b:96:08'
set interfaces ethernet eth0 offload gro
set interfaces ethernet eth0 offload gso
set interfaces ethernet eth0 offload sg
set interfaces ethernet eth0 offload tso
set interfaces loopback lo
set protocols static route 192.168.11.0/24 next-hop 10.0.0.1
set service ntp allow-client address '127.0.0.0/8'
set service ntp allow-client address '169.254.0.0/16'
set service ntp allow-client address '10.0.0.0/8'
set service ntp allow-client address '172.16.0.0/12'
set service ntp allow-client address '192.168.0.0/16'
set service ntp allow-client address '::1/128'
set service ntp allow-client address 'fe80::/10'
set service ntp allow-client address 'fc00::/7'
set service ntp server time1.vyos.net
set service ntp server time2.vyos.net
set service ntp server time3.vyos.net
set service ssh
set system config-management commit-revisions '100'
set system console device ttyS0 speed '115200'
set system host-name 'VYOS-RT-02'
set system login user vyos authentication encrypted-password '$6$QxPS.uk6mfo$9QBSo8u1FkH16gMyAVhus6fU3LOzvLR9Z9.82m3tiHFAxTtIkhaZSWssSgzt4v4dGAL8rhVQxTg0oAG9/q11h/'
set system login user vyos authentication plaintext-password ''
set system syslog global facility all level 'info'
set system syslog global facility local7 level 'debug'
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address MAC VRF MTU S/L Description
----------- ------------- ----------------- ------- ----- ----- -------------
eth0 10.0.0.254/24 00:15:5d:0b:96:08 default 1500 u/u
lo 127.0.0.1/8 00:00:00:00:00:00 default 65536 u/u
::1/128
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$ show arp
Address Interface Link layer address State
--------- ----------- -------------------- ---------
10.0.0.1 eth0 00:15:5d:0b:96:07 REACHABLE
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$ show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
f - OpenFabric,
> - selected route, * - FIB route, q - queued, r - rejected, b - backup
t - trapped, o - offload failure
C>* 10.0.0.0/24 is directly connected, eth0, 00:33:16
S>* 192.168.11.0/24 [1/0] via 10.0.0.1, eth0, weight 1, 00:29:27
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$
vyos@VYOS-RT-02:~$
その他
VyOSのLoopbackIFは1つのみの模様
vyos@VYOS-RT-02# set interfaces loopback lo1 address 10.1.1.1/24
Loopback interface must be named lo
Value validation failed
Set failed
[edit]
vyos@VYOS-RT-02# show inte
ethernet eth0 {
address 10.0.0.254/24
hw-id 00:15:5d:0b:96:08
offload {
gro
gso
sg
tso
}
}
loopback lo {
}