มาเรียนรู้การคำนวณ IP Address version 4 ด้วยเทคนิคการใช้ตารางมหัศจรรย์ซึ่งทำให้ศิษย์นำไปใช้ในการทำงานและการสอบ Cert.IT ได้อย่างดีเยี่ยม
Basic Linux Command ตอนที่ 1 (ls,cat,vi)by Jodoi
มาเรียนรู้การใช้ Linux Command เบื้องต้นกันครับ เริ่มต้นด้วย command ls , cat และ vi ซึ่งปัจจุบันมีความจำเป็นต้องเรียนรู่อย่างยิ่งเพราะหลายๆองค์กรมีการใช้ Linux Server กันมากขึ้น
R1(config)#access-list 1 deny any ( ปิดท้ายเสมอ ไม่ต้องพิมพ์ )
(implicit deny all - not visible in the list)
(access-list 1 deny 0.0.0.0 255.255.255.255)
2)Enable ACL ที่ INterface
R1(config)#interface f0/1
R1(config-if)#ip access-group 1 in
ทดสอบผล
R3#ping 1.1.1.1
!!!!!
C:\Users\jodoi>ping 192.168.2.254
Reply from 192.168.2.254: Destination net unreachable.
Reply from 192.168.2.254: Destination net unreachable.
Reply from 192.168.2.254: Destination net unreachable.
Reply from 192.168.2.254: Destination net unreachable.
PC1> ping 1.1.1.1
84 bytes from 1.1.1.1 icmp_seq=1 ttl=254 time=33.048 ms
84 bytes from 1.1.1.1 icmp_seq=2 ttl=254 time=45.638 ms
84 bytes from 1.1.1.1 icmp_seq=3 ttl=254 time=33.206 ms
84 bytes from 1.1.1.1 icmp_seq=4 ttl=254 time=46.520 ms
R1#show ip access-lists
Standard IP access list 1
20 deny 192.168.2.2 (15 matches)
10 deny 192.168.2.200 (474 matches)
30 deny 192.168.2.100, wildcard bits 0.0.0.3
40 permit any (10 matches)
1)ประกาศ ACL
R1(config)#access-list 100 permit tcp host 192.168.2.253 host 2.2.2.2 eq 23
R1(config)#access-list 100 deny tcp any any eq 23
R1(config)#access-list 100 deny icmp any any
R1(config)#access-list 100 permit ip any any
2)Enable ACL ที่ INterface
R1(config)#interface f0/0
R1(config-if)#ip access-group 100 out
ทดสอบผล
R3#ping 1.1.1.1
UUUUU
R3#ping 2.2.2.2
UUUUU
R3#telnet 1.1.1.1
Trying 1.1.1.1 ...
% Destination unreachable; gateway or host down
R3#telnet 10.10.10.6
Trying 10.10.10.6 ...
% Destination unreachable; gateway or host down
R3#telnet 2.2.2.2
Trying 2.2.2.2 ... Open
User Access Verification
Username: admin
Password: cisco
ISP>exit
[Connection to 2.2.2.2 closed by foreign host]
R3#
R3#ssh -l admin 2.2.2.2
Password: cisco
ISP>exit
[Connection to 2.2.2.2 closed by foreign host]
R3#
R1#show ip access-lists 100
Extended IP access list 100
10 permit tcp host 192.168.2.253 host 2.2.2.2 eq telnet (36 matches)
20 deny tcp any any eq telnet (84 matches)
30 deny icmp any any (20 matches)
40 permit ip any any (36 matches)