VyOS: Konfigurasi Interface
Revision as of 09:02, 16 January 2019 by Onnowpurbo (talk | contribs) (Created page with "Login ke VyOS configure ==Contoh== set interfaces ethernet eth0 address dhcp set interfaces ethernet eth0 description 'OUTSIDE' set interfaces ethernet eth1 address '...")
Login ke VyOS
configure
Contoh
set interfaces ethernet eth0 address dhcp set interfaces ethernet eth0 description 'OUTSIDE'
set interfaces ethernet eth1 address '192.168.0.1/24' set interfaces ethernet eth1 description 'INSIDE'
set service ssh port '22'
NAT
set nat source rule 100 outbound-interface 'eth0' set nat source rule 100 source address '192.168.0.0/24' set nat source rule 100 translation address masquerade
DHCP
set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 default-router '192.168.0.1' set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 dns-server '192.168.0.1' set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 domain-name 'internal-network' set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 lease '86400'
>= 1.2.0
set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 start 192.168.0.9 set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 stop '192.168.0.254'
<= 1.1.8
set service dhcp-server disabled 'false' set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 start 192.168.0.9 stop '192.168.0.254'
DNS Forwarder
set service dns forwarding cache-size '0' set service dns forwarding listen-on 'eth1' set service dns forwarding name-server '8.8.8.8' set service dns forwarding name-server '8.8.4.4'