How will I configure VYOS to enable dhcp. My internet from vyos router to my device only works when I’m setting ip address to my device manually. Dhcp client not getting address automatically.
You mean DHCP-client or DHCP-server?
DHCP-client because the client isn’t getting address
It would help to share the config that isn’t working.
Who is the client? Your router? You’re not getting a DHCP lease from your ISP?
Or do you mean clients of yours, connected to your LAN aren’t getting an address.
It really helps to be clear and specific.
I apologize for not being specific. But the client I’m referring to is the one connected to the LAN. Our setup is we have a system unit running Debian Linux on which VyOS has been installed.
This is the configuration:
service {
dhcp-server {
shared-network-name HOST {
subnet 192.168.10.0/24 {
default-router 192.168.10.254
range 0 {
start 192.168.10.10
stop 192.168.10.100
vyos@R1# show nat
source {
rule 100
outbound-interface etho
source {
address 192.168.10.0/24
}
translation {
address masquerade
I’m only a beginner and I can’t figure out what’s the problem.
And what’s your interface configuration?
show interfaces
VyoseR1# show int
ethernet eth0
address 136.239.2xx.xx/24
description LAN
duplex auto
firewall {
in {
}
hw-id c8:d3:ff:ba:f0:5c
smp-affinity auto
speed auto
} ethernet eth5 {
address 192.168.10.1/24
hw-id 1c:86:06:29:34:d6
3
ethernet eth6 {
address 192.168.10.2/24
hw-id 1c:86:06:29:34:d7
}
loopback 10 {
3
[edit]
vyos@R1# show service dhcp-server
shared-network-name HOST {
subnet 192.168.10.0/24 {
default-router 192.168.10.254
range 0 {
start 192.168.10.10
stop 192.168.10.100
}
Why is eth5 and eth6 in the same subnet?
Also when pasting config the prefered method is:
show config commands | strip-private