顯示具有 Lab 標籤的文章。 顯示所有文章
顯示具有 Lab 標籤的文章。 顯示所有文章

2019/04/15

[CCNA Notes] Configuring extended ACLs

此 lab 一定要用 extended 模式,因為 standard 只能限制來源 PCB 過或不過,不能限制只讓它連Srv1


延伸ACL的介面要盡可能靠近拒絕流量的來源,如此才能在不需要的流量流經網路之前將其過濾掉。
To be more precise when matching a certain network traffic, extended access lists are used. With extended access lists, you can match more information, such as:

  • source and destination IP address
  • type of TCP/IP protocol (TCP, UDP, IP…)
  • source and destination port numbers
  • service (Telnet、WWW、ftp...)
Two steps are required to configure extended access lists:
1. configure extended access lists using the following command:
(config) access list NUMBER permit|deny IP_PROTOCOL SOURCE_ADDRESS WILDCARD_MASK [PROTOCOL_INFORMATION] DESTINATION_ADDRESS WILDCARD_MASK PROTOCOL_INFORMATION

[CCNA Notes] Configuring standard ACLs

To create an standard access list on a Cisco router, the following command is used from the router’s global configuration mode:
R1(config)# access-list ACL_NUMBER permit|deny IP_ADDRESS WILDCARD_MASK
NOTE
ACL number for the standard ACLs has to be between 1–99 and 1300–1999.
                               extended ACLs has to be between 100–199 and 2000–2699.
 You can also use the host keyword to specify the host you want to permit or deny:
R1(config)# access-list ACL_NUMBER permit|deny host IP_ADDRESS
Once the access list is created, it needs to be applied to an interface. You do that by using the ip access-group ACL_NUMBER in|out interface subcommand. in and out keywords specify in which direction you are activating the ACL. in means that ACL is applied to the traffic coming into the interface, while the outkeyword means that the ACL is applied to the traffic leaving the interface.
* IPv6 不支援 standard ACLs

R1(config)#access-list ?
<1-99> IP standard access list
<100-199> IP extended access list
R1(config)#access-list 10 permit ?
A.B.C.D Address to match
any Any source host
host A single host address
R1(config)#access-list 10 permit 192.168.10.1
R1#sh access-lists
Standard IP access list 10
10 permit host 192.168.10.1

2016/01/30

[科學魔法車] 第六個實驗:如何用光影控制車子的馬達運作?


https://www.youtube.com/watch?v=x_gAE_7-SxQ
本次實驗利用光敏電阻、反相器、發光二極體、電晶體、繼電器,學習利用光影變化來驅動輪子馬達讓車車前進。

2016/01/17

[科學魔法車] 第五個實驗:光敏電阻搭配反相器模擬路燈效果

https://youtu.be/sfuysJIapcE
https://youtu.be/sfuysJIapcE
光敏電阻是利用光電導效應的一種特殊的電阻,它的電阻和光線的強弱有直接關係。當光線照射時,電阻內原本處於穩定狀態的電子受到激發,成為自由電子。所以光線越強,產生的自由電子也就越多,電阻就會越小。

2016/01/13

[好書推薦] 程式設計輕鬆學:使用Scratch 2.X

http://www.books.com.tw/products/0010703424

●從Scratch的積木方塊,輕鬆搞懂程式邏輯訓練。  
  ●演算法結構X視覺化指令操作=完整程式邏輯訓練。
  ●經由遊戲創作來學習程式設計。
  ●與Arduino結合,製作互動式體感遊戲。

2016/01/12

[科學魔法車] 第四個實驗:瞭解繼電器運作方式

youtu.be

繼電器(Relay)是一種電子控制器件,它具有輸入迴路和輸出迴路,通常應用於自動控制電路中,是用較小的電流去控制較大電流的一種「自動開關」。在電路中起著自動調節、安全保護、轉換電路等作用。

2016/01/10

[科學魔法車] 第三個實驗:電壓、電阻與電流的關係

youtube

在電路學裡,歐姆定律Ohm's law)表明,導電體兩端的電壓與通過的電流成正比,電阻的功能就是藉由限制電流的流量,讓電路能順利工作,正是電子電路所不可或缺的零件之一。

2016/01/05

[科學魔法車] 第二個實驗:電容器如何充放電

https://www.youtube.com/watch?v=ZE7cWuLHMZY

電容器(Capacitor)是由兩塊導電的平行板構成,在板之間填充上絕緣物質的一種電路元件,其單位為法拉F。以電場形式儲存能量,在有需要的時候,電容能夠把儲存的能量釋出至電路,當電容與直流電源相接時,兩塊板會分別獲得數量相等的相反電荷,此時電容正在充電,其兩端的電位差會逐漸增大,當電容充電過程完成後,就沒有電流流過電容器,在切斷電容和電源的連接後,電容通過電阻進行放電,兩塊板之間的電壓將會逐漸下降為零,電容值或電阻值愈小,時間常數也愈小,電容的充電和放電速度就愈快;電容器幾乎存在於所有電子電路中,它可以作為快速電池使用。