资源描述
RouterenableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#interface FastEthernet0/0Router(config-if)# Router(config-if)#exitRouter(config)#interface FastEthernet0/0 Router(config-if)#ip address Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#no ip addressRouter(config-if)# Router(config-if)#exitRouter(config)#interface FastEthernet0/0 Router(config-if)#Router(config-if)#exit Router(config)#interface FastEthernet0/1Router(config-if)# Router(config-if)#exitRouter(config)#interface FastEthernet0/0 Router(config-if)#Router(config-if)#exitRouter(config)#interface FastEthernet0/0 Router(config-if)#Router(config-if)#exit Router(config)#interface FastEthernet0/0Router(config-if)# Router(config-if)#exitRouter(config)#interface FastEthernet0/0 Router(config-if)#Router(config-if)#exitRouter(config)#interface FastEthernet0/0Router(config-if)#ip address 12.12.12.1 255.0.0.0 Router(config-if)#Router(config-if)#exitRouter(config)#interface FastEthernet0/1Router(config-if)#ip address Router(config-if)#ip address 10.1.1.254 255.255.255.0 Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up Router(config-if)#Router(config-if)#exitRouter(config)#interface FastEthernet0/0Router(config-if)#ip address Router(config-if)# ip route 192.168.1.0 255.255.255.0 12.12.12.2 Router(config)#exit%SYS-5-CONFIG_I: Configured from console by consoleRouter# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)# router ripRouter(config-router)# network Router(config-router)# network 12.12.12.1 Router(config-router)#exitRouter(config)#access-list 100 deny tcp 10.1.1.0 0.0.0.255 host 192.168.1.100 eq 80 Router(config)#access-list 100 deny tcp 10.1.1.0 0.0.0.255 host 192.168.1.100 eq ? Port numberftpFile Transfer Protocol (21)pop3 Post Office Protocol v3 (110)smtpSimple Mail Transport Protocol (25)telnetTelnet (23)wwwWorld Wide Web (HTTP, 80)Router(config)#access-list 100 deny tcp 10.1.1.0 0.0.0.255 host 192.168.1.100 eq 21Router(config)#access-list 100 permit ip any anyRouter(config)# interface f0/0Router(config-if)# ip access-group 100 inRouter(config-if)#exitRouter(config)#exit%SYS-5-CONFIG_I: Configured from console by console Router# writeBuilding configuration.OKRouter#Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#exit%SYS-5-CONFIG_I: Configured from console by console Router#enRouter#enableRouter#conf tRouter#conf terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#exit%SYS-5-CONFIG_I: Configured from console by consoleRouter#Router0RouterenRouter#enableRouter#configure tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#ip route 192.168.1.0 255.255.255.0 12.12.12.2 /设置静态路由 Router(config)#exit%SYS-5-CONFIG_I: Configured from console by consoleRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#router ripRouter(config-router)#network Router(config-router)#network Router(config-router)#exitRouter(config)#access-list 100 deny tcp 10.1.1.0 0.0.0.255 host 192.168.1.100 eq 80Router(config)#access-list 100 deny tcp 10.1.1.0 0.0.0.255 host 192.168.1.100 eq 21 Router(config)#access-list 100 permit ip any anyRouter(config)#interface f0/0Router(config-if)#ip access-group 100 inRouter(config-if)#exitRouter(config)#exit%SYS-5-CONFIG_I: Configured from console by consoleRouter#writeBuilding configuration.RouterenableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#Router(config)#ip route Router(config)#exit%SYS-5-CONFIG_I: Configured from console by consoleRouter#enableRouter#conf tRouter#conf terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#router ripRouter(config-router)#network Router(config-router)#network Router(config-router)#exitRouter(config)#Router(config-if)#ip address Router(config-if)#ip address Router(config-if)#Router(config-if)#exitRouter(config)#interface FastEthernet0/0Router(config-if)#Router(config-if)#exitRouter(config)#interface FastEthernet0/1Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up Router(config-if)#ip address Router(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#exitRouter(config)#interface FastEthernet0/0Router(config-if)#Router(config-if)#exitRouterenableRouter#conf tRouter#conf terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#line vty 04 Router(config-line)#password 123 Router(config-line)#login Router(config-line)#exit Router(config)#enable password 123 Router(config)#end %SYS-5-CONFIG_I: Configured from console by console Router#POping 丄0 丄丄.254Pinging 10.J. 1.254 with 32 bytes of data:Replyfrom10.1-1.Z54:hytes=3Zt ime = 31m.sTTLzssReplyfrom丄匸1.1丄.Z54:hytes=3Ztim.e = 32m.sTTLzssP.eplyfrom丄匸1.1丄.54:hytes=3Zt ime = 3ZniETTLzssReplyfrom10.1.1.254:hytes=3Zt ime = 31m.sTTLZS5Ping :statistics for 10 :L. 1. Z54:Packets:Sent = 4fReceived=4丁 Lost-=0(0% loss).Approximate round trip times in mi Hi-seconds:Minimuia = 31ms, Maximum = 3Zms, Average = 31msPOtelnet. 10.1.1. Z54Trying IO.1.1.Z54 .User Access VerificationPassword:Pout- er show int- er face f 0/0Fast-Ethemet0/0 is up F line protocol is up (connected)Hard-ware is Lance address is 00d0- d3Sc. 4a01 (bia OOdO . d38c . 4a01 J Internet address isZ54/E4HTU 1500 hytesF EW 100000 KhitF DLY 100 usee, rely Z55/ZS5, load 1/Z55 Encansulat.ion APPA - loonback not. set.RouterenRouterenablePassword:Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#access-list 1 ?denySpecify packets to rejectpermit Specify packets to forward remark Access list entry commentRouter(config)#access-list 1 deny host 192.168.1.0 Router(config)#access-list 1 permit anyRouter(config)#end %SYS-5-CONFIG_I: Configured from console by console Router#exitStandard IP access list 1permit anyRouter#
展开阅读全文