「緯育 2026-0608」修訂間的差異
出自頂極製作所
標籤:手動回退 |
|||
| (未顯示同一使用者於中間所作的 3 次修訂) | |||
| 行 354: | 行 354: | ||
| 狀態:完成<br>目的:只允許 VLAN14 IT SSH 到 R3<br>Username:user<br>Password:123<br>Domain:ckc.com<br>RSA:1024<br>ACL:12<br>Allowed Source:10.1.14.64/27<br><br>輸入指令:<br><code>conf t</code><br><code>username user password 123</code><br><code>ip domain-name ckc.com</code><br><code>crypto key generate rsa</code><br><code>1024</code><br><code>ip ssh version 2</code><br><code>access-list 12 permit 10.1.14.64 0.0.0.31</code><br><code>line vty 0 5</code><br><code>login local</code><br><code>transport input ssh</code><br><code>access-class 12 in</code><br><code>exit</code><br><code>line vty 6 15</code><br><code>transport input none</code><br><code>exit</code><br><br> | | 狀態:完成<br>目的:只允許 VLAN14 IT SSH 到 R3<br>Username:user<br>Password:123<br>Domain:ckc.com<br>RSA:1024<br>ACL:12<br>Allowed Source:10.1.14.64/27<br><br>輸入指令:<br><code>conf t</code><br><code>username user password 123</code><br><code>ip domain-name ckc.com</code><br><code>crypto key generate rsa</code><br><code>1024</code><br><code>ip ssh version 2</code><br><code>access-list 12 permit 10.1.14.64 0.0.0.31</code><br><code>line vty 0 5</code><br><code>login local</code><br><code>transport input ssh</code><br><code>access-class 12 in</code><br><code>exit</code><br><code>line vty 6 15</code><br><code>transport input none</code><br><code>exit</code><br><br> | ||
|} | |} | ||
於 2026年6月8日 (一) 00:58 的最新修訂
完整設定表
- Client IP / Gateway
- Switch VLAN
- Access Port
- Trunk
- Router-on-a-stick
- Router Interface
- Static / Floating Static Route
- OSPF
- Default Route
- NAT / PAT
- Static NAT
- IPSec VPN
- ACL
- 最終驗證
一、終端設備 IP / Gateway 設定
| 階段 | 設備 / 項目 | 設定內容與輸入指令 |
|---|---|---|
| Client IP | S1 管理 IP | 狀態:完成 VLAN:99 IP:10.1.99.101 Mask:255.255.255.0 Gateway:10.1.99.254 輸入指令: conf tinterface vlan 99ip address 10.1.99.101 255.255.255.0no shutdownexitip default-gateway 10.1.99.254 |
| Client IP | S2 管理 IP | 狀態:完成 VLAN:99 IP:10.1.99.102 Mask:255.255.255.0 Gateway:10.1.99.254 輸入指令: conf tinterface vlan 99ip address 10.1.99.102 255.255.255.0no shutdownexitip default-gateway 10.1.99.254 |
| Client IP | Mgmt Server | 狀態:完成 IP:10.1.99.100 Mask:255.255.255.0 Gateway:10.1.99.254 設定位置:Desktop → IP Configuration IP Address: 10.1.99.100Subnet Mask: 255.255.255.0Default Gateway: 10.1.99.254
|
| Client IP | VLAN12-RD1 | 狀態:完成 部門:RD VLAN:12 IP:10.1.12.17 Mask:255.255.255.240 Gateway:10.1.12.30 接線位置:S1 Fa0/11 設定位置:Desktop → IP Configuration IP Address: 10.1.12.17Subnet Mask: 255.255.255.240Default Gateway: 10.1.12.30
|
| Client IP | VLAN12-RD2 | 狀態:完成 部門:RD VLAN:12 IP:10.1.12.18 Mask:255.255.255.240 Gateway:10.1.12.30 接線位置:S2 Fa0/11 設定位置:Desktop → IP Configuration IP Address: 10.1.12.18Subnet Mask: 255.255.255.240Default Gateway: 10.1.12.30
|
| Client IP | VLAN13-Sales1 | 狀態:完成 部門:Sales VLAN:13 IP:10.1.13.25 Mask:255.255.255.248 Gateway:10.1.13.30 接線位置:S1 Fa0/15 設定位置:Desktop → IP Configuration IP Address: 10.1.13.25Subnet Mask: 255.255.255.248Default Gateway: 10.1.13.30
|
| Client IP | VLAN13-Sales2 | 狀態:完成 部門:Sales VLAN:13 IP:10.1.13.26 Mask:255.255.255.248 Gateway:10.1.13.30 接線位置:S2 Fa0/15 設定位置:Desktop → IP Configuration IP Address: 10.1.13.26Subnet Mask: 255.255.255.248Default Gateway: 10.1.13.30
|
| Client IP | VLAN14-IT | 狀態:完成 部門:IT VLAN:14 IP:10.1.14.65 Mask:255.255.255.224 Gateway:10.1.14.94 接線位置:S2 Fa0/19 設定位置:Desktop → IP Configuration IP Address: 10.1.14.65Subnet Mask: 255.255.255.224Default Gateway: 10.1.14.94
|
| Client IP | R2-Private | 狀態:完成 角色:Private Server IP:172.16.100.101 Mask:255.255.255.0 Gateway:172.16.100.254 設定位置:Desktop → IP Configuration IP Address: 172.16.100.101Subnet Mask: 255.255.255.0Default Gateway: 172.16.100.254
|
| Client IP | R2-DMZ | 狀態:完成 角色:DMZ Server IP:172.16.100.102 Mask:255.255.255.0 Gateway:172.16.100.254 Static NAT 對應:171.69.233.209 設定位置:Desktop → IP Configuration IP Address: 172.16.100.102Subnet Mask: 255.255.255.0Default Gateway: 172.16.100.254
|
| Client IP | R2-Other | 狀態:完成 角色:Other Server IP:172.16.100.103 Mask:255.255.255.0 Gateway:172.16.100.254 設定位置:Desktop → IP Configuration IP Address: 172.16.100.103Subnet Mask: 255.255.255.0Default Gateway: 172.16.100.254
|
| Client IP | R3-PC1 | 狀態:完成 IP:10.3.1.10 Mask:255.255.255.0 Gateway:10.3.1.254 用途:IPSec VPN 遠端目的端 設定位置:Desktop → IP Configuration IP Address: 10.3.1.10Subnet Mask: 255.255.255.0Default Gateway: 10.3.1.254
|
| Client IP | R3-PC2 | 狀態:完成 IP:10.3.2.10 Mask:255.255.255.0 Gateway:10.3.2.254 用途:Static / Floating Static Route 測試 設定位置:Desktop → IP Configuration IP Address: 10.3.2.10Subnet Mask: 255.255.255.0Default Gateway: 10.3.2.254
|
| Client IP | R6-PC5 | 狀態:完成 IP:10.5.0.10 Mask:255.255.255.0 Gateway:10.5.0.254 用途:R6 PAT 測試 設定位置:Desktop → IP Configuration IP Address: 10.5.0.10Subnet Mask: 255.255.255.0Default Gateway: 10.5.0.254
|
| Client IP | R6-PC6 | 狀態:完成 IP:10.6.0.10 Mask:255.255.255.0 Gateway:10.6.0.254 用途:IPSec VPN 本端來源 設定位置:Desktop → IP Configuration IP Address: 10.6.0.10Subnet Mask: 255.255.255.0Default Gateway: 10.6.0.254
|
| Client IP | Internet WWW | 狀態:完成 IP:200.200.200.200 Mask:255.255.255.0 Gateway:200.200.200.254 用途:NAT / PAT 連外測試 設定位置:Desktop → IP Configuration IP Address: 200.200.200.200Subnet Mask: 255.255.255.0Default Gateway: 200.200.200.254
|
| Client IP | Internet User | 狀態:完成 IP:201.201.201.201 Mask:255.255.255.0 Gateway:201.201.201.254 用途:Static NAT 外部測試 設定位置:Desktop → IP Configuration IP Address: 201.201.201.201Subnet Mask: 255.255.255.0Default Gateway: 201.201.201.254
|
二、Switch VLAN / Access Port / Trunk 設定
| 階段 | 設備 / 項目 | 設定內容與輸入指令 |
|---|---|---|
| VLAN | S1 建立 VLAN | 狀態:完成 VLAN12:RD VLAN13:sales VLAN14:IT VLAN99:MGMT 輸入指令: conf tvlan 12name RDvlan 13name salesvlan 14name ITvlan 99name MGMT |
| VLAN | S2 建立 VLAN | 狀態:完成 VLAN12:RD VLAN13:sales VLAN14:IT VLAN99:MGMT 輸入指令: conf tvlan 12name RDvlan 13name salesvlan 14name ITvlan 99name MGMT |
| Access Port | S1 Access Port | 狀態:完成 Fa0/11:VLAN12 Fa0/15:VLAN13 Fa0/21:VLAN99 輸入指令: conf tinterface fa0/11switchport mode accessswitchport access vlan 12no shutdownexitinterface fa0/15switchport mode accessswitchport access vlan 13no shutdownexitinterface fa0/21switchport mode accessswitchport access vlan 99no shutdown |
| Access Port | S2 Access Port | 狀態:完成 Fa0/11:VLAN12 Fa0/15:VLAN13 Fa0/19:VLAN14 輸入指令: conf tinterface fa0/11switchport mode accessswitchport access vlan 12no shutdownexitinterface fa0/15switchport mode accessswitchport access vlan 13no shutdownexitinterface fa0/19switchport mode accessswitchport access vlan 14no shutdown |
| Trunk | S1 to S2 | 狀態:完成 Trunk Port:Fa0/23 - 24 Allowed VLAN:12,13,14,99 輸入指令: conf tinterface range fa0/23 - 24switchport mode trunkswitchport trunk allowed vlan 12,13,14,99no shutdown |
| Trunk | S2 to S1 | 狀態:完成 Trunk Port:Fa0/23 - 24 Allowed VLAN:12,13,14,99 輸入指令: conf tinterface range fa0/23 - 24switchport mode trunkswitchport trunk allowed vlan 12,13,14,99no shutdown |
| Trunk | S1 to R1 | 狀態:完成 S1 Fa0/5 連接 R1 Fa0/0 Allowed VLAN:12,13,14,99 輸入指令: conf tinterface fa0/5switchport mode trunkswitchport trunk allowed vlan 12,13,14,99no shutdown |
三、Router-on-a-stick / Router 介面設定 (含等價網路平衡設定)
| 階段 | 設備 / 項目 | 設定內容與輸入指令 |
|---|---|---|
| Router-on-a-stick | R1 Fa0/0 | 狀態:完成 用途:Trunk 母介面,不設定 IP 輸入指令: conf tinterface fa0/0no shutdown |
| Router-on-a-stick | R1 Fa0/0.2 | 狀態:完成 VLAN:12 Gateway:10.1.12.30/28 輸入指令: conf tinterface fa0/0.2encapsulation dot1Q 12ip address 10.1.12.30 255.255.255.240 |
| Router-on-a-stick | R1 Fa0/0.3 | 狀態:完成 VLAN:13 Gateway:10.1.13.30/29 輸入指令: conf tinterface fa0/0.3encapsulation dot1Q 13ip address 10.1.13.30 255.255.255.248 |
| Router-on-a-stick | R1 Fa0/0.4 | 狀態:完成 VLAN:14 Gateway:10.1.14.94/27 輸入指令: conf tinterface fa0/0.4encapsulation dot1Q 14ip address 10.1.14.94 255.255.255.224 |
| Router-on-a-stick | R1 Fa0/0.99 | 狀態:完成 VLAN:99 Gateway:10.1.99.254/24 輸入指令: conf tinterface fa0/0.99encapsulation dot1Q 99ip address 10.1.99.254 255.255.255.0 |
| Serial | R1 Serial0/0/0 | 狀態:完成 連線:R1 to R2 IP:192.168.123.1/30 Bandwidth:128K 輸入指令: conf tinterface serial0/0/0ip address 192.168.123.1 255.255.255.252bandwidth 128no shutdown |
| Serial | R1 Serial0/0/1 | 狀態:完成 連線:R1 to R3 IP:192.168.123.5/30 Bandwidth:64K Clock rate:64000 輸入指令: conf tinterface serial0/0/1ip address 192.168.123.5 255.255.255.252bandwidth 64clock rate 64000no shutdown |
| Internet | R1 Serial0/1/1 | 狀態:完成 連線:R1 to Internet Router IP:193.16.1.254/30 用途:NAT outside、VPN peer 輸入指令: conf tinterface serial0/1/1ip address 193.16.1.254 255.255.255.252no shutdown |
| Router Interface | R2 Fa0/0 | 狀態:完成 用途:Server 區 Gateway IP:172.16.100.254/24 輸入指令: conf tinterface fa0/0ip address 172.16.100.254 255.255.255.0no shutdown |
| Serial | R2 Serial0/0/0 | 狀態:完成 連線:R2 to R1 IP:192.168.123.2/30 Bandwidth:128K Clock rate:128000 輸入指令: conf tinterface serial0/0/0ip address 192.168.123.2 255.255.255.252bandwidth 128clock rate 128000no shutdown |
| Serial | R2 Serial0/0/1 | 狀態:完成 連線:R2 to R3 IP:192.168.123.9/30 Bandwidth:128K Clock rate:128000 輸入指令: conf tinterface serial0/0/1ip address 192.168.123.9 255.255.255.252bandwidth 128clock rate 128000no shutdown |
| Router Interface | R3 Fa0/0 | 狀態:完成 用途:R3-PC1 Gateway IP:10.3.1.254/24 輸入指令: conf tinterface fa0/0ip address 10.3.1.254 255.255.255.0no shutdown |
| Router Interface | R3 Fa0/1 | 狀態:完成 用途:R3-PC2 Gateway IP:10.3.2.254/24 輸入指令: conf tinterface fa0/1ip address 10.3.2.254 255.255.255.0no shutdown |
| Serial | R3 Serial0/0/0 | 狀態:完成 連線:R3 to R1 IP:192.168.123.6/30 Bandwidth:64K 輸入指令: conf tinterface serial0/0/0ip address 192.168.123.6 255.255.255.252bandwidth 64no shutdown |
| Serial | R3 Serial0/0/1 | 狀態:完成 連線:R3 to R2 IP:192.168.123.10/30 Bandwidth:128K 輸入指令: conf tinterface serial0/0/1ip address 192.168.123.10 255.255.255.252bandwidth 128no shutdown |
| Router Interface | R6 Fa0/1 | 狀態:完成 用途:R6-PC5 Gateway、PAT inside IP:10.5.0.254/24 輸入指令: conf tinterface fa0/1ip address 10.5.0.254 255.255.255.0no shutdown |
| Router Interface | R6 Fa0/0 | 狀態:完成 用途:R6-PC6 Gateway、VPN protected LAN IP:10.6.0.254/24 輸入指令: conf tinterface fa0/0ip address 10.6.0.254 255.255.255.0no shutdown |
| Internet | R6 Serial0/0/0 | 狀態:完成 連線:R6 to Internet Router IP:193.16.6.254/30 用途:NAT outside、VPN peer 輸入指令: conf tinterface serial0/0/0ip address 193.16.6.254 255.255.255.252no shutdown |
| Internet Router | Internet Router 介面 | 狀態:完成 To R1:193.16.1.253/30 To R6:193.16.6.253/30 Internet WWW Gateway:200.200.200.254/24 Internet User Gateway:201.201.201.254/24 輸入指令: conf tinterface serial0/0/0ip address 193.16.1.253 255.255.255.252clock rate 64000no shutdownexitinterface serial0/0/1ip address 193.16.6.253 255.255.255.252clock rate 64000no shutdownexitinterface fa0/0ip address 200.200.200.254 255.255.255.0no shutdownexitinterface fa0/1ip address 201.201.201.254 255.255.255.0no shutdown |
四、Static Route / Floating Static Route / OSPF 設定
| 階段 | 設備 / 項目 | 設定內容與輸入指令 |
|---|---|---|
| Static Route | R1 to 10.3.2.0/24 主路由 | 狀態:完成 Destination:10.3.2.0/24 Next-hop:192.168.123.6 AD:1 輸入指令: conf tip route 10.3.2.0 255.255.255.0 192.168.123.6 |
| Floating Static Route | R1 to 10.3.2.0/24 備援路由 | 狀態:完成 Destination:10.3.2.0/24 Next-hop:192.168.123.2 AD:2 輸入指令: conf tip route 10.3.2.0 255.255.255.0 192.168.123.2 2 |
| Static Route | R2 to 10.3.2.0/24 | 狀態:完成 Destination:10.3.2.0/24 Next-hop:192.168.123.10 輸入指令: conf tip route 10.3.2.0 255.255.255.0 192.168.123.10 |
| Static Route | R2 to VLAN14 | 狀態:完成 Destination:10.1.14.64/27 Next-hop:192.168.123.1 輸入指令: conf tip route 10.1.14.64 255.255.255.224 192.168.123.1 |
| Static Route | R3 to VLAN14 主路由 | 狀態:完成 Destination:10.1.14.64/27 Next-hop:192.168.123.5 AD:1 輸入指令: conf tip route 10.1.14.64 255.255.255.224 192.168.123.5 |
| Floating Static Route | R3 to VLAN14 備援路由 | 狀態:完成 Destination:10.1.14.64/27 Next-hop:192.168.123.9 AD:2 輸入指令: conf tip route 10.1.14.64 255.255.255.224 192.168.123.9 2 |
| OSPF | R1 OSPF | 狀態:完成 Process ID:1 Router ID:192.168.99.1 主要方式:network 指令使用子網段 輸入指令: conf tinterface loopback0ip address 192.168.99.1 255.255.255.255exitrouter ospf 1router-id 192.168.99.1passive-interface defaultno passive-interface serial0/0/0no passive-interface serial0/0/1network 192.168.123.0 0.0.0.3 area 0network 192.168.123.4 0.0.0.3 area 0network 10.1.12.16 0.0.0.15 area 0network 10.1.13.24 0.0.0.7 area 0network 10.1.99.0 0.0.0.255 area 0network 192.168.99.1 0.0.0.0 area 0 |
| OSPF | R2 OSPF | 狀態:完成 Process ID:2 Router ID:192.168.99.2 主要方式:network 指令使用直連介面 IP 輸入指令: conf tinterface loopback0ip address 192.168.99.2 255.255.255.255exitrouter ospf 2router-id 192.168.99.2network 192.168.123.2 0.0.0.0 area 0network 192.168.123.9 0.0.0.0 area 0network 172.16.100.254 0.0.0.0 area 2network 192.168.99.2 0.0.0.0 area 2passive-interface fa0/0 |
| OSPF | R3 OSPF | 狀態:完成 Process ID:3 Router ID:192.168.99.3 主要方式:interface mode 啟動 OSPF 輸入指令: conf tinterface loopback0ip address 192.168.99.3 255.255.255.255ip ospf 3 area 3exitinterface fa0/0ip ospf 3 area 3exitinterface serial0/0/0ip ospf 3 area 0exitinterface serial0/0/1ip ospf 3 area 0exitrouter ospf 3router-id 192.168.99.3passive-interface fa0/0 |
| OSPF Cost | Serial bandwidth | 狀態:完成 R1-R2:128K R2-R3:128K R1-R3:64K R1 輸入指令: conf tinterface serial0/0/0bandwidth 128exitinterface serial0/0/1bandwidth 64R2 輸入指令: conf tinterface serial0/0/0bandwidth 128exitinterface serial0/0/1bandwidth 128R3 輸入指令: conf tinterface serial0/0/0bandwidth 64exitinterface serial0/0/1bandwidth 128 |
| Default Route | R1 Default Route | 狀態:完成 Default Route:0.0.0.0/0 Next-hop:193.16.1.253 輸入指令: conf tip route 0.0.0.0 0.0.0.0 193.16.1.253 |
| OSPF Default | R1 宣告 Default Route | 狀態:完成 目的:讓 R2 / R3 學到 O*E2 0.0.0.0/0 輸入指令: conf trouter ospf 1default-information originate |
| Default Route | R6 Default Route | 狀態:完成 Default Route:0.0.0.0/0 Next-hop:193.16.6.253 輸入指令: conf tip route 0.0.0.0 0.0.0.0 193.16.6.253 |
五、NAT / PAT / Static NAT 設定
| 階段 | 設備 / 項目 | 設定內容與輸入指令 |
|---|---|---|
| PAT | R1 VLAN12 PAT | 狀態:完成 Inside:Fa0/0.2 Outside:Serial0/1/1 ACL:10 Source:10.1.12.16/28 輸入指令: conf tinterface fa0/0.2ip nat insideexitinterface serial0/1/1ip nat outsideexitaccess-list 10 permit 10.1.12.16 0.0.0.15ip nat inside source list 10 interface serial0/1/1 overload |
| PAT | R6-PC5 PAT | 狀態:完成 Inside:Fa0/1 Outside:Serial0/0/0 ACL:10 Source:10.5.0.0/24 輸入指令: conf tinterface fa0/1ip nat insideexitinterface serial0/0/0ip nat outsideexitaccess-list 10 permit 10.5.0.0 0.0.0.255ip nat inside source list 10 interface serial0/0/0 overload |
| Dynamic NAT | R1 VLAN13 Dynamic NAT | 狀態:完成 Inside:Fa0/0.3 Outside:Serial0/1/1 ACL:20 Pool:171.69.233.210 - 171.69.233.222 輸入指令: conf tinterface fa0/0.3ip nat insideexitinterface serial0/1/1ip nat outsideexitno access-list 20no ip nat inside source list 20 pool netpoolno ip nat pool netpool 171.69.233.210 171.69.233.222 netmask 255.255.255.240access-list 20 permit 10.1.13.24 0.0.0.7ip nat pool natpool 171.69.233.210 171.69.233.222 netmask 255.255.255.240ip nat inside source list 20 pool natpool |
| NAT Return Route | Internet Router | 狀態:完成 目的:回指 NAT 公有 IP 池 Public Pool:171.69.233.208/28 Next-hop:193.16.1.254 輸入指令: conf tip route 171.69.233.208 255.255.255.240 193.16.1.254 |
| Static NAT | R1 R2-DMZ Static NAT | 狀態:完成 Inside local:172.16.100.102 Inside global:171.69.233.209 輸入指令: conf tinterface serial0/0/0ip nat insideexitinterface serial0/1/1ip nat outsideexitno ip nat inside source static 172.16.100.103 171.69.233.209ip nat inside source static 172.16.100.102 171.69.233.209 |
六、IPSec VPN 設定
| 階段 | 設備 / 項目 | 設定內容與輸入指令 |
|---|---|---|
| VPN Phase 1 | R1 IKE Policy | 狀態:完成 Peer:193.16.6.254 PSK:SeCrEt Encryption:3DES Hash:SHA DH Group:2 Lifetime:86400 輸入指令: conf tcrypto isakmp policy 10encr 3deshash shaauthentication pre-sharegroup 2lifetime 86400exitcrypto isakmp key SeCrEt address 193.16.6.254 |
| VPN Phase 2 | R1 Crypto Map | 狀態:完成 Transform-set:ts16 Crypto ACL:110 Local:10.3.1.0/24 Remote:10.6.0.0/24 Peer:193.16.6.254 輸入指令: conf tcrypto ipsec transform-set ts16 esp-aes 128 esp-md5-hmacno access-list 110access-list 110 permit ip 10.3.1.0 0.0.0.255 10.6.0.0 0.0.0.255crypto map map16 10 ipsec-isakmpset peer 193.16.6.254set transform-set ts16match address 110exitinterface serial0/1/1crypto map map16 |
| VPN Phase 1 | R6 IKE Policy | 狀態:完成 Peer:193.16.1.254 PSK:SeCrEt Encryption:3DES Hash:SHA DH Group:2 Lifetime:86400 輸入指令: conf tcrypto isakmp policy 10encr 3deshash shaauthentication pre-sharegroup 2lifetime 86400exitcrypto isakmp key SeCrEt address 193.16.1.254 |
| VPN Phase 2 | R6 Crypto Map | 狀態:完成 Transform-set:ts61 Crypto ACL:110 Local:10.6.0.0/24 Remote:10.3.1.0/24 Peer:193.16.1.254 輸入指令: conf tcrypto ipsec transform-set ts61 esp-aes 128 esp-md5-hmacno access-list 110access-list 110 permit ip 10.6.0.0 0.0.0.255 10.3.1.0 0.0.0.255crypto map map61 10 ipsec-isakmpset peer 193.16.1.254set transform-set ts61match address 110exitinterface serial0/0/0crypto map map61 |
| VPN 查修備註 | R6 重掛 Crypto Map | 狀態:備註 用途:若 ACL 110 有 match,但 encaps / decaps 仍為 0,可重掛 crypto map 後重新 ping 觸發。 查修指令: conf tinterface serial0/0/0no crypto map map61crypto map map61 |
七、Extended ACL 100 / SSH ACL 設定
| 階段 | 設備 / 項目 | 設定內容與輸入指令 |
|---|---|---|
| Extended ACL | R2 ACL 100 | 狀態:完成 套用介面:R2 Fa0/0 方向:out R2-Private:172.16.100.101 R2-DMZ:172.16.100.102 輸入指令: conf tno access-list 100access-list 100 permit tcp 10.1.12.16 0.0.0.15 172.16.100.101 0.0.0.0 eq 20access-list 100 permit tcp 10.1.12.16 0.0.0.15 172.16.100.101 0.0.0.0 eq 21access-list 100 deny ip 10.1.12.16 0.0.0.15 172.16.100.101 0.0.0.0access-list 100 deny ip 10.0.0.0 0.255.255.255 172.16.100.101 0.0.0.0access-list 100 permit tcp any 172.16.100.102 0.0.0.0 eq 80access-list 100 permit icmp any 172.16.100.102 0.0.0.0access-list 100 deny ip any 172.16.100.102 0.0.0.0interface fa0/0ip access-group 100 out |
| SSH ACL | R3 SSH 管理限制 | 狀態:完成 目的:只允許 VLAN14 IT SSH 到 R3 Username:user Password:123 Domain:ckc.com RSA:1024 ACL:12 Allowed Source:10.1.14.64/27 輸入指令: conf tusername user password 123ip domain-name ckc.comcrypto key generate rsa1024ip ssh version 2access-list 12 permit 10.1.14.64 0.0.0.31line vty 0 5login localtransport input sshaccess-class 12 inexitline vty 6 15transport input noneexit |