静态ip

VyOS 静态ip配置命令。

1 / 1

静态ip

VYOS 1.5

命令
set service dhcp-server shared-network-name LAN subnet 10.0.0.0/24 static-mapping iPhone8plus ip-address '10.0.0.53'
命令
set service dhcp-server shared-network-name LAN subnet 10.0.0.0/24 static-mapping iPhone8plus mac '82:af:f5:4d:8b:f7'
命令
set service dhcp-server shared-network-name LAN subnet 10.0.0.0/24 static-mapping iPhone8plus option default-router '10.0.0.20'
命令
set service dhcp-server shared-network-name LAN subnet 10.0.0.0/24 static-mapping iPhone8plus option name-server '10.0.0.25'

VYOS 1.4.3

命令
set service dhcp-server shared-network-name LAN subnet 10.0.0.0/24 static-mapping desktop-lenovo ip-address '10.0.0.52'
命令
set service dhcp-server shared-network-name LAN subnet 10.0.0.0/24 static-mapping desktop-lenovo mac 'd4:ab:61:4d:3f:28'
命令
set service dhcp-server shared-network-name LAN subnet 10.0.0.0/24 static-mapping desktop-lenovo static-mapping-parameters "option routers 10.0.0.20;"
命令
set service dhcp-server shared-network-name LAN subnet 10.0.0.0/24 static-mapping desktop-lenovo static-mapping-parameters "option domain-name-servers 10.0.0.25;"