Hai guys, sekarang kita membahas bagaimana cara konfigurasi NAT dan VLAN, dengan konsep seperti ini:
ok, kita sekarang mulai mengkonfigurasi sesuai dengan gambar di atas " lets go" >>
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos
Router(config)#hostname ozog
ozog(config)#ip nat pool ozog 118.97.99.106 118.97.99.106 net
ozog(config)#ip nat pool ozog 118.97.99.106 118.97.99.106 netmask 255.255.255.248
ozog(config)#ac
ozog(config)#access-list 1 permit 192.168.10.0 0.0.0.255
ozog(config)#ip nat ins
ozog(config)#ip nat inside sour
ozog(config)#ip nat inside source list 1 pool ozog ov
ozog(config)#ip nat inside source list 1 pool ozog overload
ozog(config)#int fa0/0
ozog(config-if)#ip ad
ozog(config-if)#ip address 192.168.10.1 255.255.255.0
ozog(config-if)#ip na
ozog(config-if)#ip nat ins
ozog(config-if)#ip nat inside
ozog(config-if)#no sh
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
ozog(config-if)#exit
ozog(config)#int fa0/1
ozog(config-if)#ip ad
ozog(config-if)#ip address 118.97.99.106 255.255.255.248
ozog(config-if)#ip na
ozog(config-if)#ip nat out
ozog(config-if)#ip nat outside
ozog(config-if)#no sh
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
ozog(config-if)#exit
ozog(config)#exit
ozog#
%SYS-5-CONFIG_I: Configured from console by console
ozog#cop r sta
Destination filename [startup-config]?
Building configuration...
[OK]
Sumber :
Ozcorp community