计算机网络基础实验考试试题

考核的内容

1)   DNS、Web 服务器的工作原理和配置
2)   静态(默认)路由的工作原理和配置
3)   动态路由的工作原理与 RIP V2 的配置
4)   IP 地址的规划与 VLSM 子网的划分
5)   NAPT的工作原理和配置

t

ip地址划分:
lan                           网络地址                 掩码/位            网关地址        子网掩码          网络内的主机地址(例)
Lan1—100    192.168.3.0 0000000      0/25   192.168.3.1    255.255.255.128    192.168.3.2
Lan2—60     192.168.3.10 000000    128/26   192.168.3.129   255.255.255.192    192.168.3.130
Lan3—30     192.168.3.110 00000    192/27   192.168.3.193   255.255.255.224    192.168.3.194
Lan4—14     192.168.3.1110 0000    224/28   192.168.3.225   255.255.255.240    192.168.3.226
为使ip利用率最高,掩码用30位:
R0-R2路由之间     192.168.3.11110 0 01   252/30   192.168.3.241   255.255.255.252
R0-R2路由之间     192.168.3.11110 0 10   252/30      192.168.3.242   255.255.255.252
R1-R2路由之间     192.168.3.11110 1 01   252/30   192.168.3.245   255.255.255.252
R1-R2路由之间     192.168.3.11110 1 10   252/30      192.168.3.246   255.255.255.252
Ip          掩码
R2-R3路由之间     200.38.3.1  255.255.255.0
R2-R3路由之间     200.38.3.2  255.255.255.0
Ip地址   网关     掩码
DNS服务器  210.38.3.2/ 210.38.3.1/255.255.255.0
WEB服务器   210.38.3.3/210.38.3.1/255.255.255.0

=============================================================================
router0
=============================================================================
Router>en
Router#conf t
Router(config)#int f0/0                                                                                               //选择端口
Router(config-if)#ip address 192.168.3.1 255.255.255.128                             //配置端口地址
Router(config-if)#no shut                                                                                          //打开端口
Router(config-if)#int f1/0                                                                                           //选择端口
Router(config-if)#ip address 192.168.3.129 255.255.255.192                        //配置端口地址
Router(config-if)#no shut                                                                                          //打开端口
Router(config-if)#int s2/0                                                                                           //选择端口
Router(config-if)#ip address 192.168.3.241 255.255.255.252                        //配置端口地址
Router(config-if)#clock rate 64000                                                                          //配置时钟
Router(config-if)#no shut                                                                                          //打开端口
Router(config)#router rip                                                                                          //启动rip
Router(config-router)#version 2                                                                             //版本2
Router(config-router)#network 192.168.3.0                                                                //通告网络
Router(config-router)#end
=============================================================================
router1
=============================================================================
Router>en
Router#conf t
Router(config)#int f0/0                                                                                               //选择端口
Router(config-if)#ip address 192.168.3.193 255.255.255.224                        //配置端口地址
Router(config-if)#no shut                                                                                          //打开端口
Router(config-if)#int f1/0                                                                                           //选择端口
Router(config-if)#ip address 192.168.3.225 255.255.255.240                        //配置端口地址
Router(config-if)#no shut                                                                                          //打开端口
Router(config-if)#int s2/0                                                                                           //选择端口
Router(config-if)#ip address 192.168.3.245 255.255.255.252                        //配置端口地址
Router(config-if)#clock rate 64000                                                                          //配置时钟
Router(config-if)#no shut                                                                                          //打开端口
Router(config)#router rip                                                                                          //启动rip
Router(config-router)#version 2                                                                             //版本2
Router(config-router)#network 192.168.3.0                                                                //通告网络
Router(config-router)#end
=============================================================================
router2
=============================================================================
Router>en
Router#conf t
Router(config)#int s2/0                                                                                              //选择端口
Router(config-if)#ip address 192.168.3.242 255.255.255.252                        //配置端口地址
Router(config-if)#no shut                                                                                          //打开端口
Router(config-if)#int s3/0                                                                                           //选择端口
Router(config-if)#ip address 192.168.3.246 255.255.255.252                        //配置端口地址
Router(config-if)#no shut                                                                                          //打开端口
Router(config-if)#int s6/0                                                                                           //选择端口
Router(config-if)#ip address 200.38.3.1 255.255.255.0                            //配置端口地址
Router(config-if)#clock rate 64000                                                                          //配置时钟
Router(config-if)#no shut                                                                                          //打开端口
Router(config)#router rip                                                                                          //启动rip
Router(config-router)#version 2                                                                             //版本2
Router(config-router)#network 192.168.3.0                                                                //通告网络
Router(config-router)#default-information originate                                      //通告一条默认路由
Router(config-router)#end
Router(config)#int s2/0                                                                                              //选择端口
Router(config-if)#ip nat inside                                                                                  //配置内部接口
Router(config-if)#int s3/0                                                                                           //选择端口
Router(config-if)#ip nat inside                                                                                  //配置内部接口
Router(config-if)#int s6/0                                                                                          //选择端口
Router(config-if)#ip nat outside                                                                              //配置外部接口
Router(config)#ip route 0.0.0.0 0.0.0.0 200.38.3.2                                          //配置默认路由
Router(config)#access-list 3 permit 192.168.3.0 0.0.0.255                              //定义地址池
Router(config)#ip nat inside source list 3 interface Serial6/0 overload      //建立地址转化
=============================================================================
router3
=============================================================================
Router>en
Router#conf t
Router(config)#int s2/0                                                                                     //选择端口
Router(config-if)#ip address 200.38.3.2 255.255.255.0                          //配置端口地址
Router(config-if)#no shut                                                                                 //打开端口
Router(config)#int f0/0                                                                                      //选择端口
Router(config-if)#ip address 210.38.3.1 255.255.255.0                          //配置端口地址
Router(config-if)#no shut                                                                                 //打开端口
=============================================================================

Leave A Comment

Please be polite. We appreciate that. Your email address will not be published and required fields are marked