احترف الـ Routing في Cisco | أهم الأوامر واستخداماتها
احترف الـ Routing في Cisco | أهم الأوامر واستخداماتها
---
دي أول إعدادات بتعملها على أي Router جديد.
Router> enable
Router# configure terminal
Router(config)# hostname R1
R1(config)# no ip domain-lookup
R1(config)# enable secret class
R1(config)# line console 0
R1(config-line)# password cisco
R1(config-line)# login
R1(config-line)# exit
R1(config)# end
R1# write memory
---
بعد كده لازم تجهز واجهة الراوتر.
R1(config)# interface g0/0
R1(config-if)# ip address 192.168.1.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit
---
لما تحب تحدد الطريق يدويًا.
R1(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.2
---
Specific Route
R1(config)# ip route 10.10.10.0 255.255.255.0 192.168.1.3
---
بدل ما تكتب Routes بإيدك، البروتوكول بيتبادلها تلقائيًا.
R1(config)# router rip
R1(config-router)# version 2
R1(config-router)# no auto-summary
R1(config-router)# network 192.168.1.0
R1(config-router)# network 10.10.10.0
R1(config-router)# exit
---
الجزء ده بيستخدم ACL مع الـ Routing.
R1(config)# ip access-list standard BLOCK_NET
R1(config-std-nacl)# deny 192.168.0.0 0.0.0.255
R1(config-std-nacl)# permit any
R1(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.2
R1(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.2 10 name BLOCK_NET
---
بيستخدم لما يكون عندك أكتر من Routing Protocol وعايزهم يتبادلوا الـ Routes.
داخل RIP
R1(config)# router rip
R1(config-router)# network 192.168.1.0
R1(config-router)# redistribute eigrp 100 metric 1
R1(config-router)# exit
---
داخل EIGRP
R1(config)# router eigrp 100
R1(config-router)# network 10.10.10.0 0.0.0.255
R1(config-router)# redistribute rip metric 10000 100 255 1 1500
R1(config-router)# exit
---
بعد ما تخلص إعدادات لازم تتأكد إن كل حاجة شغالة.
show ip interface brief
show protocols
show ip ospf neighbor
show ip rip database
show running-config
