ia综合练习

要求

拓补

操作

 IP配置

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.2/30       up         up        
GigabitEthernet0/0/1              192.168.1.9/30       up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.1.65/28      up         up(s)     
LoopBack1                         192.168.1.81/28      up         up(s)     
NULL0                             unassigned           up         up(s)     
[r1]

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.1/30       up         up        
GigabitEthernet0/0/1              192.168.1.5/30       up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.1.33/28      up         up(s)     
LoopBack1                         192.168.1.49/28      up         up(s)     
NULL0                             unassigned           up         up(s)     
[r2]



Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.13/30      up         up        
GigabitEthernet0/0/1              192.168.1.6/30       up         up        
GigabitEthernet0/0/2              192.168.1.97/28      up         up        
LoopBack0                         unassigned           up         up(s)     
NULL0                             unassigned           up         up(s)     
[r3]


Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.10/30      up         up        
GigabitEthernet0/0/1              192.168.1.14/30      up         up        
GigabitEthernet0/0/2              192.168.1.21/30      up         up        
GigabitEthernet4/0/0              192.168.1.17/30      up         up        
LoopBack0                         192.168.1.129/28     up         up(s)     
LoopBack1                         192.168.1.145/28     up         up(s)     
NULL0                             unassigned           up         up(s)     
[r4]



Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.22/30      up         up        
GigabitEthernet0/0/1              12.0.0.1/30          up         up        
GigabitEthernet0/0/2              192.168.1.18/30      up         up        
LoopBack0                         5.5.5.5/30           up         up(s)     
NULL0                             unassigned           up         up(s)     
[r5]




Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              12.0.0.2/30          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         6.6.6.6/30           up         up(s)     
NULL0                             unassigned           up         up(s)     
[r6]




配置静态路由

R1

ip route-static 0.0.0.0 0.0.0.0 192.168.1.10
ip route-static 192.168.1.4 255.255.255.252 192.168.1.1
ip route-static 192.168.1.32 255.255.255.224 192.168.1.1
ip route-static 192.168.1.96 255.255.255.240 192.168.1.1
ip route-static 192.168.1.96 255.255.255.240 192.168.1.10
R2

ip route-static 0.0.0.0 0.0.0.0 192.168.1.2
ip route-static 0.0.0.0 0.0.0.0 192.168.1.6
ip route-static 192.168.1.64 255.255.255.224 192.168.1.2
ip route-static 192.168.1.96 255.255.255.240 192.168.1.6
R3

ip route-static 0.0.0.0 0.0.0.0 192.168.1.14
ip route-static 192.168.1.0 255.255.255.252 192.168.1.5
ip route-static 192.168.1.32 255.255.255.224 192.168.1.5
ip route-static 192.168.1.64 255.255.255.224 192.168.1.5
ip route-static 192.168.1.64 255.255.255.224 192.168.1.14
R4

ip route-static 0.0.0.0 0.0.0.0 192.168.1.18
ip route-static 0.0.0.0 0.0.0.0 192.168.1.22 preference 61
ip route-static 192.168.1.0 255.255.255.252 192.168.1.9
ip route-static 192.168.1.4 255.255.255.252 192.168.1.13
ip route-static 192.168.1.32 255.255.255.224 192.168.1.13
ip route-static 192.168.1.32 255.255.255.224 192.168.1.9
ip route-static 192.168.1.64 255.255.255.224 192.168.1.9
ip route-static 192.168.1.96 255.255.255.240 192.168.1.13
R5
ip route-static 6.6.6.4 255.255.255.252 12.0.0.2
ip route-static 192.168.1.0 255.255.255.0 192.168.1.17
ip route-static 192.168.1.0 255.255.255.0 192.168.1.21 preference 61
R6

配置Nat

 

R5
 nat server protocol tcp global current-interface telnet inside 192.168.1.9 teln
et
 nat outbound 2000
 rule 5 permit 

配置telnet 

 

[r1]user-interface vty 0 4 
[r1-ui-vty0-4]authentication-mode aaa 
[r1-ui-vty0-4]q
[r1]aaa
[r1-aaa]local-user huawei password cipher 123456
Info: Add a new user.	
[r1-aaa]local-user huawei privilege level  15 	
[r1-aaa]local-user huawei service-type telnet 

测试 

PC>ping 192.168.1.18

Ping 192.168.1.18: 32 data bytes, Press Ctrl_C to break
From 192.168.1.18: bytes=32 seq=1 ttl=253 time=63 ms
From 192.168.1.18: bytes=32 seq=2 ttl=253 time=62 ms
From 192.168.1.18: bytes=32 seq=3 ttl=253 time=47 ms
From 192.168.1.18: bytes=32 seq=4 ttl=253 time=63 ms
From 192.168.1.18: bytes=32 seq=5 ttl=253 time=47 ms

--- 192.168.1.18 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 47/56/63 ms

PC>ping 5.5.5.5 

Ping 5.5.5.5: 32 data bytes, Press Ctrl_C to break
From 5.5.5.5: bytes=32 seq=1 ttl=253 time=62 ms
From 5.5.5.5: bytes=32 seq=2 ttl=253 time=31 ms
From 5.5.5.5: bytes=32 seq=3 ttl=253 time=47 ms
From 5.5.5.5: bytes=32 seq=4 ttl=253 time=63 ms
From 5.5.5.5: bytes=32 seq=5 ttl=253 time=47 ms

--- 5.5.5.5 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 31/50/63 ms





PC>ping 6.6.6.6

Ping 6.6.6.6: 32 data bytes, Press Ctrl_C to break
From 6.6.6.6: bytes=32 seq=1 ttl=252 time=46 ms
From 6.6.6.6: bytes=32 seq=2 ttl=252 time=63 ms
From 6.6.6.6: bytes=32 seq=3 ttl=252 time=62 ms
From 6.6.6.6: bytes=32 seq=4 ttl=252 time=63 ms
From 6.6.6.6: bytes=32 seq=5 ttl=252 time=47 ms

--- 6.6.6.6 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 46/56/63 ms

PC>ping 192.168.1.65

Ping 192.168.1.65: 32 data bytes, Press Ctrl_C to break
From 192.168.1.65: bytes=32 seq=1 ttl=253 time=31 ms
From 192.168.1.65: bytes=32 seq=2 ttl=253 time=63 ms
From 192.168.1.65: bytes=32 seq=3 ttl=253 time=16 ms
From 192.168.1.65: bytes=32 seq=4 ttl=253 time=31 ms
From 192.168.1.65: bytes=32 seq=5 ttl=253 time=31 ms

--- 192.168.1.65 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 16/34/63 ms

PC>ping 12.0.0.2 

Ping 12.0.0.2: 32 data bytes, Press Ctrl_C to break
From 12.0.0.2: bytes=32 seq=1 ttl=252 time=47 ms
From 12.0.0.2: bytes=32 seq=2 ttl=252 time=47 ms
From 12.0.0.2: bytes=32 seq=3 ttl=252 time=47 ms
From 12.0.0.2: bytes=32 seq=4 ttl=252 time=62 ms
From 12.0.0.2: bytes=32 seq=5 ttl=252 time=63 ms

--- 12.0.0.2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 47/53/63 ms

PC>

 

  • 8
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值