DIFFERENT VLAN'S COMMUNCATION ON THE INTERNET. AND ALL THE VLAN ASSIGN DIFFERENT IP ADDRESS.
GO TO MAIN SWITCH AND ENTER COMMANDS
CREAT A VLAN ON CISCO SWITCH
Switch(config)# vlan 10
Switch(config)# name it
Switch(config)# vlan 20
Switch(config)# name sale
ASSIGN IP ADDRESS ON VLAN'S
Switch(config)# inter vlan 10
Switch(config)# ip address 192.168.2.1 255.255.255.0
Switch(config)# no shutdown
Switch(config)# inter vlan 20
Switch(config)# ip address 192.168.0.1 255.255.2555.0
Switch(config)# no shutdown
Switch(config)# inter vlan 1
Switch(config)# ip address 192.168.100.20 255.255.255.0
Switch(config)# no shutdown
IMPLEMENT ROUTING
Switch(config)# ip routing
Switch(config)# router rip
Switch(config)# network 192.168.0.0
Switch(config)# network 192.168.100.0
Switch(config)# network 192.168.2.0
Switch(config)# ip route 0.0.0.0 0.0.0.0 192.168.100.1
CONFIGURE INTERFACE TRUNK
Switch(config)# inter fa0/1
Switch(config)# switchport mode access
Switch(config)# switchport mode trunk
GO TO OFFICE ROUTER
Router(config)# inter gig0/1
Router(config)# ip address 192.168.100.1 255.255.255.0
Router(config)# no shutdown
Router(config)# inter gig0/1
Router(config)# ip address 1.1.1.1 255.0.0.0
Router(config)# no shutdown
IMPLEMENT ROUTING
Router(config)# router rip
Router(config)# network 1.1.1.0
Router(config)# ip route 0.0.0.0 0.0.0.0 192.168.100.20
IMPLEMENT DYNAMIC NAT
Router(config)# ip nat pool manan 1.1.1.1 1.1.1.1 netmask 255.0.0.0
Router(config)# access-list 1 permit any
Router(config)# ip nat inside source list 1 pool manan overload
APPLY NAT ON INTERFACES OF OFFICE ROUTER
Router(config)# inter gig0/1
Router(config)# ip nat outside
Router(config)# inter gig0/0
Router(config)# ip nat inside
GO TO ISP ROUTER
Router(config)# inter gig0/0
Router(config)# ip address 1.1.1.2 255.0.0.0
Router(config)# no shutdown
Router(config)# inter gig0/1
Router(config)# ip address 100.100.100.1 255.0.0.0
Router(config)# no shutdown
GO TO ALL PC'S AND SERVER ASSIGN IP ADDRESS WITHIN A DEFAULT GATEWAY.
AND CHECK COMMUNICATION BETWEEN THEM.
Comments
Post a Comment