Difference between revisions of "VyOS: Konfigurasi Interface"

From OnnoWiki
Jump to navigation Jump to search
 
Line 48: Line 48:
 
  set service dns forwarding name-server '8.8.8.8'
 
  set service dns forwarding name-server '8.8.8.8'
 
  set service dns forwarding name-server '8.8.4.4'
 
  set service dns forwarding name-server '8.8.4.4'
 
 
  
  
Line 60: Line 58:
 
* [[Cisco]]
 
* [[Cisco]]
 
* [[Juniper]]
 
* [[Juniper]]
* [[BIRD: Routing]]
+
* [[BIRD1]]
 +
* [[BIRD2]]
 
* [[IPv6]]
 
* [[IPv6]]
  
Line 67: Line 66:
 
* [[IPv6: Advanced Routing]]
 
* [[IPv6: Advanced Routing]]
 
* [[IPv6: Quagga]]
 
* [[IPv6: Quagga]]
 +
* [[IPv6: VyOS]]
 
* [[IPv6: Mikrotik]]
 
* [[IPv6: Mikrotik]]
 
* [[IPv6: Cisco]]
 
* [[IPv6: Cisco]]
 
* [[IPv6: Juniper]]
 
* [[IPv6: Juniper]]
* [[IPv6: BIRD: Routing]]
+
* [[IPv6: BIRD1]]
 +
* [[IPv6: BIRD2]]
 
* [[IPv6]]
 
* [[IPv6]]

Latest revision as of 10:35, 20 January 2019

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'


Pranala Menarik