注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 《掌控Windows SErver 2..
 帮助
2008-05-21 22:49:51



2007-12-28 20:13:56



2007-09-25 18:39:28



2007-06-18 18:37:38


类别:未分类 | 阅读全文(263) | 回复(4)      

2007-06-17 18:36:25



2007-06-15 19:01:04



2007-06-14 19:06:18



2007-06-13 19:32:34



2007-06-07 18:55:35



2007-06-01 19:27:55


类别:未分类 | 阅读全文(109) | 回复(4)      

2007-05-29 09:22:01



2007-05-25 14:16:34



2007-05-20 19:45:40



2007-05-18 19:57:34



2007-05-15 14:39:14



2007-05-09 13:10:02



2007-05-06 11:14:16



2007-04-23 09:24:51



2007-04-19 16:10:39



2007-04-19 15:20:44
实验目的:仅允许在192.168.2.16/28网络可以telnetR2的S1端口,而192.168.2.0/28不可以telnet,但是可以通过R2访问到R3



Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host R1
R1(config)#int s0
R1(config-if)#ip add 192.168.2.1 255.255.255.240
R1(config-if)#no sh
%LINK-3-UPDOWN: Interface Serial0, changed state to up
R1(config-if)#exit
R1(config)#route rip
R1(config-router)#net 192.168.2.0
R1(config-router)#exit
R1(config)#exit
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route
Gateway of last resort is not set
     192.168.2.0/28 is subnetted, 2 subnets
C       192.168.2.0 is directly connected, Serial0
R       192.168.2.16 [120/1] via 192.168.2.2, 00:03:29, Serial0
R1#ping 192.168.2.18
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.18, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
R1#ping 192.168.2.17
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.17, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int s0
Router(config-if)#ip add 192.168.2.2 255.255.255.240
Router(config-if)#clock rate 64000
Router(config-if)#no sh
Router(config-if)#exit
Router(config)#int s1
Router(config-if)#ip add 192.168.2.17 255.255.255.240
Router(config-if)#clock rate 64000
Router(config-if)#no sh
Router(config-if)#exit
Router(config)#host R2
R2(config)#route rip
R2(config-router)#net 192.168.2.0
R2(config-router)#net 192.168.2.16
R2(config-router)#exit
R2(config)#access-list 101 permit tcp 192.168.2.16 0.0.0.15 any eq telnet  
R2(config)#access-list 102 permit ip 192.168.2.0 0.0.0.15 any log
R2(config)#int s0
R2(config-if)#ip access-group 102 in
R2(config-if)#exit
R2(config)#int s1
R2(config-if)#ip access-group 101 in
R2(config-if)#exit
R2(config)#lin vty 0 4
R2(config-line)#login
R2(config-line)#password test
R2(config-line)#exit

Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host R3
R3(config)#int s0
R3(config-if)#ip add 192.168.2.18 255.255.255.240
R3(config-if)#no sh
%LINK-3-UPDOWN: Interface Serial0, changed state to up
R3(config-if)#exit
R3(config)#route rip
R3(config-router)#net 192.168.2.16
R3(config-router)#exit
R3(config)#exit
[/img]..



2007-04-18 17:00:29

 

Router>
Router>en
Router#con t
Router(config)#host R1
R1(config)#int s0
R1(config-if)#ip add 20.2.2.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#route rip
R1(config-router)#net 10.0.0.0
R1(config-router)#net 20.0.0.0
R1(config-router)#exit
R1(config)#exit
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route
Gateway of last resort is not set
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, Loopback1
     20.0.0.0/24 is subnetted, 1 subnets
C       20.2.2.0 is directly connected, Serial0
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route
Gateway of last resort is not set
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, Loopback1
     20.0.0.0/24 is subnetted, 1 subnets
C       20.2.2.0 is directly connected, Serial0
R    30.0.0.0 [120/1] via 20.2.2.2, 00:07:36, Serial0
R1#ping 30.3.3.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.3.3.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
R1#con t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#access-list 2 deny host 30.3.3.2             写标准ACL2拒绝主机30.3.3.2通过
R1(config)#access-list 2 permit any                          其他均允许
R1(config)#int s0
R1(config-if)#ip access-group 2 in                             将ACL2 应用在S0端口,禁止进入
R1(config-if)#exit
R1(config)#exit
R1#ping 30.3.3.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.3.3.2, timeout is 2 seconds:
UUUUU
Success rate is 0 percent (0/5), round-trip min/avg/max = 1/2/4 ms
R1#ping 30.3.3.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.3.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
 
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#host R2
R2(config)#int s0
R2(config-if)#ip add 20.2.2.2 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no sh
%LINK-3-UPDOWN: Interface Serial0, changed state to up
R2(config-if)#exit
R2(config)#int s1
R2(config-if)#ip add 30.3.3.1 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no sh
%LINK-3-UPDOWN: Interface Serial1, changed state to up
R2(config-if)#exit
R2(config)#route rip
R2(config-router)#net 20.0.0.0
R2(config-router)#net 30.0.0.0
R2(config-router)#exit
R2(config)#exit
 
Router>
Router>en
Router#con t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R3
R3(config)#int s0
R3(config-if)#ip add 30.3.3.2 255.255.255.0
R3(config-if)#no sh
%LINK-3-UPDOWN: Interface Serial0, changed state to up
R3(config-if)#exit
R3(config)#route rip
R3(config-router)#net 30.0.0.0
R3(config-router)#exit
R3(config)#exit[/img]..



