Hi Community,
I am using vyos on an old PC with 2X4 nics + 1
:/home/vyos# ls pci
ls: cannot access ‘pci’: No such file or directory
:/home/vyos# lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] RS880 Host Bridge
00:01.0 PCI bridge: ASUSTeK Computer Inc. AMD RS780/RS880 PCI to PCI bridge (int gfx)
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780 PCI to PCI bridge (ext gfx port 0)
00:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780 PCI to PCI bridge (PCIE port 2)
00:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 3)
00:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 4)
00:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 5)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller (rev 40)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control
01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS880 [Radeon HD 4250]
01:05.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] RS880 HDMI Audio [Radeon HD 4200 Series]
02:00.0 PCI bridge: Microsemi / PMC / IDT PES12N3A 12-lane 3-Port PCI Express Switch (rev 0e)
03:02.0 PCI bridge: Microsemi / PMC / IDT PES12N3A 12-lane 3-Port PCI Express Switch (rev 0e)
03:04.0 PCI bridge: Microsemi / PMC / IDT PES12N3A 12-lane 3-Port PCI Express Switch (rev 0e)
04:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
04:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
05:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
05:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
06:00.0 Ethernet controller: Intel Corporation 82580 Gigabit Network Connection (rev 01)
06:00.1 Ethernet controller: Intel Corporation 82580 Gigabit Network Connection (rev 01)
06:00.2 Ethernet controller: Intel Corporation 82580 Gigabit Network Connection (rev 01)
06:00.3 Ethernet controller: Intel Corporation 82580 Gigabit Network Connection (rev 01)
07:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
08:00.0 IDE interface: VIA Technologies, Inc. VT6415 PATA IDE Host Controller
09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
trying to do the config
vyos:~$ conf
[edit]
yos# set nat source rule 10 outbound-interface ‘eth8’
[edit]
vyos# set nat source rule 10 source address ‘192.168.100.0/24’
[edit]
vyos# set nat source rule 10 translation address ‘masquerade’
[edit]
gives below error
vyos# commit
Configuration file errors encountered!
[[nat]] failed
Commit failed
[edit]
version
vyos:~$ show version
Version: VyOS 1.4-rolling-202210050218
Release train: sagitta
Built by: [email protected]
Built on: Wed 05 Oct 2022 02:18 UTC
Build UUID: b8e7ffda-84a5-4933-9900-5c585a41455b
Build commit ID: 5852d5de3ac606
Architecture: x86_64
Boot via: installed image
System type: bare metal
Hardware vendor: System manufacturer
Hardware model: System Product Name
Hardware S/N: System Serial Number
Hardware UUID: 80de27e3-8dfe-d511-8085-20cf30e209bf
Copyright: VyOS maintainers and contributors
would you be able to help with error, please let me know which log files are required
vyos:~$ show configuration
interfaces {
bridge br10 {
address 192.168.100.1/24
}
ethernet eth0 {
hw-id 00:1b:21:41:4f:20
}
ethernet eth1 {
hw-id 00:1b:21:41:4f:21
}
ethernet eth2 {
hw-id 00:1b:21:41:4f:24
}
ethernet eth3 {
hw-id 00:1b:21:41:4f:25
}
ethernet eth4 {
hw-id 90:e2:ba:05:33:00
}
ethernet eth5 {
hw-id 90:e2:ba:05:33:01
}
ethernet eth6 {
hw-id 90:e2:ba:05:33:02
}
ethernet eth7 {
hw-id 90:e2:ba:05:33:03
}
ethernet eth8 {
address dhcp
hw-id 20:cf:30:cd:cv:cx
}
loopback lo {
}
}
service {
ssh {
}
}
system {
config-management {
commit-revisions 100
}
conntrack {
modules {
ftp
h323
nfs
pptp
sip
sqlnet
tftp
}
}
console {
device ttyS0 {
speed 115200
}
}
host-name vyos
login {
user vyos {
authentication {
encrypted-password ****************
plaintext-password ****************
}
}
vyos@vyos:~$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address S/L Description
br10 192.168.100.1/24 u/D
eth0 - u/D
eth1 - u/u
eth2 - u/D
eth3 - u/u
eth4 - u/D
eth5 - u/u
eth6 - u/u
eth7 - u/u
eth8 192.168.0.36/24 u/u
lo 127.0.0.1/8 u/u
::1/128