Koneksi Internet dengan Oracle VM VirtualBox





Router>ena
Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int fa 0/0
Router(config-if)#ip add 192.168.20.1 255.255.255.0
Router(config-if)#no sh
*Mar  1 00:13:36.567: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar  1 00:13:37.567: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upa
% Incomplete command.
Router(config-if)#ip nat inside
*Mar  1 00:13:50.879: %LINEPROTO-5-UPDOWN: Line protocol on Interface NVI0, changed state to up
Router(config-if)#exit


Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int fa 0/1
Router(config-if)#ip add 192.168.137.2 255.255.255.0
Router(config-if)#no sh
Router(config-if)#
*Mar  1 00:16:53.831: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up
*Mar  1 00:16:54.831: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#ip nat outside
Router(config-if)#exit


Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#access-list 50 permit 192.168.20.0 0.0.0.255
Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.137.1
Router(config)#ip nat inside source list 50 interface fa 0/1 overload

Router(config)#exit
Router#
*Mar  1 00:22:17.515: %SYS-5-CONFIG_I: Configured from console by console
Router#wr mem
Building configuration...
[OK]
Router#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
Gateway of last resort is 192.168.137.1 to network 0.0.0.0
C    192.168.20.0/24 is directly connected, FastEthernet0/0
C    192.168.137.0/24 is directly connected, FastEthernet0/1
S*   0.0.0.0/0 [1/0] via 192.168.137.1