I use software cisco packet tracer to analyze.
1. Make the network topology as below
2. double klik on router icon and klik CLI tab
Commands CLI tab:
--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no]: n
Press RETURN to get started!
Router>enable
Router#config t
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.20 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#exit
Router#write
Building configuration...
[OK]
Router#exit
Continue with configuration dialog? [yes/no]: n
Press RETURN to get started!
Router>enable
Router#config t
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.20 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#exit
Router#write
Building configuration...
[OK]
Router#exit
- As well as the setting of the second network, change ip network becomes 192.168.0.20 255.255.255.0
Router>enable
Router#config t
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.0.20 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#exit
Router#write
Building configuration...
[OK]
Router#exit
Router#config t
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.0.20 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#exit
Router#write
Building configuration...
[OK]
Router#exit
3. Setting ip address, subnet and default gateway on PC
4. Ping PC to another PC
Tidak ada komentar:
Posting Komentar