2007-04-17 09:48:18



2007-04-16 22:49:35



2007-04-16 22:27:05



2007-04-16 17:08:40
    这段时间也不知道自己在忙些什么,一个礼拜了,今天再写点,再不看6月份还怎么考啊/,该实验主要内容:
1)注意有类与无类网络的发布;
2)各种路由协议之间的重发布。
3)R1与R2的S0/0之间为EIGRP,R2的S0/1与R3的S0/0之间为OSPF,R3的回环口为IGRP.
   

具体过程:
Router>en
Router#con t
Router(config)#hostname R1
R1(config)#int loopback 1
R1(config-if)#ip add 10.1.1.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#int s0/0
R1(config-if)#ip add 2.2.2.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#router eigrp 100
R1(config-router)#net 10.1.1.0
R1(config-router)#net 2.2.2.0
R1(config-router)#exit
R1(config)#exit
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route
Gateway of last resort is not set
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, Loopback1
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Serial0
     3.0.0.0/16 is subnetted, 1 subnets
D       3.3.0.0 [90/3015680] via 2.2.2.2, 00:14:25, Serial0
     20.0.0.0/16 is subnetted, 1 subnets
D       20.1.0.0 [90/3015680] via 2.2.2.2, 00:12:29, Serial0
 

Router>
Router>en
Router#con t
Router(config)#host R2
R2(config)#int s0/0
R2(config-if)#ip add 2.2.2.2 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#int s0/1
R2(config-if)#ip add 3.3.3.1 255.255.0.0
R2(config-if)#clock rate 64000
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#route ospf 200
R2(config-router)#net 3.3.0.0 0.0.255.255 area 0
R2(config-router)#exit
R2(config)#route eigrp 100
R2(config-router)#net 2.2.2.0
R2(config-router)#exit
R2(config)#exit
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route
Gateway of last resort is not set
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Serial0
     3.0.0.0/16 is subnetted, 1 subnets
C       3.3.0.0 is directly connected, Serial1
R2#con t
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#route eigrp 100
R2(config-router)#redistribute ospf 200 metric 1000 100 100 100 100
R2(config-router)#exit
R2(config)#route ospf 200
R2(config-router)#redistribute eigrp 100
R2(config-router)#redistribute igrp 100
R2(config-router)#exit
R2(config)#exit
R2#con t
R2(config)#route eigrp 100
R2(config-router)#redistribute ospf 200 metric 1000 100 100 100 100 把OSPF发布到EIGRP 
R2(config-router)#exit
R2(config)#route ospf 200
R2(config-router)#redistribute eigrp 100
R2(config-router)#exit
R2(config)#exit
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route
Gateway of last resort is not set
     3.0.0.0/16 is subnetted, 1 subnets
C       3.3.0.0 is directly connected, Serial1
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Serial0
     10.0.0.0/24 is subnetted, 1 subnets
D       10.1.1.0 [90/1628160] via 2.2.2.1, 00:02:08, Serial0
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route
Gateway of last resort is not set
     3.0.0.0/16 is subnetted, 1 subnets
C       3.3.0.0 is directly connected, Serial1
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Serial0
     10.0.0.0/24 is subnetted, 1 subnets
D       10.1.1.0 [90/1628160] via 2.2.2.1, 00:22:05, Serial0
     20.0.0.0/16 is subnetted, 1 subnets
O       20.1.0.0 [110/64] via 3.3.3.2, 00:19:53, Serial1

Router>
Router>en
Router#con t
Router(config)#host R3
R3(config)#int loopback 1
R3(config-if)#ip add 20.1.1.1 255.255.0.0
R3(config-if)#no sh
R3(config-if)#exit
R3(config)#int s0/0
R3(config-if)#ip add 3.3.3.2 255.255.0.0
R3(config-if)#no sh
R3(config-if)#exit
R3(config)#route igrp 100
R3(config-router)#net 20.1.0.0
R3(config-router)#exit
R3(config)#route ospf 200
R3(config-router)#net 3.3.0.0 0.0.255.255 area 0
R3(config-router)#exit
R3(config)#exit
R3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route
Gateway of last resort is not set
     20.0.0.0/16 is subnetted, 1 subnets
C       20.1.0.0 is directly connected, Loopback1
     3.0.0.0/16 is subnetted, 1 subnets
C       3.3.0.0 is directly connected, Serial0
R3#con t
R3(config)#route ospf 200
R3(config-router)#redistribute igrp 100
R3(config-router)#exit
R3(config)#route igrp 100
R3(config-router)#redistribute ospf 200 metric 1000 100 100 100 100
R3(config-router)#exit
R3(config)#exit
R3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route
Gateway of last resort is not set
     20.0.0.0/16 is subnetted, 1 subnets
C       20.1.0.0 is directly connected, Loopback1
     3.0.0.0/16 is subnetted, 1 subnets
C       3.3.0.0 is directly connected, Serial0
     2.0.0.0/16 is subnetted, 1 subnets
O       2.2.0.0 [110/64] via 3.3.3.1, 00:00:48, Serial0
     10.0.0.0/16 is subnetted, 1 subnets
O       10.1.0.0 [110/64] via 3.3.3.1, 00:00:48, Serial0
R3#ping 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
 [/img]..



 <<   1   2   3   >>   页数 ( 1/3 )