Static Routing in Vyatta
::Basic Routing in Vyatta::
: Static Routing :
Tutorial ini menggunakan:
-vyatta 6.0 livecd
-virtualbox, bridged network mode
Topologi:
LAN 1 <==> R1 <==> R2 <==> LAN 2
LAN 1 = 192.168.1.0/24
R1-R2 = 192.168.2.0/30
LAN 2 = 192.168.3.0/24
######################################################
R1$configure
R1#set interfaces ethernet eth0 address 192.168.1.1/24
R1#set interfaces ethernet eth1 address 192.168.2.1/30
R1#commit
R2$configure
R2#set interfaces ethernet eth0 address 192.168.2.1/30
R2#set interfaces ethernet eth1 address 192.168.3.1/24
R2#commit
R1#set protocols static route 192.168.3.0/24 next-hop 192.168.2.2/30
R1#commit
R1#exit
R1$show ip route
R2#set protocols static route 192.168.1.0/24 next-hop 192.168.2.1/30
R2#commit
R2#exit
R2$show ip route
R2$show ip route static
Trus coba test ping..
agung.ridwan.sn

