Jaringan Komputer:Tugas 1: Difference between revisions

Line 72: Line 72:
Router>enable
Router>enable
Router#configure terminal
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface fa1/0
Router(config)#interface fa1/0
Router(config-if)#ip address 192.168.40.2 255.255.255.0
Router(config-if)#ip address 10.10.40.2 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up
Router(config-if)#exit
Router(config-if)#exit
Router(config)#interface fa0/0
Router(config)#interface fa0/0
Router(config-if)#ip address 192.168.30.2 255.255.255.0
Router(config-if)#ip address 10.10.30.2 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config-if)#exit
Router(config)#ip route 192.168.10.0 255.255.255.0 192.168.30.1
Router(config)#ip route 10.10.10.0 255.255.255.0 10.10.40.1
Router(config)#ip route 192.168.20.0 255.255.255.0 192.168.40.1
Router(config)#ip route 10.10.20.0 255.255.255.0 10.10.30.1
Router(config)#exit
</syntaxhighlight>
</syntaxhighlight>